Class ShowHideObject
Inherited Members
Namespace: Unity.Netcode.RuntimeTests
Assembly: Unity.Netcode.RuntimeTests.dll
Syntax
public class ShowHideObject : NetworkBehaviour
Fields
ClientIdToTarget
Declaration
public static ulong ClientIdToTarget
Field Value
Type | Description |
---|---|
ulong |
ClientIdsRpcCalledOn
Declaration
public static List<ulong> ClientIdsRpcCalledOn
Field Value
ClientTargetedNetworkObjects
Declaration
public static List<ShowHideObject> ClientTargetedNetworkObjects
Field Value
Type | Description |
---|---|
List<Show |
MyList
Declaration
public NetworkList<int> MyList
Field Value
Type | Description |
---|---|
Network |
MyListSetOnSpawn
Declaration
public NetworkList<int> MyListSetOnSpawn
Field Value
Type | Description |
---|---|
Network |
MyNetworkVariable
Declaration
public NetworkVariable<int> MyNetworkVariable
Field Value
Type | Description |
---|---|
Network |
MyOwnerReadNetworkVariable
Declaration
public NetworkVariable<int> MyOwnerReadNetworkVariable
Field Value
Type | Description |
---|---|
Network |
NetworkManagerOfInterest
Declaration
public static NetworkManager NetworkManagerOfInterest
Field Value
Type | Description |
---|---|
Network |
ObjectsPerClientId
Declaration
public static Dictionary<ulong, ShowHideObject> ObjectsPerClientId
Field Value
Type | Description |
---|---|
Dictionary<ulong, Show |
Silent
Declaration
public static bool Silent
Field Value
Type | Description |
---|---|
bool |
ValueAfterOwnershipChange
Declaration
public static int ValueAfterOwnershipChange
Field Value
Type | Description |
---|---|
int |
Methods
Changed(int, int)
Declaration
public void Changed(int before, int after)
Parameters
GetNetworkObjectById(ulong)
Declaration
public static NetworkObject GetNetworkObjectById(ulong networkObjectId)
Parameters
Type | Name | Description |
---|---|---|
ulong | networkObjectId |
Returns
Type | Description |
---|---|
Network |
OnGainedOwnership()
Invoked on both the server and the local client of the owner when Network
Declaration
public override void OnGainedOwnership()
Overrides
OnNetworkDespawn()
Gets called when the Network
Declaration
public override void OnNetworkDespawn()
Overrides
OnNetworkSpawn()
Gets called when the Network
Declaration
public override void OnNetworkSpawn()
Overrides
OwnerReadChanged(int, int)
Declaration
public void OwnerReadChanged(int before, int after)
Parameters
SomeRandomClientRPC()
Declaration
[ClientRpc]
public void SomeRandomClientRPC()
TriggerRpc()
Declaration
public void TriggerRpc()