C# Class TreeEditor.TreeEditorHelper

Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AreShadersCorrect ( ) : bool
Résultat bool

ExtractLabel() public static méthode

public static ExtractLabel ( string uiString ) : string
uiString string
Résultat string

ExtractTooltip() public static méthode

public static ExtractTooltip ( string uiString ) : string
uiString string
Résultat string

GUITooManyShaders() public méthode

public GUITooManyShaders ( ) : bool
Résultat bool

GUIWrongShader() public méthode

public GUIWrongShader ( string uniqueID, Material value, NodeType nodeType ) : bool
uniqueID string
value UnityEngine.Material
nodeType NodeType
Résultat bool

GetGUIContent() public static méthode

public static GetGUIContent ( string id ) : GUIContent
id string
Résultat UnityEngine.GUIContent

GetOptimizedShaderName() public static méthode

public static GetOptimizedShaderName ( Shader shader ) : string
shader UnityEngine.Shader
Résultat string

GetUIString() public static méthode

public static GetUIString ( string id ) : string
id string
Résultat string

IsTreeBarkShader() public static méthode

public static IsTreeBarkShader ( Shader shader ) : bool
shader UnityEngine.Shader
Résultat bool

IsTreeLeafShader() public static méthode

public static IsTreeLeafShader ( Shader shader ) : bool
shader UnityEngine.Shader
Résultat bool

NodeHasWrongMaterial() public méthode

public NodeHasWrongMaterial ( TreeGroup group ) : bool
group TreeGroup
Résultat bool

OnEnable() public méthode

public OnEnable ( TreeData treeData ) : void
treeData TreeData
Résultat void

RefreshAllTreeShaders() public méthode

public RefreshAllTreeShaders ( ) : void
Résultat void