C# Class TreeEditor.TreeEditorHelper

Datei anzeigen Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Private Properties

Property Type Description
AddShaderFromMaterial void
ChangeShaderOnMaterial void
ChangeShaderOnMaterials void
CheckForTooManyShaders bool
DisableAnimBool void
GUIShowError int
GUITooManyShaders bool
GetAllTreeShaders void
GetDefaultShader string
GetRecommendedShaders List
GetSelectedIndex int
GetShadersListForNodeType List
GetShadersListOppositeToNodeType List
HasOptimizedShaderAndNameContains bool
IsMaterialCorrect bool
IsTreeShader bool
RemoveSelectedIndex void
SetAnimBool void
SetAnimBool void
SetAnimsCallback void
SetSelectedIndex void

Public Methods

Method Description
AreShadersCorrect ( ) : bool
ExtractLabel ( string uiString ) : string
ExtractTooltip ( string uiString ) : string
GUITooManyShaders ( ) : bool
GUIWrongShader ( string uniqueID, Material value, NodeType nodeType ) : bool
GetGUIContent ( string id ) : GUIContent
GetOptimizedShaderName ( Shader shader ) : string
GetUIString ( string id ) : string
IsTreeBarkShader ( Shader shader ) : bool
IsTreeLeafShader ( Shader shader ) : bool
NodeHasWrongMaterial ( TreeGroup group ) : bool
OnEnable ( TreeData treeData ) : void
RefreshAllTreeShaders ( ) : void

Private Methods

Method Description
AddShaderFromMaterial ( Material material, List barkShaders, List leafShaders ) : void
ChangeShaderOnMaterial ( Material material, Shader shader ) : void
ChangeShaderOnMaterials ( TreeData treeData, Shader shader, TreeGroup group, NodeType nodeType ) : void
CheckForTooManyShaders ( NodeType nodeType ) : bool
DisableAnimBool ( string contentID ) : void
GUIShowError ( string uniqueID, List list, GUIContent message, GUIContent button, Texture2D icon ) : int
GUITooManyShaders ( NodeType nodeType ) : bool
GetAllTreeShaders ( TreeData treeData, List barkShaders, List leafShaders, TreeGroup group ) : void
GetDefaultShader ( NodeType nodeType ) : string
GetRecommendedShaders ( NodeType nodeType ) : List
GetSelectedIndex ( string contentID ) : int
GetShadersListForNodeType ( NodeType nodeType ) : List
GetShadersListOppositeToNodeType ( NodeType nodeType ) : List
HasOptimizedShaderAndNameContains ( Shader shader, string name ) : bool
IsMaterialCorrect ( Material material ) : bool
IsTreeShader ( Shader shader ) : bool
RemoveSelectedIndex ( string contentID ) : void
SetAnimBool ( string contentID, bool target ) : void
SetAnimBool ( string contentID, bool target, bool value ) : void
SetAnimsCallback ( UnityAction callback ) : void
SetSelectedIndex ( string contentID, int value ) : void

Method Details

AreShadersCorrect() public method

public AreShadersCorrect ( ) : bool
return bool

ExtractLabel() public static method

public static ExtractLabel ( string uiString ) : string
uiString string
return string

ExtractTooltip() public static method

public static ExtractTooltip ( string uiString ) : string
uiString string
return string

GUITooManyShaders() public method

public GUITooManyShaders ( ) : bool
return bool

GUIWrongShader() public method

public GUIWrongShader ( string uniqueID, Material value, NodeType nodeType ) : bool
uniqueID string
value UnityEngine.Material
nodeType NodeType
return bool

GetGUIContent() public static method

public static GetGUIContent ( string id ) : GUIContent
id string
return UnityEngine.GUIContent

GetOptimizedShaderName() public static method

public static GetOptimizedShaderName ( Shader shader ) : string
shader UnityEngine.Shader
return string

GetUIString() public static method

public static GetUIString ( string id ) : string
id string
return string

IsTreeBarkShader() public static method

public static IsTreeBarkShader ( Shader shader ) : bool
shader UnityEngine.Shader
return bool

IsTreeLeafShader() public static method

public static IsTreeLeafShader ( Shader shader ) : bool
shader UnityEngine.Shader
return bool

NodeHasWrongMaterial() public method

public NodeHasWrongMaterial ( TreeGroup group ) : bool
group TreeGroup
return bool

OnEnable() public method

public OnEnable ( TreeData treeData ) : void
treeData TreeData
return void

RefreshAllTreeShaders() public method

public RefreshAllTreeShaders ( ) : void
return void