Component:WorldSwitcher: Difference between revisions
From Resonite Wiki
More actions
add info |
m UserspaceOnly |
||
| Line 1: | Line 1: | ||
{{ | {{UserspaceOnlyComponent}} | ||
{{Legacy}} | {{Legacy}} | ||
{{Infobox Component | {{Infobox Component | ||
Latest revision as of 19:00, 23 January 2026
Component image File:WorldSwitcherComponent.pngWorld Switcher component as seen in the Scene Inspector
The WorldSwitcher component is legacy content for switching worlds via rotating the wrist.
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. |
Show
|
Bool | Whether the switcher should be shown. |
IgnoreTouchesFrom
|
Slot | A slot to ignore touch events from. like the hand it is on. |
_repulsionTree
|
RepulsionTreeSimulator | The repulsion tree used to arrange the orbs in the menu. |
_linesMesh
|
reference drive of MultiSegmentMesh | A multi segment mesh used to create the selection and indication visuals. |
_slider
|
Slider | The slider used as part of the selection menu. |
_centerOrb
|
Slot | The center orb that moves the rest of the orbs to places around it. |
_visualRoot
|
Slot | The root slot for all the visuals of the switcher. |
Sync Delegates
| Method Name | Method type and Arguments. | Is the method hidden? | Description |
|---|---|---|---|
WorldOrbTouched:Action`2<WorldOrb, TouchEventInfo>
|
Action`2<WorldOrb, TouchEventInfo> | ✓ | Handles when a world orb is touched for switching to it. |
WorldOrbLongPressed:Action`1<WorldOrb>
|
Action`1<WorldOrb> | ✓ | Handles when a world orb is long touched to bring up options. |
Usage
Can be brought up through the legacy world switcher option in the legacy settings options.
Examples
Used as part of the old systems older platforms had.