close #45; Disable ParticleSystemRenderer on reset
parent
beb6fa8367
commit
f6e64c325b
|
@ -255,6 +255,21 @@ namespace Coffee.UIExtensions
|
||||||
base.OnDisable ();
|
base.OnDisable ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
/// <summary>
|
||||||
|
/// Reset to default values.
|
||||||
|
/// </summary>
|
||||||
|
protected override void Reset ()
|
||||||
|
{
|
||||||
|
// Disable ParticleSystemRenderer on reset.
|
||||||
|
if (cachedParticleSystem)
|
||||||
|
{
|
||||||
|
cachedParticleSystem.GetComponent<ParticleSystemRenderer> ().enabled = false;
|
||||||
|
}
|
||||||
|
base.Reset ();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Call to update the geometry of the Graphic onto the CanvasRenderer.
|
/// Call to update the geometry of the Graphic onto the CanvasRenderer.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue