Class NetworkVariableTest
Inherited Members
UnityEngine.Component.GetComponentInParent(System.Type, System.Boolean)
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType(System.Type, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsByType(System.Type, UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindFirstObjectByType(System.Type)
UnityEngine.Object.FindAnyObjectByType(System.Type)
UnityEngine.Object.FindFirstObjectByType(System.Type, UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType(System.Type, UnityEngine.FindObjectsInactive)
Namespace: Unity.Netcode.RuntimeTests
Syntax
public class NetworkVariableTest : NetworkBehaviour
Fields
FixedString32
Declaration
public readonly NetworkVariable<FixedString32Bytes> FixedString32
Field Value
| Type | Description |
|---|---|
| NetworkVariable<FixedString32Bytes> |
ListDelegateTriggered
Declaration
public bool ListDelegateTriggered
Field Value
| Type | Description |
|---|---|
| Boolean |
TheClass
Declaration
public readonly NetworkVariable<TestClass> TheClass
Field Value
| Type | Description |
|---|---|
| NetworkVariable<TestClass> |
TheEnum
Declaration
public readonly NetworkVariable<NetworkVariableTest.SomeEnum> TheEnum
Field Value
| Type | Description |
|---|---|
| NetworkVariable<NetworkVariableTest.SomeEnum> |
TheLargeList
Declaration
public readonly NetworkList<FixedString128Bytes> TheLargeList
Field Value
| Type | Description |
|---|---|
| NetworkList<FixedString128Bytes> |
TheList
Declaration
public readonly NetworkList<int> TheList
Field Value
| Type | Description |
|---|---|
| NetworkList<Int32> |
TheScalar
Declaration
public readonly NetworkVariable<int> TheScalar
Field Value
| Type | Description |
|---|---|
| NetworkVariable<Int32> |
TheStruct
Declaration
public readonly NetworkVariable<TestStruct> TheStruct
Field Value
| Type | Description |
|---|---|
| NetworkVariable<TestStruct> |
TheStructList
Declaration
public readonly NetworkList<StructUsedOnlyInNetworkList> TheStructList
Field Value
| Type | Description |
|---|---|
| NetworkList<StructUsedOnlyInNetworkList> |
TheTemplateClass
Declaration
public NetworkVariable<ManagedTemplateNetworkSerializableType<TestClass>> TheTemplateClass
Field Value
| Type | Description |
|---|---|
| NetworkVariable<ManagedTemplateNetworkSerializableType<TestClass>> |
TheTemplateStruct
Declaration
public NetworkVariable<UnmanagedTemplateNetworkSerializableType<TestStruct>> TheTemplateStruct
Field Value
| Type | Description |
|---|---|
| NetworkVariable<UnmanagedTemplateNetworkSerializableType<TestStruct>> |
Methods
Awake()
Declaration
public void Awake()
OnNetworkSpawn()
Declaration
public override void OnNetworkSpawn()