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.


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


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)
System.Int32 index

The selection index of the value.

System.Object value

The value to be set.

Marks the value collection as being clean again. This is typically called at the end of the current GUI frame, during ApplyChanges().
void MarkClean()
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