C# 클래스 UnityEditor.MaterialPropertyDrawer

Base class to derive custom material property drawers from.

파일 보기 프로젝트 열기: CarlosHBC/UnityDecompiled 1 사용 예제들

공개 메소드들

메소드 설명
Apply ( MaterialProperty prop ) : void

Apply extra initial values to the material.

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

Override this method to specify how tall the GUI for this property is in pixels.

OnGUI ( Rect position, MaterialProperty prop, GUIContent label, MaterialEditor editor ) : void
OnGUI ( Rect position, MaterialProperty prop, string label, MaterialEditor editor ) : void

Override this method to make your own GUI for the property.

보호된 메소드들

메소드 설명
MaterialPropertyDrawer ( ) : System

메소드 상세

Apply() 공개 메소드

Apply extra initial values to the material.

public Apply ( MaterialProperty prop ) : void
prop MaterialProperty The MaterialProperty to apply values for.
리턴 void

GetPropertyHeight() 공개 메소드

Override this method to specify how tall the GUI for this property is in pixels.

public GetPropertyHeight ( MaterialProperty prop, string label, MaterialEditor editor ) : float
prop MaterialProperty The MaterialProperty to make the custom GUI for.
label string The label of this property.
editor MaterialEditor Current material editor.
리턴 float

MaterialPropertyDrawer() 보호된 메소드

protected MaterialPropertyDrawer ( ) : System
리턴 System

OnGUI() 공개 메소드

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

OnGUI() 공개 메소드

Override this method to make your own GUI for the property.

public OnGUI ( Rect position, MaterialProperty prop, string label, MaterialEditor editor ) : void
position UnityEngine.Rect Rectangle on the screen to use for the property GUI.
prop MaterialProperty The MaterialProperty to make the custom GUI for.
label string The label of this property.
editor MaterialEditor Current material editor.
리턴 void