C# Class TreeEditor.TreeEditor

Inheritance: UnityEditor.Editor
显示文件 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Properties

Property Type Description
styles Styles

Public Methods

Method Description
InspectorAnimation ( TreeData treeData, TreeGroup group ) : void
InspectorBranch ( TreeData treeData, TreeGroupBranch group ) : void
InspectorDistribution ( TreeData treeData, TreeGroup group ) : void
InspectorEditTools ( Tree obj ) : void
InspectorHierachy ( TreeData treeData, Renderer renderer ) : void
InspectorLeaf ( TreeData treeData, TreeGroupLeaf group ) : void
InspectorRoot ( TreeData treeData, TreeGroupRoot group ) : void
OnInspectorGUI ( ) : void

Private Methods

Method Description
AssignMaterials ( Renderer renderer, Material materials, bool applyToPrefab ) : void
BeginSettingsSection ( int nr, GUIContent names ) : void
BuildHierachyNodes ( TreeData treeData, List nodes, TreeGroup group, int depth ) : void
BuildToolbarContent ( string iconStrings, string contentStrings, int selection ) : UnityEngine.GUIContent[]
CalcBounds ( TreeData treeData, Matrix4x4 objMatrix, TreeNode node ) : Bounds
CreateDefaultWindZone ( ) : GameObject
CreateNewTree ( MenuCommand menuCommand ) : void
CreateWindZone ( MenuCommand menuCommand ) : void
DeleteSelected ( TreeData treeData ) : void
DoPositionHandle ( Vector3 position, Quaternion rotation, bool hide ) : Vector3
DrawHierachy ( TreeData treeData, Renderer renderer, Rect sizeRect ) : void
DrawHierachyNodes ( TreeData treeData, List nodes, TreeGroup group, Vector2 offset, float alpha, float fade ) : void
DuplicateSelected ( TreeData treeData ) : void
EndSettingsSection ( ) : void
FindClosestOffset ( TreeData data, Matrix4x4 objMatrix, TreeNode node, Ray mouseRay, float &rotation ) : float
FrameSelected ( Tree tree ) : void
GUICurve ( PropertyType prop, AnimationCurve curve, Rect ranges ) : bool
GUIHandlePropertyChange ( PropertyType prop ) : void
GUIIntSlider ( PropertyType prop, string contentID, int value, int minimum, int maximum, bool hasCurve ) : int
GUIMaterialColor ( Material material, string propertyID, string contentID ) : bool
GUIMaterialField ( PropertyType prop, int uniqueNodeID, string contentID, Material value, TreeEditorHelper nodeType ) : Material
GUIMaterialFloatField ( Material material, string propertyID, string contentID ) : bool
GUIMaterialSlider ( Material material, string propertyID, string contentID ) : bool
GUIMinMaxSlider ( PropertyType prop, string contentID, Vector2 value, float minimum, float maximum, bool hasCurve ) : Vector2
GUIObjectField ( PropertyType prop, string contentID, UnityEngine value, System type, bool hasCurve ) : Object
GUIPopup ( PropertyType prop, string contentID, string optionIDs, int value, bool hasCurve ) : int
GUIPropBegin ( ) : Rect
GUIPropEnd ( ) : void
GUIPropEnd ( bool addSpace ) : void
GUISlider ( PropertyType prop, string contentID, float value, float minimum, float maximum, bool hasCurve ) : float
GUIToggle ( PropertyType prop, string contentID, bool value, bool hasCurve ) : bool
GUItoolbar ( int selection, GUIContent names ) : int
GUIunlockbox ( TreeData treeData ) : void
GenerateMaterialHash ( Material material ) : float
GetHierachyNodeVisRect ( Rect rect ) : Rect
GetMaterialFloat ( Material material, string propertyID ) : float
GetMaterialFloat ( Material material, string propertyID, bool &success ) : float
GetTreeData ( Tree tree ) : TreeData
HandleDragHierachyNodes ( TreeData treeData, List nodes ) : void
LayoutHierachyNodes ( List nodes, Rect sizeRect ) : void
OnCheckHotkeys ( TreeData treeData, bool checkFrameSelected ) : bool
OnDisable ( ) : void
OnEnable ( ) : void
OnSceneGUI ( ) : void

Method Details

InspectorAnimation() public method

public InspectorAnimation ( TreeData treeData, TreeGroup group ) : void
treeData TreeData
group TreeGroup
return void

InspectorBranch() public method

public InspectorBranch ( TreeData treeData, TreeGroupBranch group ) : void
treeData TreeData
group TreeGroupBranch
return void

InspectorDistribution() public method

public InspectorDistribution ( TreeData treeData, TreeGroup group ) : void
treeData TreeData
group TreeGroup
return void

InspectorEditTools() public method

public InspectorEditTools ( Tree obj ) : void
obj UnityEngine.Tree
return void

InspectorHierachy() public method

public InspectorHierachy ( TreeData treeData, Renderer renderer ) : void
treeData TreeData
renderer UnityEngine.Renderer
return void

InspectorLeaf() public method

public InspectorLeaf ( TreeData treeData, TreeGroupLeaf group ) : void
treeData TreeData
group TreeGroupLeaf
return void

InspectorRoot() public method

public InspectorRoot ( TreeData treeData, TreeGroupRoot group ) : void
treeData TreeData
group TreeGroupRoot
return void

OnInspectorGUI() public method

public OnInspectorGUI ( ) : void
return void

Property Details

styles public_oe static_oe property

public static Styles styles
return Styles