Component:TrackerController: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page TrackerController (Component) to Component:TrackerController: Creating component Namespace
add info
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<languages></languages>
<languages></languages>
<translate>
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=TrackerControllerComponent.png
|Image=TrackerControllerComponent.png
|Name=TrackerController
|Name=Tracker Controller
}}
}}
The '''TrackerController''' component is an internally used component that triggers a pair of sync Delegates when a device is added to the user's list of tracked devices with position and rotation.


<!--T:2-->
== Fields ==
== Intoduction ==
 
<!--T:3-->
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|TargetUser|User|  
|PositionStreamConfigurator|{{RootFieldType|SyncDelegate`1|[[Type:Action`2|Action`2]]&lt;[[Type:ValueStream`1|ValueStream`1]]&lt;[[Type:Float3|Float3]]&gt;, [[Type:Int|Int]]&gt;}}|TypeAdv0=true| The Sync delegate to call with the created tracked device's position stream and "2" as a number when a device is added.
|PositionStreamConfigurator|Action`1|TypeString1=Action<ValueStream<float3>>|  
|RotationStreamConfigurator|{{RootFieldType|SyncDelegate`1|[[Type:Action`2|Action`2]]&lt;[[Type:ValueStream`1|ValueStream`1]]&lt;[[Type:FloatQ|FloatQ]]&gt;, [[Type:Int|Int]]&gt;}}|TypeAdv1=true| The Sync delegate to call with the created tracked device's rotation stream and "2" as a number when a device is added.
|RotationStreamConfigurator|Action`1|TypeString2=Action<ValueStream<floatQ>>|  
}}
}}


<!--T:4-->
== Examples ==
== Behavior ==
Automatically attached to the root of a user slot when they spawn.


<!--T:5-->
== See Also ==
== Examples ==


<!--T:6-->
[[Category:Components{{#translation:}}|Tracker Controller]]
== Related Components ==
[[Category:Components:Users{{#translation:}}|Tracker Controller]]
</translate>
[[Category:Components{{#translation:}}|TrackerController (Component){{#translation:}}]]
[[Category:ComponentStubs]]
[[Category:Components:Users{{#translation:}}|TrackerController (Component){{#translation:}}]]

Latest revision as of 20:46, 5 February 2025

Component image 
Tracker Controller component as seen in the Scene Inspector

The TrackerController component is an internally used component that triggers a pair of sync Delegates when a device is added to the user's list of tracked devices with position and rotation.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
PositionStreamConfigurator delegate of identity Action`2<ValueStream`1<Float3>, Int> The Sync delegate to call with the created tracked device's position stream and "2" as a number when a device is added.
RotationStreamConfigurator delegate of identity Action`2<ValueStream`1<FloatQ>, Int> The Sync delegate to call with the created tracked device's rotation stream and "2" as a number when a device is added.

Examples

Automatically attached to the root of a user slot when they spawn.

See Also