Version 2.1.0.0

IPropertyValueCollection interface

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public interface IPropertyValueCollection : IList, ICollection, IEnumerable
Represents a weakly typed collection of values for a PropertyValueEntry - one value per selected inspector target.

Properties

AreDirty
Whether the values have been changed since MarkClean() was last called.
bool AreDirty { get; }
Original
The original values of the value collection, such as they were immediately after the last Update() call.
IImmutableList Original { get; }

Methods

ForceMarkDirty()
Marks the value collection as being dirty, regardless of any value changes.
void ForceMarkDirty()
ForceSetValue(Int32, Object)

Force sets the value, ignoring whether it is editable or not.

Note that this will fail on list element value entries where Sirenix.OdinInspector.Editor.IPropertyValueEntry.ListIsReadOnly is true on the parent value entry.

void ForceSetValue(int index, object value)
Parameters
System.Int32 index

The selection index of the value.

System.Object value

The value to be set.

MarkClean()
Marks the value collection as being clean again. This is typically called at the end of the current GUI frame, during ApplyChanges().
void MarkClean()
RevertUnappliedValues()
Reverts the value collection to its origin values (found in Original) from the last Update() call, and marks the value collection as being clean again.
void RevertUnappliedValues()
Extension Methods