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.
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.
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 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."); }