Component:LegacyHorizontalChoiceBar

From Resonite Wiki
Component image 
Legacy Horizontal Choice Bar component as seen in the Scene Inspector

The LegacyHorizontalChoiceBar component is used in old migrated legacy content. This should not be used in new content, and should be replaced whenever possible. This was primarily used in old Gizmos.

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.
Style direct RelayRef`1<LegacyUIStyle> The source of the legacy color styles for this component.
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.
_items list of Item A list of items to be able to press.
Width Float The width of each item.
Height Float The height of each item.
Thickness Float The thickness of each item.
Spacing Float How far apart the items should be placed.
Slant Float The Bevel of the meshes of each item.
Symmetrical Bool Whether the Horizontal layout should be symmetrical.
SegmentTouched delegate of identity SegmentTouchEvent The Sync delegate to call whenever an item is touched.
_root Slot the place to parent all the items.
_rootScale field drive of Float3 The scale field of the slot to place the items.

Item

Fields
Name Type Description
OverrideColor colorX The color to use for this item rather than the one the root Component uses.
Highlight Bool Whether this item should be highlighted.
Touched delegate of identity TouchEvent The Sync delegate to call when this item is touched.
_slot Slot The root slot of this item option.
_text direct RelayRef`1<TextRenderer> The text of this item option.
_position field drive of Float3 The position field of the slot of this item.
_textPosition field drive of Float3 The position of the text of this item.
_textBounds field drive of Float2 The text bounds field.
_colliderSize field drive of Float3 The size of this item's collider.
_colliderOffset field drive of Float3 The offset of this item's collider.
_mesh reference drive of BevelStripeMesh The mesh of this item.
_material reference drive of PBS_RimMetallic The material of the mesh of this item.

SegmentTouchEvent

SegmentTouchEvent() is a sync delegate that is the type Delegate<LegacyHorizontalChoiceBar sender, Int itemIndex, TouchEventInfo eventInfo> and can be used to handle the press events of a LegacyHorizontalChoiceBar.


Usage

Just dont.

Examples

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


See Also