Serialized property extension methods.
More...
|
static string | GetParentPath (this SerializedProperty property) |
|
static SerializedProperty | GetParentProperty (this SerializedProperty property) |
|
static object | GetValue (this SerializedProperty property) |
| (Extension) Get the value of the serialized property. More...
|
|
static void | SetValue (this SerializedProperty property, object value) |
| (Extension) Set the value of the serialized property with Undo. More...
|
|
static void | SetValueNoRecord (this SerializedProperty property, object value) |
| (Extension) Set the value of the serialized property, but do not record the change. The change will not be persisted unless you call SetDirty and ApplyModifiedProperties. More...
|
|
static IEnumerable< SerializedProperty > | GetVisibleChildren (this SerializedProperty prop) |
| Gets visible children of SerializedProperty at 1 level depth. More...
|
|
static IEnumerable< SerializedProperty > | GetChildren (this SerializedProperty serializedProperty) |
| Gets all children of SerializedProperty at 1 level depth. More...
|
|
static object | GetParentObject (this SerializedProperty prop) |
| (Extension) Get the parent object that owns this serialized property. More...
|
|
static float | GetEditorHeight (this SerializedProperty property) |
|
◆ GetChildren()
static IEnumerable< SerializedProperty > Megapop.MegaCore.Editor.SerializedPropertyExt.GetChildren |
( |
this SerializedProperty |
serializedProperty | ) |
|
|
inlinestatic |
Gets all children of SerializedProperty
at 1 level depth.
- Parameters
-
serializedProperty | Parent SerializedProperty . |
- Returns
- Collection of
SerializedProperty
children.
◆ GetEditorHeight()
static float Megapop.MegaCore.Editor.SerializedPropertyExt.GetEditorHeight |
( |
this SerializedProperty |
property | ) |
|
|
inlinestatic |
◆ GetParentObject()
static object Megapop.MegaCore.Editor.SerializedPropertyExt.GetParentObject |
( |
this SerializedProperty |
prop | ) |
|
|
inlinestatic |
(Extension) Get the parent object that owns this serialized property.
◆ GetParentPath()
static string Megapop.MegaCore.Editor.SerializedPropertyExt.GetParentPath |
( |
this SerializedProperty |
property | ) |
|
|
inlinestatic |
◆ GetParentProperty()
static SerializedProperty Megapop.MegaCore.Editor.SerializedPropertyExt.GetParentProperty |
( |
this SerializedProperty |
property | ) |
|
|
inlinestatic |
◆ GetValue()
static object Megapop.MegaCore.Editor.SerializedPropertyExt.GetValue |
( |
this SerializedProperty |
property | ) |
|
|
inlinestatic |
(Extension) Get the value of the serialized property.
◆ GetVisibleChildren()
static IEnumerable< SerializedProperty > Megapop.MegaCore.Editor.SerializedPropertyExt.GetVisibleChildren |
( |
this SerializedProperty |
prop | ) |
|
|
inlinestatic |
Gets visible children of SerializedProperty
at 1 level depth.
- Parameters
-
prop | Parent SerializedProperty . |
- Returns
- Collection of
SerializedProperty
children.
◆ SetValue()
static void Megapop.MegaCore.Editor.SerializedPropertyExt.SetValue |
( |
this SerializedProperty |
property, |
|
|
object |
value |
|
) |
| |
|
inlinestatic |
(Extension) Set the value of the serialized property with Undo.
◆ SetValueNoRecord()
static void Megapop.MegaCore.Editor.SerializedPropertyExt.SetValueNoRecord |
( |
this SerializedProperty |
property, |
|
|
object |
value |
|
) |
| |
|
inlinestatic |
(Extension) Set the value of the serialized property, but do not record the change. The change will not be persisted unless you call SetDirty and ApplyModifiedProperties.
The documentation for this class was generated from the following file: