Class OwnerModifiedObject
Implements
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.Netcode.RuntimeTests
Assembly: Unity.Netcode.RuntimeTests.dll
Syntax
public class OwnerModifiedObject : NetworkBehaviour, INetworkUpdateSystem
Fields
AddValues
Declaration
public bool AddValues
Field Value
Type | Description |
---|---|
bool |
MyNetworkList
Declaration
public NetworkList<int> MyNetworkList
Field Value
Type | Description |
---|---|
NetworkList<int> |
NetworkUpdateStageToCheck
Declaration
public NetworkUpdateStage NetworkUpdateStageToCheck
Field Value
Type | Description |
---|---|
NetworkUpdateStage |
Methods
Changed(NetworkListEvent<int>)
Declaration
public void Changed(NetworkListEvent<int> listEvent)
Parameters
Type | Name | Description |
---|---|---|
NetworkListEvent<int> | listEvent |
InitializeLastCient()
Declaration
public void InitializeLastCient()
NetworkUpdate(NetworkUpdateStage)
The update method that is being executed in the context of related NetworkUpdateStage.
Declaration
public void NetworkUpdate(NetworkUpdateStage updateStage)
Parameters
Type | Name | Description |
---|---|---|
NetworkUpdateStage | updateStage | The NetworkUpdateStage that is being executed. |
OnDestroy()
Invoked when the GameObject the NetworkBehaviour is attached to is destroyed. NOTE: If you override this, you should invoke this base class version of this OnDestroy() method.
Declaration
public override void OnDestroy()