UnityEditor.ParticleSystemUI.GetUIModuleNames C# (CSharp) Method

GetUIModuleNames() public static method

public static GetUIModuleNames ( ) : string[]
return string[]
        public static string[] GetUIModuleNames()
        {
            return new string[] { 
                "", "Emission", "Shape", "Velocity over Lifetime", "Limit Velocity over Lifetime", "Inherit Velocity", "Force over Lifetime", "Color over Lifetime", "Color by Speed", "Size over Lifetime", "Size by Speed", "Rotation over Lifetime", "Rotation by Speed", "External Forces", "Noise", "Collision",
                "Triggers", "Sub Emitters", "Texture Sheet Animation", "Lights", "Trails", "Renderer"
            };
        }

Usage Example

示例#1
0
 public void Init(ParticleEffectUI owner, ParticleSystem[] systems)
 {
     if (ParticleSystemUI.s_ModuleNames == null)
     {
         ParticleSystemUI.s_ModuleNames = ParticleSystemUI.GetUIModuleNames();
     }
     this.m_ParticleEffectUI = owner;
     this.m_ParticleSystems  = systems;
     this.m_ParticleSystemSerializedObject = new SerializedObject(this.m_ParticleSystems);
     this.m_RendererSerializedObject       = null;
     this.m_SupportsCullingText            = null;
     this.m_Modules = ParticleSystemUI.CreateUIModules(this, this.m_ParticleSystemSerializedObject);
     if (!(this.m_ParticleSystems.FirstOrDefault((ParticleSystem o) => o.GetComponent <ParticleSystemRenderer>() == null) != null))
     {
         this.InitRendererUI();
     }
     this.UpdateParticleSystemInfoString();
 }
All Usage Examples Of UnityEditor.ParticleSystemUI::GetUIModuleNames