Class GameObjectExtensions
Extension methods for GameObject related to netcode worlds.
Inherited Members
Namespace: Unity.Netcode
Assembly: Unity.NetCode.dll
Syntax
public static class GameObjectExtensions
Methods
NetcodeWorld(GameObject)
Gets the NetcodeWorld associated with this gameObject. Can be useful to check whether a given GameObject is associated with a client/server world without having a GhostBehaviour or a GhostObject
Declaration
public static NetcodeWorld NetcodeWorld(this GameObject self)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | self | The GameObject to look up the world for. |
Returns
| Type | Description |
|---|---|
| NetcodeWorld | The NetcodeWorld(GameObject) associated with this GameObject |