bool Networked { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

This property is marked as obsolete and should not be used in new code. It was previously used to determine if a GameObject was networked. Instead, use the NetworkMode property to manage networking behavior for GameObject instances.

Usage

Instead of using the Networked property, update your code to use the NetworkMode property to handle networking configurations for GameObject instances.

Example

// Example of using the new NetworkMode property
GameObject myObject = new GameObject();
myObject.NetworkMode = NetworkMode.Client; // Set the network mode to client