Method OnGUI
OnGUI(MaterialEditor, MaterialProperty[])
To define a custom shader GUI use the methods of materialEditor to render controls for the properties array.
선언
public override void OnGUI(MaterialEditor materialEditorIn, MaterialProperty[] properties)
파라미터
타입 | 이름 | 설명 |
---|---|---|
MaterialEditor | materialEditorIn | |
MaterialProperty[] | properties | Material properties of the current selected shader. |
오버라이드
UnityEditor.ShaderGUI.OnGUI(UnityEditor.MaterialEditor, UnityEditor.MaterialProperty[])