LogoLogo
Sign in to Leia Developer Portal
  • LeiaSR™ Documentation
  • LeiaSR SDK
    • LeiaSR™ Native SDK Guide
  • Unity Plugin
    • LeiaSR™ Unity Plugin Guide
      • Getting Started
      • Project Setup
      • Scene Setup
      • LeiaDisplay Component
        • Selecting Objects
        • Worldspace UI Canvas
      • Quick API
      • Extensions
        • Model Viewer Sample Scene
        • Android Live Preview: Leia Remote 2
        • Auto Focus
          • LeiaRaycastFocus
          • LeiaTargetFocus
          • LeiaDepthFocus
      • Content Design
        • Optimizing Object Placement
        • UI and Depth Violations
        • Depth of Field
        • Backgrounds
      • Render Pipeline Support
  • Unreal Plugin
    • Unreal SDK Guide
      • Getting Started
      • Manual Download And Import
      • Scene Setup
      • Quick API
      • Extensions
        • Android Live Preview: Leia Remote 2
      • Required Project Settings
      • Required Build Settings: Android
      • Content Design
  • NEURD SDK
    • NeurD SDK Guide
Powered by GitBook
On this page
  1. Unity Plugin
  2. LeiaSR™ Unity Plugin Guide
  3. LeiaDisplay Component

Worldspace UI Canvas

Instructions for how to setup a world space UI canvas to work with the Leia Unity plugin. Note that version 3.2.14 of the Leia Unity Plugin handles this process automatically.

PreviousSelecting ObjectsNextQuick API

Last updated 6 months ago

Sample Scene: Assets/Leia/Examples/WorldSpaceUI/WorldSpaceUI

Step 1

Create a new game object under LeiaDisplay called "UIRaycastCamera"

Step 2

Attach a camera component, and set it's field of view to be the same as your Head camera. Set the Clear Flags to "Don't Clear" and the Culling Mask to "Nothing" so that the camera doesn't affect rendering. This camera will only be used for UI raycasting purposes.

Step 3

For your world space canvas game object, set the Event Camera to be the UIRaycastCamera like so:

Congrats, your world space canvas should now work with the Leia Unity Plugin!