Version 3.3.1.2

PropertyValueEntry<TParent, TValue> class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public sealed class PropertyValueEntry<TParent, TValue> : PropertyValueEntry<TValue>, IPropertyValueEntry<TValue>, IPropertyValueEntry, IDisposable, IValueEntryActualValueSetter<TValue>, IValueEntryActualValueSetter
Represents the values of an InspectorProperty, and contains utilities for querying the values' type and getting and setting them.
Inheritance
See Also
  • Sirenix.OdinInspector.Editor.IPropertyValueEntry

Type Parameters

TParent

The type of the parent.

TValue

The type of the value.

Constructors

PropertyValueEntry()
public PropertyValueEntry()

Properties

ParentType
The type from which this value entry comes. If this value entry represents a member value, this is the declaring type of the member. If the value entry represents a collection element, this is the type of the collection.
public override sealed Type ParentType { get; }

Methods

ApplyChanges()
Applies the changes made to this value entry to the target objects, and registers prefab modifications as necessary.
public override sealed bool ApplyChanges()
Returns
System.Boolean

True if any changes were made, otherwise, false.

GetMostPreciseContainedType()
Determines what the most precise contained type is on this value entry.
protected override sealed Type GetMostPreciseContainedType()
Returns
System.Type

GetValueState()
Determines the value state of this value entry.
protected override sealed PropertyValueState GetValueState()
Initialize()
Initializes this value entry.
protected override void Initialize()
SetActualValueImplementation(Int32, TValue)
protected override void SetActualValueImplementation(int index, TValue value)
Parameters
System.Int32 index

TValue value

UpdateValues()
Updates all values in this value entry from the target tree values.
protected override sealed void UpdateValues()