Show / Hide Table of Contents

Class SerializedProperty

Inheritance
Object
SerializedProperty
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 SerializedProperty : IDisposable

Properties

| Improve this Doc View Source

animationCurveValue

Declaration
public AnimationCurve animationCurveValue { get; set; }
Property Value
Type Description
AnimationCurve
| Improve this Doc View Source

arrayElementType

Declaration
public string arrayElementType { get; }
Property Value
Type Description
String
| Improve this Doc View Source

arraySize

Declaration
public int arraySize { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

boolValue

Declaration
public bool boolValue { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

boundsIntValue

Declaration
public BoundsInt boundsIntValue { get; set; }
Property Value
Type Description
BoundsInt
| Improve this Doc View Source

boundsValue

Declaration
public Bounds boundsValue { get; set; }
Property Value
Type Description
Bounds
| Improve this Doc View Source

colorValue

Declaration
public Color colorValue { get; set; }
Property Value
Type Description
Color
| Improve this Doc View Source

depth

Declaration
public int depth { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

displayName

Declaration
public string displayName { get; }
Property Value
Type Description
String
| Improve this Doc View Source

doubleValue

Declaration
public double doubleValue { get; set; }
Property Value
Type Description
Double
| Improve this Doc View Source

editable

Declaration
public bool editable { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

enumDisplayNames

Declaration
public string[] enumDisplayNames { get; }
Property Value
Type Description
String[]
| Improve this Doc View Source

enumNames

Declaration
public string[] enumNames { get; }
Property Value
Type Description
String[]
| Improve this Doc View Source

enumValueIndex

Declaration
public int enumValueIndex { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

exposedReferenceValue

Declaration
public Object exposedReferenceValue { get; set; }
Property Value
Type Description
Object
| Improve this Doc View Source

fixedBufferSize

Declaration
public int fixedBufferSize { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

floatValue

Declaration
public float floatValue { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

hasChildren

Declaration
public bool hasChildren { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

hasMultipleDifferentValues

Declaration
public bool hasMultipleDifferentValues { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

hasVisibleChildren

Declaration
public bool hasVisibleChildren { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

intValue

Declaration
public int intValue { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

isAnimated

Declaration
public bool isAnimated { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

isArray

Declaration
public bool isArray { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

isDefaultOverride

Declaration
public bool isDefaultOverride { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

isExpanded

Declaration
public bool isExpanded { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

isFixedBuffer

Declaration
public bool isFixedBuffer { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

isInstantiatedPrefab

Declaration
public bool isInstantiatedPrefab { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

longValue

Declaration
public long longValue { get; set; }
Property Value
Type Description
Int64
| Improve this Doc View Source

name

Declaration
public string name { get; }
Property Value
Type Description
String
| Improve this Doc View Source

objectReferenceInstanceIDValue

Declaration
public int objectReferenceInstanceIDValue { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

objectReferenceValue

Declaration
public Object objectReferenceValue { get; set; }
Property Value
Type Description
Object
| Improve this Doc View Source

prefabOverride

Declaration
public bool prefabOverride { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

propertyPath

Declaration
public string propertyPath { get; }
Property Value
Type Description
String
| Improve this Doc View Source

propertyType

Declaration
public SerializedPropertyType propertyType { get; }
Property Value
Type Description
SerializedPropertyType
| Improve this Doc View Source

quaternionValue

Declaration
public Quaternion quaternionValue { get; set; }
Property Value
Type Description
Quaternion
| Improve this Doc View Source

rectIntValue

Declaration
public RectInt rectIntValue { get; set; }
Property Value
Type Description
RectInt
| Improve this Doc View Source

rectValue

Declaration
public Rect rectValue { get; set; }
Property Value
Type Description
Rect
| Improve this Doc View Source

serializedObject

Declaration
public SerializedObject serializedObject { get; }
Property Value
Type Description
SerializedObject
| Improve this Doc View Source

stringValue

Declaration
public string stringValue { get; set; }
Property Value
Type Description
String
| Improve this Doc View Source

tooltip

Declaration
public string tooltip { get; }
Property Value
Type Description
String
| Improve this Doc View Source

type

Declaration
public string type { get; }
Property Value
Type Description
String
| Improve this Doc View Source

vector2IntValue

Declaration
public Vector2Int vector2IntValue { get; set; }
Property Value
Type Description
Vector2Int
| Improve this Doc View Source

vector2Value

Declaration
public Vector2 vector2Value { get; set; }
Property Value
Type Description
Vector2
| Improve this Doc View Source

vector3IntValue

Declaration
public Vector3Int vector3IntValue { get; set; }
Property Value
Type Description
Vector3Int
| Improve this Doc View Source

vector3Value

Declaration
public Vector3 vector3Value { get; set; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

vector4Value

Declaration
public Vector4 vector4Value { get; set; }
Property Value
Type Description
Vector4

Methods

| Improve this Doc View Source

ClearArray()

Declaration
public void ClearArray()
| Improve this Doc View Source

Copy()

Declaration
public SerializedProperty Copy()
Returns
Type Description
SerializedProperty
| Improve this Doc View Source

CountInProperty()

Declaration
public int CountInProperty()
Returns
Type Description
Int32
| Improve this Doc View Source

CountRemaining()

Declaration
public int CountRemaining()
Returns
Type Description
Int32
| Improve this Doc View Source

DataEquals(SerializedProperty, SerializedProperty)

Declaration
public static bool DataEquals(SerializedProperty x, SerializedProperty y)
Parameters
Type Name Description
SerializedProperty x
SerializedProperty y
Returns
Type Description
Boolean
| Improve this Doc View Source

DeleteArrayElementAtIndex(Int32)

Declaration
public void DeleteArrayElementAtIndex(int index)
Parameters
Type Name Description
Int32 index
| Improve this Doc View Source

DeleteCommand()

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

Dispose()

Declaration
public void Dispose()
| Improve this Doc View Source

DuplicateCommand()

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

EqualContents(SerializedProperty, SerializedProperty)

Declaration
public static bool EqualContents(SerializedProperty x, SerializedProperty y)
Parameters
Type Name Description
SerializedProperty x
SerializedProperty y
Returns
Type Description
Boolean
| Improve this Doc View Source

Finalize()

Declaration
protected void Finalize()
| Improve this Doc View Source

FindPropertyRelative(String)

Declaration
public SerializedProperty FindPropertyRelative(string relativePropertyPath)
Parameters
Type Name Description
String relativePropertyPath
Returns
Type Description
SerializedProperty
| Improve this Doc View Source

GetArrayElementAtIndex(Int32)

Declaration
public SerializedProperty GetArrayElementAtIndex(int index)
Parameters
Type Name Description
Int32 index
Returns
Type Description
SerializedProperty
| Improve this Doc View Source

GetEndProperty()

Declaration
public SerializedProperty GetEndProperty()
Returns
Type Description
SerializedProperty
| Improve this Doc View Source

GetEndProperty(Boolean)

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

GetEnumerator()

Declaration
public IEnumerator GetEnumerator()
Returns
Type Description
IEnumerator
| Improve this Doc View Source

GetFixedBufferElementAtIndex(Int32)

Declaration
public SerializedProperty GetFixedBufferElementAtIndex(int index)
Parameters
Type Name Description
Int32 index
Returns
Type Description
SerializedProperty
| Improve this Doc View Source

InsertArrayElementAtIndex(Int32)

Declaration
public void InsertArrayElementAtIndex(int index)
Parameters
Type Name Description
Int32 index
| Improve this Doc View Source

MoveArrayElement(Int32, Int32)

Declaration
public bool MoveArrayElement(int srcIndex, int dstIndex)
Parameters
Type Name Description
Int32 srcIndex
Int32 dstIndex
Returns
Type Description
Boolean
| Improve this Doc View Source

Next(Boolean)

Declaration
public bool Next(bool enterChildren)
Parameters
Type Name Description
Boolean enterChildren
Returns
Type Description
Boolean
| Improve this Doc View Source

NextVisible(Boolean)

Declaration
public bool NextVisible(bool enterChildren)
Parameters
Type Name Description
Boolean enterChildren
Returns
Type Description
Boolean
| Improve this Doc View Source

Reset()

Declaration
public void Reset()

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