From 6cd1537c85b346e26e998aebef05b649e28fd036 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Fri, 21 Dec 2018 20:50:08 +0900 Subject: [PATCH] Add comment --- UIParticle.cs | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/UIParticle.cs b/UIParticle.cs index 9cda780..a9e14e5 100644 --- a/UIParticle.cs +++ b/UIParticle.cs @@ -94,22 +94,37 @@ namespace Coffee.UIExtensions } } + /// + /// Is this the root UIParticle? + /// public bool isRoot { get { return !_parent; } } + /// + /// Should this graphic be considered a target for raycasting? + /// public override bool raycastTarget { get { return false; } set { base.raycastTarget = value; } } /// /// ParticleSystem. /// new public ParticleSystem particleSystem { get { return m_ParticleSystem ? m_ParticleSystem : (m_ParticleSystem = GetComponent ()); } } + + /// + /// Perform material modification in this function. + /// + /// Modified material. + /// Configured Material. public override Material GetModifiedMaterial (Material baseMaterial) { return base.GetModifiedMaterial (_renderer ? _renderer.sharedMaterial : baseMaterial); } + /// + /// This function is called when the object becomes enabled and active. + /// protected override void OnEnable () { // Register. @@ -137,6 +152,9 @@ namespace Coffee.UIExtensions base.OnEnable (); } + /// + /// This function is called when the behaviour becomes disabled. + /// protected override void OnDisable () { // Unregister. @@ -162,6 +180,9 @@ namespace Coffee.UIExtensions base.OnDisable (); } + /// + /// Call to update the geometry of the Graphic onto the CanvasRenderer. + /// protected override void UpdateGeometry () { } @@ -186,6 +207,9 @@ namespace Coffee.UIExtensions base.OnTransformParentChanged (); } + /// + /// Callback for when properties have been changed by animation. + /// protected override void OnDidApplyAnimationProperties () { } @@ -211,6 +235,9 @@ namespace Coffee.UIExtensions List _children = new List (); Matrix4x4 scaleaMatrix = default (Matrix4x4); + /// + /// Update meshes. + /// static void UpdateMeshes () { foreach (var uip in s_ActiveParticles) @@ -222,6 +249,9 @@ namespace Coffee.UIExtensions } } + /// + /// Update meshe. + /// void UpdateMesh () { try @@ -312,6 +342,9 @@ namespace Coffee.UIExtensions } } + /// + /// Checks the trail. + /// void CheckTrail () { if (isActiveAndEnabled && !m_IsTrail && m_ParticleSystem && m_ParticleSystem.trails.enabled)