Summary
[Editor-Only] Various serialization utilities.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.Editor - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["Serialization"]
class Type type-node
Syntax
public static class Serialization
Fields
Name | Constant Value | Summary |
---|---|---|
ArrayDataPrefix | .Array.data[ |
The text used in a
UnityEditor.SerializedProperty.propertyPath to denote array elements.static
|
ArrayDataSuffix | ] |
The text used in a
UnityEditor.SerializedProperty.propertyPath to denote array elements.static
|
InstanceBindings | 52 |
Bindings for Public and Non-Public Instance members.
static
|
Methods
Name | Value | Summary |
---|---|---|
AddFunction |
void |
Adds a menu item to execute the specified `function` for each of the `property`s target objects.
static
|
AddFunction |
void |
Adds a menu item to execute the specified `function` for each of the `property`s target objects.
static
|
Add |
void |
Adds a menu item to execute the specified `function` for each of the `property`s target objects.
static
|
Add |
void |
Adds a menu item to execute the specified `function` for each of the `property`s target objects.
static
|
Add |
void |
Adds a menu item to execute the specified `function` for each of the `property`s target objects.
static
|
AreSameProperty |
bool |
Indicates whether both properties refer to the same underlying field.
static
|
CopyValueFrom |
float |
Copies the value of `from` into `to` (including all nested properties).
static
|
ForEachTarget |
void |
Executes the `action` once with a new
UnityEditor.SerializedProperty for each of the
UnityEditor.SerializedObject.targetObjects . Or if there is only one target, it uses the `property`.
static
|
GetAccessor |
Serialization |
Returns an
Animancer.Editor.Serialization.PropertyAccessor that can be used to access the details of the specified `property`.
static
|
GetField |
FieldInfo |
Returns a field with the specified `name` in the `declaringType` or any of its base types.
static
|
GetField |
FieldInfo |
Returns a field with the specified `name` in the `declaringType` or any of its base types.
static
|
GetFriendlyPath |
string |
Returns a user friendly version of the
UnityEditor.SerializedProperty.propertyPath .static
|
GetGradientValue |
Gradient |
Gets the
UnityEngine.Gradient value from a UnityEditor.SerializedPropertyType.Gradient .static
|
GetPropertyType |
Serialized |
Returns the
UnityEditor.SerializedPropertyType that represents fields of the specified `type`.
static
|
GetValue |
Object |
Gets the value of the
UnityEditor.SerializedProperty .static
|
GetValue |
Object |
Gets the value of the specified
UnityEditor.SerializedProperty .static
|
GetValue |
T |
Gets the value of the
UnityEditor.SerializedProperty .static
|
GetValue |
void |
Gets the value of the
UnityEditor.SerializedProperty .static
|
GetValues |
T[] |
Gets the value of the
UnityEditor.SerializedProperty for each of its target objects.static
|
IsDefaultValueByType |
bool |
Is the value of the `property` the same as the default serialized value for its type?
static
|
IsValid |
bool |
Returns true if the `reference` and
Animancer.Editor.Serialization.ObjectReference.Object are not null.static
|
IsValid |
bool |
Returns true if the `reference` and
Animancer.Editor.Serialization.PropertyReference.Property are not null.static
|
ModifyValues |
void |
Calls the specified `method` for each of the underlying values of the `property` (in case it represents
multiple selected objects) and records an undo step for any modifications made.
static
|
OnPropertyChanged |
void |
Updates the specified `property` and marks its target objects as dirty so any changes to a prefab will be saved.
static
|
RecordUndo |
void |
Records the state of the specified `property` so it can be undone.
static
|
RemoveArrayElement |
void |
Removes the specified array element from the `property`.
static
|
ResetValue |
void |
Resets the value of the
UnityEditor.SerializedProperty to the default value of its type and all its field
types, ignoring values set by constructors or field initializers.
static
|
SetGradientValue |
void |
Sets the
UnityEngine.Gradient value on a UnityEditor.SerializedPropertyType.Gradient .static
|
SetValue |
void |
Sets the value of the
UnityEditor.SerializedProperty .static
|
SetValue |
void |
Sets the value of the specified
UnityEditor.SerializedProperty .static
|