Class ShowHideObject
Inheritance
ShowHideObject
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)
Assembly: Unity.Netcode.RuntimeTests.dll
Syntax
public class ShowHideObject : NetworkBehaviour
Fields
ClientIdToTarget
Declaration
public static ulong ClientIdToTarget
Field Value
ClientIdsRpcCalledOn
Declaration
public static List<ulong> ClientIdsRpcCalledOn
Field Value
ClientTargetedNetworkObjects
Declaration
public static List<ShowHideObject> ClientTargetedNetworkObjects
Field Value
MyList
Declaration
public NetworkList<int> MyList
Field Value
MyListSetOnSpawn
Declaration
public NetworkList<int> MyListSetOnSpawn
Field Value
MyNetworkVariable
Declaration
public NetworkVariable<int> MyNetworkVariable
Field Value
MyOwnerReadNetworkVariable
Declaration
public NetworkVariable<int> MyOwnerReadNetworkVariable
Field Value
NetworkManagerOfInterest
Declaration
public static NetworkManager NetworkManagerOfInterest
Field Value
ObjectsPerClientId
Declaration
public static Dictionary<ulong, ShowHideObject> ObjectsPerClientId
Field Value
Silent
Declaration
public static bool Silent
Field Value
ValueAfterOwnershipChange
Declaration
public static int ValueAfterOwnershipChange
Field Value
Methods
Changed(int, int)
Declaration
public void Changed(int before, int after)
Parameters
Type |
Name |
Description |
int |
before |
|
int |
after |
|
GetNetworkObjectById(ulong)
Declaration
public static NetworkObject GetNetworkObjectById(ulong networkObjectId)
Parameters
Type |
Name |
Description |
ulong |
networkObjectId |
|
Returns
OnGainedOwnership()
Invoked on both the server and the local client of the owner when NetworkObject ownership is assigned.
Declaration
public override void OnGainedOwnership()
Overrides
OnNetworkDespawn()
Gets called when the NetworkObject gets despawned. Is called both on the server and clients.
Declaration
public override void OnNetworkDespawn()
Overrides
OnNetworkSpawn()
Gets called when the NetworkObject gets spawned, message handlers are ready to be registered and the network is setup.
Declaration
public override void OnNetworkSpawn()
Overrides
OwnerReadChanged(int, int)
Declaration
public void OwnerReadChanged(int before, int after)
Parameters
Type |
Name |
Description |
int |
before |
|
int |
after |
|
SomeRandomClientRPC()
Declaration
[ClientRpc]
public void SomeRandomClientRPC()
TriggerRpc()
Declaration