IEnumerable<SerializedProperty> MultipleProperties { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The MultipleProperties property of the SerializedProperty class provides access to all properties if the current instance holds multiple values. This is useful when dealing with serialized data that can represent multiple values, allowing you to iterate over each individual property.

Usage

Use the MultipleProperties property when you need to access each property individually from a serialized object that contains multiple values. This property returns an IEnumerable<SerializedProperty>, which can be enumerated using a foreach loop or any other LINQ operations.

Example

// Example of using the MultipleProperties property
SerializedProperty serializedProperty = GetSerializedProperty();

if (serializedProperty.IsMultipleValues)
{
    foreach (var property in serializedProperty.MultipleProperties)
    {
        // Process each property
        Console.WriteLine(property.Name);
    }
}