UnityEditor.Unsupported.IsDeveloperBuild C# (CSharp) Method

IsDeveloperBuild() public static method

public static IsDeveloperBuild ( ) : bool
return bool
        public static bool IsDeveloperBuild()
        {
            return (IsDeveloperBuildInternal() && !s_FakeNonDeveloperBuild);
        }

Usage Example

示例#1
0
 public virtual void AddItemsToMenu(GenericMenu menu)
 {
     menu.AddItem(new GUIContent("Sort groups alphabetically"), this.m_SortGroupsAlphabetically, (GenericMenu.MenuFunction)(() => this.m_SortGroupsAlphabetically = !this.m_SortGroupsAlphabetically));
     menu.AddItem(new GUIContent("Show referenced groups"), this.m_ShowReferencedBuses, (GenericMenu.MenuFunction)(() => this.m_ShowReferencedBuses = !this.m_ShowReferencedBuses));
     menu.AddItem(new GUIContent("Show group connections"), this.m_ShowBusConnections, (GenericMenu.MenuFunction)(() => this.m_ShowBusConnections   = !this.m_ShowBusConnections));
     if (this.m_ShowBusConnections)
     {
         menu.AddItem(new GUIContent("Only highlight selected group connections"), this.m_ShowBusConnectionsOfSelection, (GenericMenu.MenuFunction)(() => this.m_ShowBusConnectionsOfSelection = !this.m_ShowBusConnectionsOfSelection));
     }
     menu.AddSeparator(string.Empty);
     menu.AddItem(new GUIContent("Vertical layout"), this.layoutMode == AudioMixerWindow.LayoutMode.Vertical, (GenericMenu.MenuFunction)(() => this.layoutMode     = AudioMixerWindow.LayoutMode.Vertical));
     menu.AddItem(new GUIContent("Horizontal layout"), this.layoutMode == AudioMixerWindow.LayoutMode.Horizontal, (GenericMenu.MenuFunction)(() => this.layoutMode = AudioMixerWindow.LayoutMode.Horizontal));
     menu.AddSeparator(string.Empty);
     menu.AddItem(new GUIContent("Use RMS metering for display"), EditorPrefs.GetBool(AudioMixerWindow.kAudioMixerUseRMSMetering, true), (GenericMenu.MenuFunction)(() => EditorPrefs.SetBool(AudioMixerWindow.kAudioMixerUseRMSMetering, true)));
     menu.AddItem(new GUIContent("Use peak metering for display"), !EditorPrefs.GetBool(AudioMixerWindow.kAudioMixerUseRMSMetering, true), (GenericMenu.MenuFunction)(() => EditorPrefs.SetBool(AudioMixerWindow.kAudioMixerUseRMSMetering, false)));
     if (!Unsupported.IsDeveloperBuild())
     {
         return;
     }
     menu.AddSeparator(string.Empty);
     menu.AddItem(new GUIContent("DEVELOPER/Groups Rendered Above"), this.m_GroupsRenderedAboveSections, (GenericMenu.MenuFunction)(() => this.m_GroupsRenderedAboveSections = !this.m_GroupsRenderedAboveSections));
     menu.AddItem(new GUIContent("DEVELOPER/Build 10 groups"), false, (GenericMenu.MenuFunction)(() => this.m_Controller.BuildTestSetup(0, 7, 10)));
     menu.AddItem(new GUIContent("DEVELOPER/Build 20 groups"), false, (GenericMenu.MenuFunction)(() => this.m_Controller.BuildTestSetup(0, 7, 20)));
     menu.AddItem(new GUIContent("DEVELOPER/Build 40 groups"), false, (GenericMenu.MenuFunction)(() => this.m_Controller.BuildTestSetup(0, 7, 40)));
     menu.AddItem(new GUIContent("DEVELOPER/Build 80 groups"), false, (GenericMenu.MenuFunction)(() => this.m_Controller.BuildTestSetup(0, 7, 80)));
     menu.AddItem(new GUIContent("DEVELOPER/Build 160 groups"), false, (GenericMenu.MenuFunction)(() => this.m_Controller.BuildTestSetup(0, 7, 160)));
     menu.AddItem(new GUIContent("DEVELOPER/Build chain of 10 groups"), false, (GenericMenu.MenuFunction)(() => this.m_Controller.BuildTestSetup(1, 1, 10)));
     menu.AddItem(new GUIContent("DEVELOPER/Build chain of 20 groups "), false, (GenericMenu.MenuFunction)(() => this.m_Controller.BuildTestSetup(1, 1, 20)));
     menu.AddItem(new GUIContent("DEVELOPER/Build chain of 40 groups"), false, (GenericMenu.MenuFunction)(() => this.m_Controller.BuildTestSetup(1, 1, 40)));
     menu.AddItem(new GUIContent("DEVELOPER/Build chain of 80 groups"), false, (GenericMenu.MenuFunction)(() => this.m_Controller.BuildTestSetup(1, 1, 80)));
     menu.AddItem(new GUIContent("DEVELOPER/Show overlays"), this.m_ShowDeveloperOverlays, (GenericMenu.MenuFunction)(() => this.m_ShowDeveloperOverlays = !this.m_ShowDeveloperOverlays));
 }
All Usage Examples Of UnityEditor.Unsupported::IsDeveloperBuild