Struct LocalConnection
Used to mark your local NetworkConnection entity. Useful on a single world host (where you typically have multiple NetworkConnection and player entities for other connected clients). This will always be present client side, never present on a server only world, and present on only one connection in a single world client-hosted server world.
Inherited Members
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
public struct LocalConnection : IComponentData, IQueryTypeParameter
Remarks
On a single world host, an alternative for finding the local connection is to query for entities WithAll NetworkId and WithNone NetworkStreamConnection. However, LocalConnection is more explicit.