Method CheckForNetworkObject
CheckForNetworkObject(GameObject, bool)
Used to determine if a GameObject has one or more NetworkBehaviours but does not already have a NetworkObject component. If not it will notify the user that NetworkBehaviours require a NetworkObject.
Declaration
public static void CheckForNetworkObject(GameObject gameObject, bool networkObjectRemoved = false)
Parameters
Type | Name | Description |
---|---|---|
GameObject | gameObject | GameObject to start checking for a NetworkObject |
bool | networkObjectRemoved | used internally |