Description
The NotNetworked
flag is a member of the GameObjectFlags
enumeration in the Sandbox API. This flag is used to indicate that a game object should remain local and not be networked as part of the scene snapshot. This can be useful for objects that are intended to be client-specific and should not be synchronized across the network.
Usage
To use the NotNetworked
flag, you can assign it to a game object to ensure that it is not included in network updates. This is particularly useful for objects that are meant to be local to a client, such as UI elements or client-specific effects.
Example usage:
GameObject myObject = new GameObject();
myObject.Flags |= GameObjectFlags.NotNetworked;
Example
GameObject myObject = new GameObject();
myObject.Flags |= GameObjectFlags.NotNetworked;