legacy & old & deprecated but still helps to be useful
(4 intermediate revisions by 2 users not shown)
Line 1:
Line 1:
{{Infobox Component
{{Legacy}}{{Infobox Component
|Image=LegacyButtonComponent.png
|Image=LegacyButtonComponent.png
|Name=Legacy Button
|Name=Legacy Button
}}
}}
{{stub}}
The '''LegacyButton''' component is a leftover Component from content migrated from other platforms. It should not be used, and should be replaced whenever possible.
|Pressed|{{RootFieldType|SyncDelegate`1|[[Type:ButtonEventHandler|ButtonEventHandler]]}}|TypeAdv9=true| The Sync delegate to call when this button is pressed.
|Pressing|{{RootFieldType|SyncDelegate`1|[[Type:ButtonEventHandler|ButtonEventHandler]]}}|TypeAdv10=true| The Sync delegate to call per engine update as this button is being held down.
|Released|{{RootFieldType|SyncDelegate`1|[[Type:ButtonEventHandler|ButtonEventHandler]]}}|TypeAdv11=true| The Sync delegate to call when this button has stopped being pressed.
|IsPressed|Bool|
|IsPressed|Bool| Whether the button is being pressed currently.
|AcceptOutOfSightTouch|Bool|
|AcceptOutOfSightTouch|Bool| Whether this button accepts interaction if the user isn't looking at it.
|_textSlot|Slot|
|_textSlot|Slot| The slot of the text visual for this button.
|_holderMesh|{{RootFieldType|DriveRef`1|[[Component:BevelStripeMesh|BevelStripeMesh]]}}|TypeAdv21=true| The mesh that is containing this button (like a parent UI.
|_buttonMesh|{{RootFieldType|DriveRef`1|[[Component:BevelStripeMesh|BevelStripeMesh]]}}|TypeAdv22=true| The Bevel mesh that makes up this button's visual.
|_buttonMaterial|{{RootFieldType|DriveRef`1|[[PBS_RimMetallic|PBS_RimMetallic]]}}|TypeAdv24=true| The material of this button's mesh visual
|_pressDepth|Float|
|_pressDepth|Float| How far the user is currently pressing the button physically
|_flashIndex|Int|
|_flashIndex|Int| How much to add to the emission of the holder material.
}}
}}
== Behavior ==
== Usage ==
Add to an empty slot to automatically create materials, meshes & colliders on the slot this was added to and 2 (automatically created) child slots. From there it will act like any other button component.
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.
The LegacyButton component is a leftover Component from content migrated from other platforms. It should not be used, and should be replaced whenever possible.
How much to add to the emission of the holder material.
Usage
Add to an empty slot to automatically create materials, meshes & colliders on the slot this was added to and 2 (automatically created) child slots. From there it will act like any other button component.