void LateUpdate() { #if UNITY_EDITOR if (EditorApplication.isPlaying == false) { return; } #endif if (ParticleAsset == null || ParticleAsset.IsPlaying == false) { return; } if (drawCall == null) { return; } ParticleAsset.SetRenderQueue(drawCall.renderQueue); PlaybackTime = ParticleAsset.PlaybackTime; if (play_type == eUIParticlePlay.RealTimeSinceStartup) { ParticleAsset.UpdatePlay(Time.realtimeSinceStartup); } }
void LateUpdate() { if (ParticleAsset == null || ParticleAsset.IsPlaying == false) { return; } UIPanel panel = CoreUtility.GetParentComponent <UIPanel>(transform); int renderQueue = panel.startingRenderQueue; ParticleAsset.SetRenderQueue(renderQueue + depth); playback_time = ParticleAsset.PlaybackTime; if (play_type == eUIParticlePlay.RealTimeSinceStartup) { ParticleAsset.UpdatePlay(Time.realtimeSinceStartup); } }