C# Class UnityEditor.UI.MenuOptions

This script adds the UI menu options to the Unity Editor.
显示文件 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
CreateNewUI ( ) : GameObject
GetOrCreateCanvasGameObject ( ) : GameObject

Private Methods

Method Description
AddButton ( MenuCommand menuCommand ) : void
AddCanvas ( MenuCommand menuCommand ) : void
AddDropdown ( MenuCommand menuCommand ) : void
AddImage ( MenuCommand menuCommand ) : void
AddInputField ( MenuCommand menuCommand ) : void
AddPanel ( MenuCommand menuCommand ) : void
AddRawImage ( MenuCommand menuCommand ) : void
AddScrollView ( MenuCommand menuCommand ) : void
AddScrollbar ( MenuCommand menuCommand ) : void
AddSlider ( MenuCommand menuCommand ) : void
AddText ( MenuCommand menuCommand ) : void
AddToggle ( MenuCommand menuCommand ) : void
CreateEventSystem ( MenuCommand menuCommand ) : void
CreateEventSystem ( bool select ) : void
CreateEventSystem ( bool select, GameObject parent ) : void
GetStandardResources ( ) : DefaultControls.Resources
PlaceUIElementRoot ( GameObject element, MenuCommand menuCommand ) : void
SetPositionVisibleinSceneView ( RectTransform canvasRTransform, RectTransform itemTransform ) : void

Method Details

CreateNewUI() public static method

public static CreateNewUI ( ) : GameObject
return UnityEngine.GameObject

GetOrCreateCanvasGameObject() public static method

public static GetOrCreateCanvasGameObject ( ) : GameObject
return UnityEngine.GameObject