feat: preview the ParticleSystem playback when selecting a UIParticle in the Editor

This commit is contained in:
mob-sakai
2026-06-23 19:03:37 +09:00
parent 6b956b92e0
commit 1ac1b347af
6 changed files with 277 additions and 11 deletions

View File

@@ -48,15 +48,10 @@ namespace Coffee.UIParticleInternal
{
if (obj == null) return;
#if UNITY_EDITOR
if (Application.isEditor)
{
Object.DestroyImmediate(obj);
}
else
Object.DestroyImmediate(obj, true);
#else
Object.Destroy(obj);
#endif
{
Object.Destroy(obj);
}
}
[Conditional("UNITY_EDITOR")]