Class NetworkPlayer
- Namespace
- Netick
- Assembly
- Netick.dll
Represents a network player, which can be either a local player (representing this sandbox) or a remote connection (representing a connected client)).
public abstract class NetworkPlayer
- Inheritance
-
NetworkPlayer
- Derived
- Inherited Members
Fields
Sandbox
public readonly NetworkSandbox Sandbox
Field Value
Properties
PlayerId
The networked index of this player.
Note: it returns -1 on the client for the local player when not connected to a server.
Note: the server player always has Id 0.
public int PlayerId { get; }
Property Value
PlayerObject
public GameObject PlayerObject { get; set; }
Property Value
- GameObject
UserObject
Use this to associate an object with this sandbox.
public object UserObject { get; set; }