Component:LegacySwapCanvasPanel: Difference between revisions

From Resonite Wiki
No edit summary
add info
 
Line 4: Line 4:
|Name=Legacy Swap Canvas Panel
|Name=Legacy Swap Canvas Panel
}}
}}
{{stub}}
The '''LegacySwapCanvasPanel''' was used to swap between different panels using some buttons.


== Usage ==
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|_canvas|'''[[Component:Canvas|Canvas]]'''|TypeAdv0=true|
|_canvas|'''[[Component:Canvas|Canvas]]'''|TypeAdv0=true| The canvas that contains the entire swap visual.
|_panel|'''[[Component:LegacyPanel|LegacyPanel]]'''|TypeAdv1=true|
|_panel|'''[[Component:LegacyPanel|LegacyPanel]]'''|TypeAdv1=true| The panel that contains the entire swap panel.
|_currentPanel|'''[[Component:RectTransform|RectTransform]]'''|TypeAdv2=true|
|_currentPanel|'''[[Component:RectTransform|RectTransform]]'''|TypeAdv2=true| The current panel visual this is switched to.
|_container|Slot|
|_container|Slot| The slot that contains the visuals for the swap panel.
}}
}}


Line 18: Line 18:
[[Category:Components:Uncategorized{{#translation:}}|Legacy Swap Canvas Panel]]
[[Category:Components:Uncategorized{{#translation:}}|Legacy Swap Canvas Panel]]
[[Category:Components{{#translation:}}|Legacy Swap Canvas Panel]]
[[Category:Components{{#translation:}}|Legacy Swap Canvas Panel]]
[[Category:ComponentStubs]]

Latest revision as of 17:05, 8 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 Swap Canvas Panel component as seen in the Scene Inspector

The LegacySwapCanvasPanel was used to swap between different panels using some buttons.

Usage

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.
_canvas Canvas The canvas that contains the entire swap visual.
_panel LegacyPanel The panel that contains the entire swap panel.
_currentPanel RectTransform The current panel visual this is switched to.
_container Slot The slot that contains the visuals for the swap panel.

See Also