文档

Unity Engine

Unity Engine

PropertyScope(Rect, GUIContent, SerializedProperty)

Create a new PropertyScope and begin the corresponding property.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Constructor
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public PropertyScope(Rect totalPosition, GUIContent label, SerializedProperty property)

Parameters

totalPosition

Rectangle on the screen to use for the control, including label if applicable.

Label in front of the slider. Use null to use the name from the SerializedProperty. Use GUIContent.none to not display a label.

The SerializedProperty to use for the control.