C# Class UnityEditor.MaterialPropertyHandler

显示文件 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
GetPropertyHeight ( MaterialProperty prop, string label, MaterialEditor editor ) : float
IsEmpty ( ) : bool
OnGUI ( Rect &position, MaterialProperty prop, GUIContent label, MaterialEditor editor ) : void

Private Methods

Method Description
CreatePropertyDrawer ( Type klass, string argsText ) : MaterialPropertyDrawer
GetHandler ( Shader shader, string name ) : MaterialPropertyHandler
GetPropertyString ( Shader shader, string name ) : string
GetShaderPropertyDrawer ( string attrib, bool &isDecorator ) : MaterialPropertyDrawer
GetShaderPropertyHandler ( Shader shader, string name ) : MaterialPropertyHandler
InvalidatePropertyCache ( Shader shader ) : void

Method Details

GetPropertyHeight() public method

public GetPropertyHeight ( MaterialProperty prop, string label, MaterialEditor editor ) : float
prop MaterialProperty
label string
editor MaterialEditor
return float

IsEmpty() public method

public IsEmpty ( ) : bool
return bool

OnGUI() public method

public OnGUI ( Rect &position, MaterialProperty prop, GUIContent label, MaterialEditor editor ) : void
position UnityEngine.Rect
prop MaterialProperty
label UnityEngine.GUIContent
editor MaterialEditor
return void