Skip to content

Instantly share code, notes, and snippets.

@tsubaki tsubaki/DisableParticle.cs
Last active Feb 11, 2018

What would you like to do?
using UnityEngine;
using System.Collections;
public class DisableParticle : MonoBehaviour
void OnEnable()
StartCoroutine (ParticleWorking ());
IEnumerator ParticleWorking()
var particle = GetComponent<ParticleSystem> ();
yield return new WaitWhile (() => particle.IsAlive (true));
gameObject.SetActive (false);

This comment has been minimized.

Copy link
Owner Author

tsubaki commented Mar 2, 2016



This comment has been minimized.

Copy link

lovelyappleHoge commented Feb 11, 2018


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.