UnityEditor.ParticleEffectUI.IsStopped C# (CSharp) Method

IsStopped() static private method

static private IsStopped ( ParticleSystem root ) : bool
root UnityEngine.ParticleSystem
return bool
        internal static bool IsStopped(ParticleSystem root)
        {
            return ((!ParticleSystemEditorUtils.editorIsPlaying && !ParticleSystemEditorUtils.editorIsPaused) && !ParticleSystemEditorUtils.editorIsScrubbing);
        }

Usage Example

Exemplo n.º 1
0
        public void ApplyProperties()
        {
            bool hasModifiedProperties = this.m_ParticleSystemSerializedObject.hasModifiedProperties;

            if (this.m_ParticleSystemSerializedObject.targetObject != null)
            {
                this.m_ParticleSystemSerializedObject.ApplyModifiedProperties();
            }
            if (hasModifiedProperties)
            {
                ParticleSystem[] particleSystems = this.m_ParticleSystems;
                for (int i = 0; i < particleSystems.Length; i++)
                {
                    ParticleSystem ps   = particleSystems[i];
                    ParticleSystem root = ParticleSystemEditorUtils.GetRoot(ps);
                    if (!ParticleEffectUI.IsStopped(root) && ParticleSystemEditorUtils.editorResimulation)
                    {
                        ParticleSystemEditorUtils.PerformCompleteResimulation();
                    }
                }
                this.UpdateParticleSystemInfoString();
            }
            if (this.m_RendererSerializedObject != null && this.m_RendererSerializedObject.targetObject != null)
            {
                this.m_RendererSerializedObject.ApplyModifiedProperties();
            }
        }
All Usage Examples Of UnityEditor.ParticleEffectUI::IsStopped