Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PropertyScope(Rect, GUIContent, SerializedProperty)

Create a new PropertyScope and begin the corresponding property.
Read time 1 minuteLast updated 6 days ago

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.