Class ClientServerWorldExtensions
Netcode-specific extension methods for worlds.
Inherited Members
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
public static class ClientServerWorldExtensions
Methods
IsClient(World)
Check if a world is a client, will also return true for thin clients.
Declaration
public static bool IsClient(this World world)
Parameters
Type | Name | Description |
---|---|---|
World | world | A Unity.Entities.World instance |
Returns
Type | Description |
---|---|
bool |
IsClient(WorldUnmanaged)
Check if an unmanaged world is a client, will also return true for thin clients.
Declaration
public static bool IsClient(this WorldUnmanaged world)
Parameters
Type | Name | Description |
---|---|---|
WorldUnmanaged | world | A Unity.Entities.WorldUnmanaged instance |
Returns
Type | Description |
---|---|
bool |
IsServer(World)
Check if a world is a server.
Declaration
public static bool IsServer(this World world)
Parameters
Type | Name | Description |
---|---|---|
World | world | A Unity.Entities.World instance |
Returns
Type | Description |
---|---|
bool |
IsServer(WorldUnmanaged)
Check if an unmanaged world is a server.
Declaration
public static bool IsServer(this WorldUnmanaged world)
Parameters
Type | Name | Description |
---|---|---|
WorldUnmanaged | world | A Unity.Entities.WorldUnmanaged instance |
Returns
Type | Description |
---|---|
bool |
IsThinClient(World)
Check if a world is a thin client.
Declaration
public static bool IsThinClient(this World world)
Parameters
Type | Name | Description |
---|---|---|
World | world | A Unity.Entities.World instance |
Returns
Type | Description |
---|---|
bool |
IsThinClient(WorldUnmanaged)
Check if an unmanaged world is a thin client.
Declaration
public static bool IsThinClient(this WorldUnmanaged world)
Parameters
Type | Name | Description |
---|---|---|
WorldUnmanaged | world | A Unity.Entities.WorldUnmanaged instance |
Returns
Type | Description |
---|---|
bool |