文档

Unity Engine

Unity Engine

OnGUI(Rect, SerializedProperty, GUIContent)

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

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public virtual void OnGUI(Rect position, SerializedProperty property, GUIContent label)

Parameters

position

Rectangle on the screen to use for the property GUI.

The SerializedProperty to make the custom GUI for.

The label of this property.