Show / Hide Table of Contents

Class SerializedObject

Inheritance
Object
SerializedObject
Implements
IDisposable
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEditor
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
Type Name Description
Object obj
Object context
| 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
Type Name Description
Object[] objs
Object context

Properties

context

Declaration
public Object context { get; }
Property Value
Type Description
Object

isEditingMultipleObjects

Declaration
public bool isEditingMultipleObjects { get; }
Property Value
Type Description
Boolean

maxArraySizeForMultiEditing

Declaration
public int maxArraySizeForMultiEditing { get; set; }
Property Value
Type Description
Int32

targetObject

Declaration
public Object targetObject { get; }
Property Value
Type Description
Object

targetObjects

Declaration
public Object[] targetObjects { get; }
Property Value
Type Description
Object[]

Methods

ApplyModifiedProperties()

Declaration
public bool ApplyModifiedProperties()
Returns
Type Description
Boolean

ApplyModifiedPropertiesWithoutUndo()

Declaration
public bool ApplyModifiedPropertiesWithoutUndo()
Returns
Type Description
Boolean
| Improve this Doc View Source

CopyFromSerializedProperty(SerializedProperty)

Declaration
public void CopyFromSerializedProperty(SerializedProperty prop)
Parameters
Type Name Description
SerializedProperty prop
| Improve this Doc View Source

CopyFromSerializedPropertyIfDifferent(SerializedProperty)

Declaration
public bool CopyFromSerializedPropertyIfDifferent(SerializedProperty prop)
Parameters
Type Name Description
SerializedProperty prop
Returns
Type Description
Boolean
| Improve this Doc View Source

Dispose()

Declaration
public void Dispose()
| 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
Type Description
SerializedProperty
| Improve this Doc View Source

GetIterator()

Declaration
public SerializedProperty GetIterator()
Returns
Type Description
SerializedProperty

SetIsDifferentCacheDirty()

Declaration
public void SetIsDifferentCacheDirty()

Update()

Declaration
public void Update()

UpdateIfDirtyOrScript()

Declaration
[Obsolete("UpdateIfDirtyOrScript has been deprecated. Use UpdateIfRequiredOrScript instead.", false)]
public void UpdateIfDirtyOrScript()

UpdateIfRequiredOrScript()

Declaration
public bool UpdateIfRequiredOrScript()
Returns
Type Description
Boolean

Implements

System.IDisposable

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX