UnityEditor.ParticleSystemUI.Init C# (CSharp) Method

Init() public method

public Init ( ParticleEffectUI owner, ParticleSystem ps ) : void
owner ParticleEffectUI
ps UnityEngine.ParticleSystem
return void
        public void Init(ParticleEffectUI owner, ParticleSystem ps)
        {
            if (s_ModuleNames == null)
            {
                s_ModuleNames = GetUIModuleNames();
            }
            this.m_ParticleEffectUI = owner;
            this.m_ParticleSystem = ps;
            this.m_ParticleSystemSerializedObject = new SerializedObject(this.m_ParticleSystem);
            this.m_RendererSerializedObject = null;
            this.m_SupportsCullingText = null;
            this.m_Modules = CreateUIModules(this, this.m_ParticleSystemSerializedObject);
            if (this.GetParticleSystemRenderer() != null)
            {
                this.InitRendererUI();
            }
            this.UpdateParticleSystemInfoString();
        }