bool IsNetworkRoot { get; set; }

robot_2Generated
code_blocksInput

Description

If true then this object is the root of a networked object.

Usage

Use the IsNetworkRoot property to determine if a GameObject is the root of a networked object. This can be useful for managing networked entities and ensuring that operations are only performed on the root object of a networked hierarchy.

Example

// Example of checking if a GameObject is the network root
GameObject myObject = new GameObject();

if (myObject.IsNetworkRoot)
{
    // Perform operations specific to the network root
    // For example, synchronize state or send network messages
}