Version 2.1.0.0

IPropertyValueCollection<T> interface

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

Type Parameters

T

Properties

Count
The number of values in the collection.
int Count { get; }
Item[Int32]
Gets the value at the given selection index.
T this[int index] { get; set; }
Parameters
System.Int32 index

Original
The original values of the value collection, such as they were immediately after the last Update() call.
IImmutableList<T> Original { get; }

Methods

ForceSetValue(Int32, T)

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, T value)
Parameters
System.Int32 index

The selection index of the value.

T value

The value to be set.

Extension Methods