You've already forked ParticleEffectForUGUI
mirror of
https://github.com/mob-sakai/ParticleEffectForUGUI.git
synced 2026-06-26 08:23:45 +00:00
feat: preview the ParticleSystem playback when selecting a UIParticle in the Editor
This commit is contained in:
@@ -545,7 +545,10 @@ namespace Coffee.UIExtensions
|
||||
{
|
||||
var ps = particles[i];
|
||||
if (!ps
|
||||
#if UNITY_EDITOR
|
||||
|| (ps.hideFlags & HideFlags.DontSave) != 0 // Dummy ParticleSystems for preview.
|
||||
|| ps.gameObject.CompareTag("EditorOnly") // Ignore "EditorOnly" tagged ParticleSystems.
|
||||
#endif
|
||||
|| ps.GetComponentInParent<UIParticle>(true) != this) // Ignore ParticleSystems that are not under this UIParticle.
|
||||
{
|
||||
particles.RemoveAt(i);
|
||||
|
||||
Reference in New Issue
Block a user