Class SerializedObject
Inheritance
SerializedObject
Assembly: UnityEditor.dll
Syntax
public class SerializedObject : IDisposable
Constructors
|
Improve this Doc
View Source
SerializedObject(Object)
Declaration
public SerializedObject(Object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
|
Improve this Doc
View Source
SerializedObject(Object, Object)
Declaration
public SerializedObject(Object obj, Object context)
Parameters
|
Improve this Doc
View Source
SerializedObject(Object[])
Declaration
public SerializedObject(Object[] objs)
Parameters
Type |
Name |
Description |
Object[] |
objs |
|
|
Improve this Doc
View Source
SerializedObject(Object[], Object)
Declaration
public SerializedObject(Object[] objs, Object context)
Parameters
Properties
context
Declaration
public Object context { get; }
Property Value
isEditingMultipleObjects
Declaration
public bool isEditingMultipleObjects { get; }
Property Value
Declaration
public int maxArraySizeForMultiEditing { get; set; }
Property Value
targetObject
Declaration
public Object targetObject { get; }
Property Value
targetObjects
Declaration
public Object[] targetObjects { get; }
Property Value
Methods
ApplyModifiedProperties()
Declaration
public bool ApplyModifiedProperties()
Returns
ApplyModifiedPropertiesWithoutUndo()
Declaration
public bool ApplyModifiedPropertiesWithoutUndo()
Returns
|
Improve this Doc
View Source
CopyFromSerializedProperty(SerializedProperty)
Declaration
public void CopyFromSerializedProperty(SerializedProperty prop)
Parameters
|
Improve this Doc
View Source
CopyFromSerializedPropertyIfDifferent(SerializedProperty)
Declaration
public bool CopyFromSerializedPropertyIfDifferent(SerializedProperty prop)
Parameters
Returns
|
Improve this Doc
View Source
Dispose()
Declaration
|
Improve this Doc
View Source
Finalize()
Declaration
protected void Finalize()
|
Improve this Doc
View Source
FindProperty(String)
Declaration
public SerializedProperty FindProperty(string propertyPath)
Parameters
Type |
Name |
Description |
String |
propertyPath |
|
Returns
|
Improve this Doc
View Source
GetIterator()
Declaration
public SerializedProperty GetIterator()
Returns
SetIsDifferentCacheDirty()
Declaration
public void SetIsDifferentCacheDirty()
Update()
Declaration
UpdateIfDirtyOrScript()
Declaration
[Obsolete("UpdateIfDirtyOrScript has been deprecated. Use UpdateIfRequiredOrScript instead.", false)]
public void UpdateIfDirtyOrScript()
UpdateIfRequiredOrScript()
Declaration
public bool UpdateIfRequiredOrScript()
Returns
Implements
Extension Methods