Property | Type | Description | |
---|---|---|---|
clientAuthorityCallback | ClientAuthorityCallback |
Method | Description | |
---|---|---|
AssignClientAuthority ( |
This assigns control of an object to a client via the client's NetworkConnection.
|
|
ForceSceneId ( int newSceneId ) : void |
Force the scene ID to a specific value.
|
|
RebuildObservers ( bool initialize ) : void |
This causes the set of players that can see this object to be rebuild. The OnRebuildObservers callback function will be invoked on each NetworkBehaviour.
|
|
RemoveClientAuthority ( NetworkConnection conn ) : bool |
Removes ownership for an object for a client by its conneciton.
|
Method | Description | |
---|---|---|
AddNetworkId ( uint id ) : void | ||
AddObserver ( |
||
AssignAssetID ( |
||
CacheBehaviours ( ) : void | ||
ClearClientOwner ( ) : void | ||
ClearObservers ( ) : void | ||
ForceAuthority ( bool authority ) : void | ||
GetInvokeComponent ( int cmdHash, System invokeClass, NetworkBehaviour &invokeComponent ) : bool | ||
GetNextNetworkId ( ) : |
||
HandleClientAuthority ( bool authority ) : void | ||
HandleCommand ( int cmdHash, NetworkReader reader ) : void | ||
HandleRPC ( int cmdHash, NetworkReader reader ) : void | ||
HandleSyncEvent ( int cmdHash, NetworkReader reader ) : void | ||
HandleSyncList ( int cmdHash, NetworkReader reader ) : void | ||
OnCheckObserver ( NetworkConnection conn ) : bool | ||
OnDestroy ( ) : void | ||
OnNetworkDestroy ( ) : void | ||
OnSetLocalVisibility ( bool vis ) : void | ||
OnStartAuthority ( ) : void | ||
OnStartClient ( ) : void | ||
OnStartServer ( bool allowNonZeroNetId ) : void | ||
OnStopAuthority ( ) : void | ||
OnUpdateVars ( NetworkReader reader, bool initialState ) : void | ||
OnValidate ( ) : void | ||
RemoveObserver ( NetworkConnection conn ) : void | ||
RemoveObserverInternal ( NetworkConnection conn ) : void | ||
Reset ( ) : void | ||
SetClientOwner ( NetworkConnection conn ) : void | ||
SetConnectionToClient ( NetworkConnection conn, short newPlayerControllerId ) : void | ||
SetConnectionToServer ( NetworkConnection conn ) : void | ||
SetDynamicAssetId ( NetworkHash128 newAssetId ) : void | ||
SetLocalPlayer ( short localPlayerControllerId ) : void | ||
SetNetworkInstanceId ( NetworkInstanceId newNetId ) : void | ||
SetNotLocalPlayer ( ) : void | ||
SetupIDs ( ) : void | ||
ThisIsAPrefab ( ) : bool | ||
ThisIsASceneObjectWithPrefabParent ( GameObject &prefab ) : bool | ||
UNetDomainReload ( ) : void | ||
UNetSerializeAllVars ( NetworkWriter writer ) : void | ||
UNetStaticUpdate ( ) : void | ||
UNetUpdate ( ) : void | ||
UpdateClientServer ( bool isClientFlag, bool isServerFlag ) : void |
public AssignClientAuthority ( |
||
conn | The connection of the client to assign authority to. | |
return | bool |
public ForceSceneId ( int newSceneId ) : void | ||
newSceneId | int | |
return | void |
public RebuildObservers ( bool initialize ) : void | ||
initialize | bool | True if this is the first time. |
return | void |
public RemoveClientAuthority ( NetworkConnection conn ) : bool | ||
conn | NetworkConnection | The connection of the client to remove authority for. |
return | bool |