Class ChildObjectComponent
Helper component for NetworkTransform parenting tests
Inheritance
ChildObjectComponent
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
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)
Namespace: Unity.Netcode.RuntimeTests
Syntax
public class ChildObjectComponent : NetworkTransform
Fields
ClientInstances
Declaration
public static readonly Dictionary<ulong, NetworkObject> ClientInstances
Field Value
Type | Description |
---|---|
Dictionary<UInt64, NetworkObject> |
ClientSubChildInstances
Declaration
public static readonly Dictionary<ulong, NetworkObject> ClientSubChildInstances
Field Value
Type | Description |
---|---|
Dictionary<UInt64, NetworkObject> |
HasSubChild
Declaration
public static bool HasSubChild
Field Value
Type | Description |
---|---|
Boolean |
Instances
Declaration
public static readonly List<ChildObjectComponent> Instances
Field Value
Type | Description |
---|---|
List<ChildObjectComponent> |
ServerAuthority
Declaration
public bool ServerAuthority
Field Value
Type | Description |
---|---|
Boolean |
SubInstances
Declaration
public static readonly List<ChildObjectComponent> SubInstances
Field Value
Type | Description |
---|---|
List<ChildObjectComponent> |
Properties
AuthorityInstance
Declaration
public static ChildObjectComponent AuthorityInstance { get; }
Property Value
Type | Description |
---|---|
ChildObjectComponent |
AuthoritySubInstance
Declaration
public static ChildObjectComponent AuthoritySubInstance { get; }
Property Value
Type | Description |
---|---|
ChildObjectComponent |
Methods
IsSubChild()
Declaration
protected virtual bool IsSubChild()
Returns
Type | Description |
---|---|
Boolean |
OnIsServerAuthoritative()
Declaration
protected override bool OnIsServerAuthoritative()
Returns
Type | Description |
---|---|
Boolean |
Overrides
OnNetworkSpawn()
Declaration
public override void OnNetworkSpawn()
Overrides
Reset()
Declaration
public static void Reset()