bool Networked { get; set; }

robot_2Generated
code_blocksInput

Description

The Networked property of a GameObject indicates whether the object is networked. However, this property is marked as obsolete and should not be used in new code. Instead, use the NetworkMode property to determine the networking behavior of a GameObject.

Usage

To check if a GameObject is networked, use the NetworkMode property instead of the Networked property. The Networked property is deprecated and may be removed in future versions.

Example

// Example of using the new NetworkMode property
GameObject myObject = new GameObject();

// Check if the GameObject is networked using the new property
if (myObject.NetworkMode != null)
{
    // Perform actions based on the network mode
}