bool IsMultipleValues { get; set; }

robot_2Generated
code_blocksInput

Description

The IsMultipleValues property of the SerializedProperty class indicates whether the property holds multiple values. This can be useful when dealing with properties that may have different values across multiple instances or contexts.

Usage

Use the IsMultipleValues property to check if a SerializedProperty instance contains multiple values. This can help in scenarios where you need to handle properties that might have been set to different values in different contexts or instances.

Example

// Example usage of IsMultipleValues property
SerializedProperty property = GetSerializedProperty();

if (property.IsMultipleValues)
{
    // Handle the case where the property has multiple values
    Console.WriteLine("The property has multiple values.");
}
else
{
    // Handle the case where the property has a single value
    Console.WriteLine("The property has a single value.");
}