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.
|SegmentTouched|{{RootFieldType|SyncDelegate`1|[[#SegmentTouchEvent|LegacyHorizontalChoiceBar.SegmentTouchEvent]]}}|TypeAdv10=true| The Sync delegate to call whenever an item is touched.
|_rootScale|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv12=true| The scale field of the slot to place the items.
}}
== Sync Delegates ==
{{Table ComponentTriggers
|OnSegmentTouched:[[Type:TouchEvent|TouchEvent]]|[[Type:TouchEvent|TouchEvent]]|true| Called whenever a segment is touched.
}}
== Item ==
{{Table TypeFields
|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|{{RootFieldType|SyncDelegate`1|[[Type:TouchEvent|TouchEvent]]}}|TypeAdv2=true| The Sync delegate to call when this item is touched.
|_slot|Slot| The root slot of this item option.
|_text|{{RootFieldType|RelayRef`1|[[Component:TextRenderer|TextRenderer]]}}|TypeAdv4=true| The text of this item option.
|_position|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv5=true| The position field of the slot of this item.
|_textPosition|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv6=true| The position of the text of this item.
|_textBounds|{{RootFieldType|FieldDrive`1|[[Type:Float2|Float2]]}}|TypeAdv7=true| The text bounds field.
|_colliderSize|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv8=true| The size of this item's collider.
|_colliderOffset|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv9=true| The offset of this item's collider.
|_mesh|{{RootFieldType|DriveRef`1|[[Component:BevelStripeMesh|BevelStripeMesh]]}}|TypeAdv10 =true| The mesh of this item.
|_material|{{RootFieldType|DriveRef`1|[[Component:PBS_RimMetallic|PBS_RimMetallic]]}}|TypeAdv11=true| The material of the mesh of this item.
}}
}}
== Behavior ==
== SegmentTouchEvent ==
SegmentTouchEvent() is a sync delegate that is the type [[Type:Delegate|Delegate]]<[[Component:LegacyHorizontalChoiceBar|LegacyHorizontalChoiceBar]] sender, [[Type:Int|Int]] itemIndex, [[Type:TouchEventInfo|TouchEventInfo]] eventInfo> and can be used to handle the press events of a LegacyHorizontalChoiceBar.
[[Category:Components With Nested Types{{#translation:}}|Legacy Horizontal Choice Bar]]
[[Category:Components With Nested Types{{#translation:}}|Legacy Horizontal Choice Bar]]
[[Category:ComponentStubs]]
Latest revision as of 03:43, 7 April 2025
This article describes a feature marked as legacy—this usually means there's a newer, better alternative. Legacy features might not be removed but they will not be updated, and the team will not provide any support for them.
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.
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.