Class NetworkTransformOwnershipTests.TestClientNetworkTransform
Until we can better locate the ClientNetworkTransform This will have to be used to verify the ownership authority
Inheritance
Inherited Members
Namespace: Unity.Netcode.RuntimeTests
Assembly: Unity.Netcode.RuntimeTests.dll
Syntax
[DisallowMultipleComponent]
public class NetworkTransformOwnershipTests.TestClientNetworkTransform : NetworkTransform
Methods
OnIsServerAuthoritative()
Override this method and return false to switch to owner authoritative mode
Declaration
protected override bool OnIsServerAuthoritative()
Returns
Type | Description |
---|---|
bool | (true or false) where when false it runs as owner-client authoritative |
Overrides
OnNetworkSpawn()
Gets called when the Network
Declaration
public override void OnNetworkSpawn()
Overrides
Update()
Declaration
protected override void Update()
Overrides
Remarks
If you override this method, be sure that:
- Non-authority always invokes this base class method.