ドキュメント

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.