Skip to content

World Space Canvas (Always On Top)

eisclimber edited this page Nov 3, 2024 · 2 revisions

World Space Canvas (Always On Top)

No Script
GameObject instantiable via ExPresS XRWorld Space Canvas (Always On Top)

Description

This is not a extra script. It is just the default Canvas set to RenderMode.WorldSpace and added XR UI Raycast support from the Unity's XR Toolkit.

If the canvas should not be able to be interacted with (e.g. show no interaction ray), remove the GraphicRaycaster- and Tracked Device Graphic Raycaster-Component from the Canvas.
If only some Children/Components should not react to UI interaction disable the Raycast Target-Property.

Additionally it's rendering layer is set to UI Always On Top, meaning it will be visible even other GameObjects would physically occlude it. This can be used to build custom HUDs or rotating Canvas that might clip through some Objects.

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally