Class TransformBroadcaster
Inheritance
TransformBroadcaster
Assembly: cs.temp.dll.dll
public class TransformBroadcaster : ComponentBroadcaster<TransformBroadcasterService, TransformBroadcasterChangeType>, IComponentBroadcaster
Fields
Declaration
public const string SpectatorViewChildrenHiddenTag = "SpectatorViewChildrenHidden"
Field Value
Declaration
public const string SpectatorViewHiddenTag = "SpectatorViewHidden"
Field Value
Properties
SocketEndpoint connections that are currently blocked
Declaration
public ISet<SocketEndpoint> BlockedConnections { get; }
Property Value
Associated game object's name
Declaration
public string CachedName { get; }
Property Value
Returns the unique id for the broadcasted transform
Declaration
Property Value
Associated game object's layer
Declaration
public int Layer { get; }
Property Value
Returns an id that can be used for initialization checks
Declaration
public static short NullTransformId { get; }
Property Value
Parent transform's id, returns NullTransformId if no parent transform exists
Declaration
public short ParentId { get; }
Property Value
Returns true if the associated game object is active in the scene, otherwise false
Declaration
public bool SynchronizedIsActive { get; }
Property Value
Declaration
protected override bool UpdateWhenDisabled { get; }
Property Value
Overrides
Microsoft.MixedReality.SpectatorView.ComponentBroadcaster<Microsoft.MixedReality.SpectatorView.TransformBroadcasterService, Microsoft.MixedReality.SpectatorView.TransformBroadcasterChangeType>.UpdateWhenDisabled
Methods
Declaration
protected override void Awake()
Overrides
Microsoft.MixedReality.SpectatorView.ComponentBroadcaster<Microsoft.MixedReality.SpectatorView.TransformBroadcasterService, Microsoft.MixedReality.SpectatorView.TransformBroadcasterChangeType>.Awake()
Declaration
protected override void BeginUpdatingFrame(SocketEndpointConnectionDelta connectionDelta)
Parameters
Overrides
Microsoft.MixedReality.SpectatorView.ComponentBroadcaster<Microsoft.MixedReality.SpectatorView.TransformBroadcasterService, Microsoft.MixedReality.SpectatorView.TransformBroadcasterChangeType>.BeginUpdatingFrame(Microsoft.MixedReality.SpectatorView.SocketEndpointConnectionDelta)
Declaration
protected override TransformBroadcasterChangeType CalculateDeltaChanges()
Returns
Overrides
Microsoft.MixedReality.SpectatorView.ComponentBroadcaster<Microsoft.MixedReality.SpectatorView.TransformBroadcasterService, Microsoft.MixedReality.SpectatorView.TransformBroadcasterChangeType>.CalculateDeltaChanges()
Declaration
protected override void EndUpdatingFrame()
Overrides
Microsoft.MixedReality.SpectatorView.ComponentBroadcaster<Microsoft.MixedReality.SpectatorView.TransformBroadcasterService, Microsoft.MixedReality.SpectatorView.TransformBroadcasterChangeType>.EndUpdatingFrame()
Declaration
protected override bool HasChanges(TransformBroadcasterChangeType changeFlags)
Parameters
Returns
Overrides
Microsoft.MixedReality.SpectatorView.ComponentBroadcaster<Microsoft.MixedReality.SpectatorView.TransformBroadcasterService, Microsoft.MixedReality.SpectatorView.TransformBroadcasterChangeType>.HasChanges(Microsoft.MixedReality.SpectatorView.TransformBroadcasterChangeType)
Returns true if the provided change type contains the specified flag, otherwise false.
Declaration
public static bool HasFlag(TransformBroadcasterChangeType changeType, TransformBroadcasterChangeType flag)
Parameters
Returns
Type |
Description |
Boolean |
Returns true if the provided change type contains the specified flag, otherwise false.
|
Declaration
protected override void OnDestroy()
Overrides
Microsoft.MixedReality.SpectatorView.ComponentBroadcaster<Microsoft.MixedReality.SpectatorView.TransformBroadcasterService, Microsoft.MixedReality.SpectatorView.TransformBroadcasterChangeType>.OnDestroy()
Declaration
public void ProcessConnectionDelta(SocketEndpointConnectionDelta connectionDelta, out IReadOnlyList<SocketEndpoint> needingCompleteChanges, out IReadOnlyList<SocketEndpoint> filteredNeedingDeltaChanged, out IReadOnlyList<SocketEndpoint> filteredNeedingCompleteChanges)
Parameters
Declaration
public override void ResetFrame()
Overrides
Microsoft.MixedReality.SpectatorView.ComponentBroadcaster<Microsoft.MixedReality.SpectatorView.TransformBroadcasterService, Microsoft.MixedReality.SpectatorView.TransformBroadcasterChangeType>.ResetFrame()
Declaration
protected override void SendCompleteChanges(IEnumerable<SocketEndpoint> endpoints)
Parameters
Overrides
Microsoft.MixedReality.SpectatorView.ComponentBroadcaster<Microsoft.MixedReality.SpectatorView.TransformBroadcasterService, Microsoft.MixedReality.SpectatorView.TransformBroadcasterChangeType>.SendCompleteChanges(IEnumerable<Microsoft.MixedReality.SpectatorView.SocketEndpoint>)
Declaration
protected override void SendComponentCreation(IEnumerable<SocketEndpoint> newConnections)
Parameters
Overrides
Microsoft.MixedReality.SpectatorView.ComponentBroadcaster<Microsoft.MixedReality.SpectatorView.TransformBroadcasterService, Microsoft.MixedReality.SpectatorView.TransformBroadcasterChangeType>.SendComponentCreation(IEnumerable<Microsoft.MixedReality.SpectatorView.SocketEndpoint>)
Declaration
protected override void SendDeltaChanges(IEnumerable<SocketEndpoint> endpoints, TransformBroadcasterChangeType changeFlags)
Parameters
Overrides
Microsoft.MixedReality.SpectatorView.ComponentBroadcaster<Microsoft.MixedReality.SpectatorView.TransformBroadcasterService, Microsoft.MixedReality.SpectatorView.TransformBroadcasterChangeType>.SendDeltaChanges(IEnumerable<Microsoft.MixedReality.SpectatorView.SocketEndpoint>, Microsoft.MixedReality.SpectatorView.TransformBroadcasterChangeType)
Returns true if the provided endpoint should receive a transform update, otherwise false
Declaration
public bool ShouldSendTransformInHierarchy(SocketEndpoint endpoint)
Parameters
Type |
Name |
Description |
SocketEndpoint |
endpoint |
network connection to potentially send transform update
|
Returns
Type |
Description |
Boolean |
True if the provided endpoint should receive a transform update, otherwise false
|
Declaration
protected override bool ShouldUpdateFrame(SocketEndpoint endpoint)
Parameters
Returns
Overrides
Microsoft.MixedReality.SpectatorView.ComponentBroadcaster<Microsoft.MixedReality.SpectatorView.TransformBroadcasterService, Microsoft.MixedReality.SpectatorView.TransformBroadcasterChangeType>.ShouldUpdateFrame(Microsoft.MixedReality.SpectatorView.SocketEndpoint)
Writes child transforms hierarchy to network message
Declaration
public void WriteChildHierarchyTree(BinaryWriter message)
Parameters
Type |
Name |
Description |
BinaryWriter |
message |
|
Implements