UnityEngine.ParticleSystem.Clear C# (CSharp) Method

Clear() private method

private Clear ( ) : void
return void
        public void Clear()
        {
            bool withChildren = true;
            this.Clear(withChildren);
        }

Same methods

ParticleSystem::Clear ( [ withChildren ) : void
ParticleSystem::Clear ( bool withChildren ) : void

Usage Example

コード例 #1
0
		public override void OnEnter()
		{
			ps = Fsm.GetOwnerDefaultTarget(gameObject).GetComponent<ParticleSystem>();


			if (delay.Value <= 0)
			{
				if (clear.Value) {
					stopWithClear.Value = false;
					ps.Clear();
				}

				else { 
					ps.Stop();
					ps.Clear();

				}

				if(finishEvent != null) Fsm.Event(finishEvent);{
				Finish();
				return;
			}
			}
			
			startTime = Time.realtimeSinceStartup;
			timer = 0f;
		}
All Usage Examples Of UnityEngine.ParticleSystem::Clear