| m ProbablePrime moved page AvatarRawToolData (Component) to Component:AvatarRawToolData: Creating component Namespace |  add info | ||
| (One intermediate revision by one other user not shown) | |||
| Line 2: | Line 2: | ||
| <translate> | <translate> | ||
| <!--T:1--> | <!--T:1--> | ||
| {{Infobox Component | {{Infobox Component | ||
| |Image=AvatarRawToolDataComponent.png | |Image=AvatarRawToolDataComponent.png | ||
| |Name=AvatarRawToolData | |Name=AvatarRawToolData | ||
| }} | }} | ||
| The '''AvatarRawToolData''' component is used to read controller data associated with [[Component:RawDataTool|RawDataTool]]s from. | |||
| <!--T:3--> | <!--T:3--> | ||
| ==  | == Fields == | ||
| {{Table ComponentFields | {{Table ComponentFields | ||
| | | |ControllerSide|Chirality| The side to read data from the user's controller for. | ||
| |PressingPrimary|Bool|   | |PressingPrimary|{{RootFieldType|RawOutput`1|[[Type:Bool|Bool]]}}|TypeAdv1=true| Whether the user is pressing Primary | ||
| |PressingSecondary|Bool|   | |PressingSecondary|{{RootFieldType|RawOutput`1|[[Type:Bool|Bool]]}}|TypeAdv2=true| Whether the user is pressing Secondary. | ||
| |PressingGrab|Bool|   | |PressingGrab|{{RootFieldType|RawOutput`1|[[Type:Bool|Bool]]}}|TypeAdv3=true| Whether the user is pressing the grab button | ||
| |PrimaryStrength|Float|   | |PrimaryStrength|{{RootFieldType|RawOutput`1|[[Type:Float|Float]]}}|TypeAdv4=true| The strength the user is pressing Primary. | ||
| |SecondaryAxis|Float2|   | |SecondaryAxis|{{RootFieldType|RawOutput`1|[[Type:Float2|Float2]]}}|TypeAdv5=true| What direction the user is moving their secondary button joystick | ||
| |_activeUser|User|   | |_activeUser|User| The user this is reading data and getting streams from. | ||
| |_strengthStream|ValueStream`1| | |_strengthStream|'''[[Type:ValueStream`1|ValueStream`1]]<[[Type:Float|Float]]>'''|TypeAdv7=true| The stream to get <code>PrimaryStrength</code>'s value from | ||
| |_axisStream|ValueStream`1| | |_axisStream|'''[[Type:ValueStream`1|ValueStream`1]]<[[Type:Float2|Float2]]>'''|TypeAdv8=true| The stream to get <code>SecondaryAxis</code>'s value from. | ||
| |_primaryStream|ValueStream`1| | |_primaryStream|'''[[Type:ValueStream`1|ValueStream`1]]<[[Type:Bool|Bool]]>'''|TypeAdv9=true| The stream to get <code>PressingPrimary</code>'s value from. | ||
| |_secondaryStream|ValueStream`1| | |_secondaryStream|'''[[Type:ValueStream`1|ValueStream`1]]<[[Type:Bool|Bool]]>'''|TypeAdv10=true| The stream to get <code>PressingSecondary</code>'s value from. | ||
| |_grabStream|ValueStream`1| | |_grabStream|'''[[Type:ValueStream`1|ValueStream`1]]<[[Type:Bool|Bool]]>'''|TypeAdv11=true| The stream to get <code>PressingGrab</code>'s value from. | ||
| }} | }} | ||
| <!--T:4--> | <!--T:4--> | ||
| ==  | == Usage == | ||
| <!--T:5--> | <!--T:5--> | ||
| Line 35: | Line 32: | ||
| <!--T:6--> | <!--T:6--> | ||
| ==  | == See Also == | ||
| </translate> | </translate> | ||
| [[Category:Components{{#translation:}}| | [[Category:Components{{#translation:}}|Avatar Raw Tool Data]] | ||
| [[Category:Components:Users:Common Avatar System{{#translation:}}|Avatar Raw Tool Data]] | |||
| [[Category:Components:Users:Common Avatar System{{#translation:}}| | |||
Latest revision as of 03:06, 1 January 2025
Component image 
AvatarRawToolData component as seen in the Scene Inspector 

The AvatarRawToolData component is used to read controller data associated with RawDataTools from.
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. | 
| ControllerSide | Chirality | The side to read data from the user's controller for. | 
| PressingPrimary | raw output of Bool | Whether the user is pressing Primary | 
| PressingSecondary | raw output of Bool | Whether the user is pressing Secondary. | 
| PressingGrab | raw output of Bool | Whether the user is pressing the grab button | 
| PrimaryStrength | raw output of Float | The strength the user is pressing Primary. | 
| SecondaryAxis | raw output of Float2 | What direction the user is moving their secondary button joystick | 
| _activeUser | User | The user this is reading data and getting streams from. | 
| _strengthStream | ValueStream`1<Float> | The stream to get PrimaryStrength's value from | 
| _axisStream | ValueStream`1<Float2> | The stream to get SecondaryAxis's value from. | 
| _primaryStream | ValueStream`1<Bool> | The stream to get PressingPrimary's value from. | 
| _secondaryStream | ValueStream`1<Bool> | The stream to get PressingSecondary's value from. | 
| _grabStream | ValueStream`1<Bool> | The stream to get PressingGrab's value from. | 
