Description
The SerializedProperty
property of the ControlWidget
class represents the serialized property that this widget is responsible for editing. It is a key component in the editor framework, allowing developers to manipulate and display data in a structured manner.
Usage
To use the SerializedProperty
property, you typically create an instance of a ControlWidget
and assign a SerializedProperty
to it. This property is then used by the widget to display and edit the data associated with the serialized property.
Example
// Example of using the SerializedProperty property
// Assume 'property' is a valid SerializedProperty instance
var controlWidget = Editor.ControlWidget.Create(property);
// Access the SerializedProperty
var serializedProperty = controlWidget.SerializedProperty;
// Use the serialized property as needed
// For example, you might want to check its value or modify it
if (serializedProperty != null)
{
// Perform operations on serializedProperty
}