Component:TouchValueOption: Difference between revisions

From Resonite Wiki
No edit summary
template
Line 7: Line 7:
The TouchValueOption component allows you to set a field to a value on press, it can drive indicators for Active and Hovering.
The TouchValueOption component allows you to set a field to a value on press, it can drive indicators for Active and Hovering.


== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Target|{{RootFieldType|RelayRef`1|[[Type:IField`1|IField`1]]<T>}}|TypeAdv0=true|
|Target|{{RootFieldType|RelayRef`1|[[Type:IField`1|IField`1]]<T>}}|TypeAdv0=true|
Line 18: Line 18:
|SetOnTouchStay|Bool|
|SetOnTouchStay|Bool|
|SetOnTouchEnd|Bool|
|SetOnTouchEnd|Bool|
|AcceptOutOfSightTouch|Bool|
|AcceptOutOfSightTouch|Bool| {{Template:Touchable_AcceptOutOfSightTouch}}
|AcceptPhysicalTouch|Bool|
|AcceptPhysicalTouch|Bool| {{Template:Touchable_AcceptPhysicalTouch}}
|AcceptRemoteTouch|Bool|
|AcceptRemoteTouch|Bool| {{Template:Touchable_AcceptRemoteTouch}}
|EditModeOnly|Bool|
|EditModeOnly|Bool|
|ActiveUserRootOnly|Bool|
|ActiveUserRootOnly|Bool|
}}
}}


== Behavior ==
== Usage ==


== Examples ==
== Examples ==

Revision as of 17:24, 21 January 2025

Component image 
Touch Value Option`1 component as seen in the Scene Inspector


This article or section is a Stub. You can help the Resonite Wiki by expanding it.

The TouchValueOption component allows you to set a field to a value on press, it can drive indicators for Active and Hovering.

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.
Target direct RelayRef`1<IField`1<T>>
Value T
ActiveIndicator field drive of Bool
HoverIndicator field drive of Bool
HoverVibrate VibratePreset
Vibrate VibratePreset
SetOnTouchBegin Bool
SetOnTouchStay Bool
SetOnTouchEnd Bool
AcceptOutOfSightTouch Bool Whether or not to allow interaction with this component if it is out of the user's view.
AcceptPhysicalTouch Bool Whether to allow Component:TipTouchSources to interact with/activate this component.
AcceptRemoteTouch Bool Whether this component allows interaction via the user's interaction laser.
EditModeOnly Bool
ActiveUserRootOnly Bool

Usage

Examples

See Also