Class PlayerWithAuthority
Inherited Members
Namespace: Global Namespace
Assembly: com.unity.multiplayer-hlapi.Tests.dll
Syntax
public class PlayerWithAuthority : NetworkBehaviour
Fields
objAuthPrefab
Declaration
public GameObject objAuthPrefab
Field Value
Type | Description |
---|---|
GameObject |
objNoAuthPrefab
Declaration
public GameObject objNoAuthPrefab
Field Value
Type | Description |
---|---|
GameObject |
Methods
OnStartAuthority()
Declaration
public override void OnStartAuthority()
Overrides
OnStartLocalPlayer()
Called when the local player object has been set up.
This happens after OnStartClient(), as it is triggered by an ownership message from the server. This is an appropriate place to activate components or functionality that should only be active for the local player, such as cameras and input.
Declaration
public override void OnStartLocalPlayer()