UnityEditor.ParticleSystemUI.ShowModuleMenu C# (CSharp) Method

ShowModuleMenu() private method

private ShowModuleMenu ( int moduleIndex ) : void
moduleIndex int
return void
        private void ShowModuleMenu(int moduleIndex)
        {
            GenericMenu menu = new GenericMenu();
            if (!ParticleEffectUI.GetAllModulesVisible())
            {
                menu.AddItem(new GUIContent("Remove"), false, new GenericMenu.MenuFunction2(this.ModuleMenuCallback), moduleIndex);
            }
            else
            {
                menu.AddDisabledItem(new GUIContent("Remove"));
            }
            menu.ShowAsContext();
            Event.current.Use();
        }