IPropertyValueEntry<TValue>

Represents the strongly typed values of an InspectorProperty, and contains utilities for querying the values' type and getting and setting them.

namespace Sirenix.OdinInspector.Editor
{
public interface IPropertyValueEntry<TValue> : IPropertyValueEntry
}

Requirements

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector
Version: 1.0.6.1

Properties

Return Type Definition Description
TValue SmartValue

A strongly typed smart value that represents the first element of the value entry's value collection, but has "smart logic" for setting the value that detects relevant changes and applies them in parallel.

This lets you often just use the smart value instead of having to deal with the tedium of multiple parallel values.

IPropertyValueCollection<TValue> Values Provides access to the strongly typed values of this value entry.

Methods

Return Type Definition Description
bool ValueIsPrefabDifferent(TValue, int)

Determines whether the value at the given selection index is different from the given prefab value, as is relevant for prefab modification checks.

If the value is a reference type, null and type difference is checked. If value is a value type, a comparer from GetEqualityComparerDelegate<T>() is used.

This method is best ignored unless you know what you are doing.