C# Class UnityEditor.SerializedObject

SerializedObject and SerializedProperty are classes for editing properties on objects in a completely generic way that automatically handles undo and styling UI for prefabs.

Mostra file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Private Properties

Property Type Description
ApplyModifiedProperties bool
ApplyModifiedPropertiesWithoutUndo bool
Cache void
CopyFromSerializedProperty void
Dispose void
ExtractPropertyModification PropertyModification
GetIterator_Internal UnityEditor.SerializedProperty
InternalCreate void
LoadFromCache SerializedObject
SetIsDifferentCacheDirty void
Update void
UpdateIfDirtyOrScript void

Public Methods

Method Description
FindProperty ( string propertyPath ) : UnityEditor.SerializedProperty

Find serialized property by name.

GetIterator ( ) : UnityEditor.SerializedProperty

Get the first serialized property.

SerializedObject ( Object obj ) : System

Create SerializedObject for inspected object.

Private Methods

Method Description
ApplyModifiedProperties ( ) : bool
ApplyModifiedPropertiesWithoutUndo ( ) : bool
Cache ( int instanceID ) : void
CopyFromSerializedProperty ( UnityEditor.SerializedProperty prop ) : void
Dispose ( ) : void
ExtractPropertyModification ( string propertyPath ) : PropertyModification
GetIterator_Internal ( ) : UnityEditor.SerializedProperty
InternalCreate ( Object monoObjs ) : void
LoadFromCache ( int instanceID ) : SerializedObject
SetIsDifferentCacheDirty ( ) : void
Update ( ) : void
UpdateIfDirtyOrScript ( ) : void

Method Details

FindProperty() public method

Find serialized property by name.

public FindProperty ( string propertyPath ) : UnityEditor.SerializedProperty
propertyPath string
return UnityEditor.SerializedProperty

GetIterator() public method

Get the first serialized property.

public GetIterator ( ) : UnityEditor.SerializedProperty
return UnityEditor.SerializedProperty

SerializedObject() public method

Create SerializedObject for inspected object.

public SerializedObject ( Object obj ) : System
obj Object
return System