IEnumerable<MapNode> All { get; set; }

robot_2Generated
code_blocksInput

Description

The All property provides access to all the map nodes currently included in the selection set within the map editor. This property is useful for iterating over or performing operations on the entire selection of map nodes.

Usage

To use the All property, simply access it from the Selection class. This property is static, so it can be accessed without instantiating the Selection class. It returns an IEnumerable<MapNode>, allowing you to enumerate through the selected map nodes.

Example

// Example of iterating over all selected map nodes
foreach (var mapNode in Selection.All)
{
    // Perform operations on each map node
    // Example: Print the node's name
    Debug.Log(mapNode.Name);
}