Summary
[Editor-Only] A serializable reference to a
UnityEditor.SerializedProperty
.- Assembly
- Animancer
.dll - Namespace
- Animancer
.Editor - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["Serialization.PropertyReference"]
class Type type-node
Syntax
[Serializable]
public class Serialization.PropertyReference
Attributes
Type | Description |
---|---|
Serializable |
Constructors
Name | Summary |
---|---|
PropertyReference |
Creates a new Animancer.Editor.Serialization.PropertyReference which wraps the specified `property`.
|
Properties
Name | Value | Summary |
---|---|---|
Context | Serialization |
[
UnityEngine.SerializeField ] The UnityEditor.SerializedObject.context . |
IsInitialized | bool |
Indicates whether the
Animancer.Editor.Serialization.PropertyReference.Property has been accessed. |
Property | SerializedProperty |
[
UnityEngine.SerializeField ] The referenced UnityEditor.SerializedProperty . |
PropertyPath | string |
[
UnityEngine.SerializeField ] The UnityEditor.SerializedProperty.propertyPath . |
TargetObject | Serialization |
[
UnityEngine.SerializeField ] The UnityEditor.SerializedObject.targetObject . |
TargetObjects | Serialization |
[
UnityEngine.SerializeField ] The UnityEditor.SerializedObject.targetObjects . |
Methods
Name | Value | Summary |
---|---|---|
Apply |
void |
Calls
UnityEditor.SerializedObject.ApplyModifiedProperties if the Animancer.Editor.Serialization.PropertyReference.Property has been initialized.
|
Dispose |
void |
Calls
UnityEditor.SerializedObject.Dispose if the Animancer.Editor.Serialization.PropertyReference.Property has been initialized.
|
DoPropertyGUI |
void |
Draws the target property within the specified `area`.
|
DoTargetGUI |
void |
Draws the target object within the specified `area`.
|
GetPropertyHeight |
float |
Gets the height needed to draw the target property.
|
IsTarget |
bool |
Do the specified `property` and `targetObjects` match the targets of this reference?
|
Update |
void |
Calls
UnityEditor.SerializedObject.Update if the Animancer.Editor.Serialization.PropertyReference.Property has been initialized.
|
Operators
Name | Value | Summary |
---|---|---|
implicit operator |
Serialization |
|
implicit operator |
SerializedProperty |
Extension Methods
Name | Value | Summary |
---|---|---|
IsValid |
bool |
Returns true if the `reference` and
Animancer.Editor.Serialization.PropertyReference.Property are not null.From Serialization
|