PropertyAccessor Class

Summary

[Editor-Only] A wrapper for accessing the underlying values and fields of a UnityEditor.SerializedProperty.
Assembly
UltEvents.dll
Namespace
UltEvents.Editor
Base Types
  • Object
Derived Types
graph BT Type-->Base0["Object"] Type["PropertyAccessor"] class Type type-node Derived0["CollectionPropertyAccessor"]-->Type click Derived0 "/ultevents/api/UltEvents.Editor/CollectionPropertyAccessor"

Syntax

public class PropertyAccessor

Constructors

Name Summary
PropertyAccessor(PropertyAccessor, string, FieldInfo, Type) Creates a new UltEvents.Editor.PropertyAccessor.

Fields

Name Constant Value Summary
Field
The field wrapped by this accessor.
FieldElementType
The type of the wrapped UltEvents.Editor.PropertyAccessor.Field. Or if it's a collection, this is the type of items in the collection.
IsDynamic
Does the UltEvents.Editor.PropertyAccessor.Field in this accessor or any UltEvents.Editor.PropertyAccessor.Parent have a UnityEngine.SerializeReference attribute?
Name
The name of the field wrapped by this accessor.
Parent
The accessor for the field which this accessor is nested inside.

Methods

Name Value Summary
GetField(Object) FieldInfo
Returns the UltEvents.Editor.PropertyAccessor.Field if there is one or tries to get it from the object's type.
GetField(Object) FieldInfo
Returns the UltEvents.Editor.PropertyAccessor.Field if there is one, otherwise calls UltEvents.Editor.PropertyAccessor.GetField(System.Object@).
GetField(SerializedObject) FieldInfo
Calls UltEvents.Editor.PropertyAccessor.GetField(System.Object) with the UnityEditor.SerializedObject.targetObject.
GetField(SerializedProperty) FieldInfo
Calls UltEvents.Editor.PropertyAccessor.GetField(UnityEditor.SerializedObject) with the UnityEditor.SerializedProperty.serializedObject.
GetFieldElementType(Object) Type
Returns the UltEvents.Editor.PropertyAccessor.FieldElementType if there is one, otherwise calls UltEvents.Editor.PropertyAccessor.GetField(System.Object@) and returns its System.Reflection.FieldInfo.FieldType.
GetFieldElementType(SerializedObject) Type
Calls UltEvents.Editor.PropertyAccessor.GetFieldElementType(System.Object) with the UnityEditor.SerializedObject.targetObject.
GetFieldElementType(SerializedProperty) Type
Calls UltEvents.Editor.PropertyAccessor.GetFieldElementType(UnityEditor.SerializedObject) with the UnityEditor.SerializedProperty.serializedObject.
GetPath() string
Returns this accessor's UnityEditor.SerializedProperty.propertyPath.
GetValue(Object) Object
Gets the value of the from the UltEvents.Editor.PropertyAccessor.Parent (if there is one), then uses it to get and return the value of the UltEvents.Editor.PropertyAccessor.Field.
GetValue(SerializedObject) Object
Gets the value of the from the UltEvents.Editor.PropertyAccessor.Parent (if there is one), then uses it to get and return the value of the UltEvents.Editor.PropertyAccessor.Field.
GetValue(SerializedProperty) Object
Gets the value of the from the UltEvents.Editor.PropertyAccessor.Parent (if there is one), then uses it to get and return the value of the UltEvents.Editor.PropertyAccessor.Field.
ResetValue(SerializedProperty, string) void
Resets the value of the UnityEditor.SerializedProperty to the default value of its type by executing its constructor and field initializers.
SetValue(Object, Object) void
Gets the value of the from the UltEvents.Editor.PropertyAccessor.Parent (if there is one), then uses it to set the value of the UltEvents.Editor.PropertyAccessor.Field.
SetValue(SerializedObject, Object) void
Gets the value of the from the UltEvents.Editor.PropertyAccessor.Parent (if there is one), then uses it to set the value of the UltEvents.Editor.PropertyAccessor.Field.
SetValue(SerializedProperty, Object) void
Gets the value of the from the UltEvents.Editor.PropertyAccessor.Parent (if there is one), then uses it to set the value of the UltEvents.Editor.PropertyAccessor.Field.
ToString() string
Returns a description of this accessor's path.