Class DynamicGameObjectHierarchyObserver<TComponentService>
A ComponentObserver that allows instantiating a custom child hierarchy for the remote DynamicGameObjectHierarchyBroadcaster.
The corresponding DynamicGameObjectHierarchyBroadcaster is responsible for creating an initially-identical child
hierarchy. Once both devices have created the same initial hierarchy, the hierarchies are bound together
and state synchronization is initialized for all of the GameObjects within that hierarchy.
Inheritance
DynamicGameObjectHierarchyObserver<TComponentService>
Assembly: cs.temp.dll.dll
Syntax
public abstract class DynamicGameObjectHierarchyObserver<TComponentService> : MonoBehaviour, IComponentObserver where TComponentService : Singleton<TComponentService>, IComponentBroadcasterService
Type Parameters
Name |
Description |
TComponentService |
The IComponentBroadcasterService responsible for network communication for this IComponentObserver.
|
Properties
DynamicObject
Declaration
protected GameObject DynamicObject { get; set; }
Property Value
Type |
Description |
GameObject |
|
Methods
Declaration
public static void ApplyChildTransforms(Transform transform, DynamicGameObjectHierarchyObserver<TComponentService>.TransformObserverInfo[] childTransformInfos)
Parameters
CreateObserverObject(BinaryReader)
Declaration
protected abstract void CreateObserverObject(BinaryReader message)
Parameters
Type |
Name |
Description |
BinaryReader |
message |
|
Read(SocketEndpoint, BinaryReader)
Declaration
public void Read(SocketEndpoint sendingEndpoint, BinaryReader message)
Parameters
Type |
Name |
Description |
SocketEndpoint |
sendingEndpoint |
|
BinaryReader |
message |
|
Read(SocketEndpoint, BinaryReader, Byte)
Declaration
protected virtual void Read(SocketEndpoint sendingEndpoint, BinaryReader message, byte changeType)
Parameters
Declaration
public static DynamicGameObjectHierarchyObserver<TComponentService>.TransformObserverInfo[] ReadObserverHierarchyTransformIDs(BinaryReader message)
Parameters
Type |
Name |
Description |
BinaryReader |
message |
|
Returns
Implements