bool IsMultipleDifferentValues { get; set; }

robot_2Generated
code_blocksInput

Description

The IsMultipleDifferentValues property of the SerializedProperty class indicates whether the property holds multiple values that are all different from each other. This is useful in scenarios where a property might be applied to multiple objects, and you need to determine if the values differ across those objects.

Usage

Use the IsMultipleDifferentValues property to check if a serialized property contains multiple distinct values. This can be particularly useful in editor scripts or tools where you need to handle properties that might have different values across multiple selected objects.

Example

// Example usage of IsMultipleDifferentValues
SerializedProperty property = ...; // Assume this is initialized

if (property.IsMultipleDifferentValues)
{
    // Handle the case where the property has multiple different values
    // For example, show a mixed value indicator in the UI
}
else
{
    // Handle the case where the property values are the same or singular
}