CreateParticleSystem() public method

public CreateParticleSystem ( ParticleSystem parentOfNewParticleSystem, SubModuleUI defaultType ) : GameObject
parentOfNewParticleSystem UnityEngine.ParticleSystem
defaultType SubModuleUI
return UnityEngine.GameObject
        void EmitterMenuCallback(object obj)
        {
            int userData = (int)obj;

            switch (userData)
            {
            case 0:
                m_ParticleEffectUI.CreateParticleSystem(m_ParticleSystems[0], SubModuleUI.SubEmitterType.None);
                break;

            case 1:
                ResetModules();
                break;

            case 2:
                EditorGUIUtility.PingObject(m_ParticleSystems[0]);
                break;

            default:
                System.Diagnostics.Debug.Assert("Enum not handled!".Length == 0);
                break;
            }
        }