文档

Unity Engine

Unity Engine

OnGUI

Override this method to make your own GUI for the property.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

OnGUI(Rect, MaterialProperty, GUIContent, MaterialEditor)

Override this method to make your own GUI for the property.
public virtual void OnGUI(Rect position, MaterialProperty prop, GUIContent label, MaterialEditor editor)

Parameters

position

Rectangle on the screen to use for the property GUI.

The MaterialProperty to make the custom GUI for.

The label of this property.

Current material editor.

OnGUI(Rect, MaterialProperty, string, MaterialEditor)

Override this method to make your own GUI for the property.
public virtual void OnGUI(Rect position, MaterialProperty prop, string label, MaterialEditor editor)

Parameters

position

Rectangle on the screen to use for the property GUI.

The MaterialProperty to make the custom GUI for.

label

The label of this property.

Current material editor.