Component:OverlayLayer: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
Add some info for the OverlayLayer component
Line 1: Line 1:
{{UserspaceComponent}}
{{Infobox Component
{{Infobox Component
|Image=OverlayLayerComponent.png
|Image=OverlayLayerComponent.png
|Name=Overlay Layer
|Name=Overlay Layer
}}
}}
{{stub}}
The '''OverlayLayer''' component instructs the renderer to render the hierarchy it is attached to on top of everything else. On [[Desktop_Mode|desktop]] the component also causes the hierarchy to render directly in front of the camera, mimicking a 2D user interface.


== Usage ==
== Usage ==
Line 10: Line 11:


== Behavior ==
== Behavior ==
When enabled, OverlayLayer will tell the renderer to render the hierarchy under the slot (including the slot) on top of everything else. Internally, this is done by setting the layer of each GameObject in the hierarchy to <code>Overlay</code>.


== Examples ==
== Examples ==
OverlayLayer is used to display the [[Dash_Menu|dash]], [[Notifications|notification panel]] and the [[Cursor|cursor]] on top of everything else in userspace.


== See Also ==
== See Also ==
* [[Component:HiddenLayer]]


[[Category:Components:Rendering{{#translation:}}|Overlay Layer]]
[[Category:Components:Rendering{{#translation:}}|Overlay Layer]]
[[Category:Components{{#translation:}}|Overlay Layer]]
[[Category:Components{{#translation:}}|Overlay Layer]]
[[Category:ComponentStubs]]

Revision as of 18:11, 3 April 2025

This is a userspace component — you cannot attach it anywhere but the userspace. Messing with the userspace can be fun, but it is not recommended as you risk messing your dash up if you don't know what you're doing.
Component image 
File:OverlayLayerComponent.png
Overlay Layer component as seen in the Scene Inspector

The OverlayLayer component instructs the renderer to render the hierarchy it is attached to on top of everything else. On desktop the component also causes the hierarchy to render directly in front of the camera, mimicking a 2D user interface.

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.

Behavior

When enabled, OverlayLayer will tell the renderer to render the hierarchy under the slot (including the slot) on top of everything else. Internally, this is done by setting the layer of each GameObject in the hierarchy to Overlay.

Examples

OverlayLayer is used to display the dash, notification panel and the cursor on top of everything else in userspace.

See Also