PropertyValueState

Enumeration for designating whether a PropertyValueEntry has a special state,.

namespace Sirenix.OdinInspector.Editor
{
public enum PropertyValueState
{
None = 0
Reference = 1
NullReference = 2
PrimitiveValueConflict = 3
ReferenceValueConflict = 4
ReferencePathConflict = 5
CollectionLengthConflict = 6
}
}

Requirements

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

Members

Definition Description
CollectionLengthConflict

The value entry has a collection length conflict across selected indices.

A collection length conflict is when the property represents multiple parallel collections, and their lengths differ.

None The value entry has no special state.
NullReference The value entry is a null value.
PrimitiveValueConflict

The value entry has a primitive value conflict across selected indices.

A primitive value conflict is when primitive values, such a strings or floats, differ.

Reference The property is a reference to another property. Get the path of the referenced property from TargetReferencePath.
ReferencePathConflict

The value entry has a reference path conflict across selected indices.

A reference path conflict is when the property consists of references to many conflicting paths. Use ObjectIsReferenced(Object, ref string) to get paths to all referenced objects.

ReferenceValueConflict

The value entry has a reference value conflict across selected indices.

A reference value conflict is when the types of reference type values differ, or when some values are null while others are not.