Chapter 01
It is already under the Intro scene
Track 1 · My journey
The panel was there. I could see SymptomsPanel in the hierarchy, nested under the Intro scene, exactly where the instructions said to put it. And it did not appear. My first assumption was that I had added it to the wrong scene, so I checked twice, then a third time. The scene was right. What was wrong was one level up. A UI element does not render because it is in a scene; it renders because a Canvas above it knows how to draw it, and that Canvas has a render mode. Mine was still set to Screen Space, which in a VR project means it is drawn onto a screen that a headset never shows you. The other symptom lined up too: I was trying to set the Image colour to a dark blue with alpha around 180 so the card would read as a hologram, and the Color box was not giving me a picker the way the instructions described — because I was clicking on a component that was not the one holding the visible graphic. Switching the Canvas to World Space changed the meaning of every number underneath it. The Width 1000 and Height 600 I had typed into the Rect Transform stopped being pixels on a screen and became a slab of geometry standing in the room. That is when the panel finally existed somewhere I could walk up to.
Track 2 · Learn with Deepthi
Canvas render mode (Screen Space vs World Space)
USED — evidence shows I used it- What did I just discover?
- That my panel was in the right scene and still invisible, because the Canvas above it was drawing to a screen the headset never shows.
- What I thought it meant
- I thought a Canvas was just a folder for UI elements.
- What I learned
- The Canvas is the thing that renders; the panel is only content inside it.
- What is it, really?
- A component that converts UI elements into geometry, either overlaid on a camera output or placed as a flat object in 3D space.
- Think of it like this (analogy)
- A cinema screen. Screen Space is a screen strapped to your face. World Space is a screen bolted to the wall that you can walk around.
- How does it actually work?
- You set the render mode; the Canvas then interprets its children's Rect Transforms either as pixels on the display or as units of a physical slab in the scene.
- Why does this exist?
- Because most games need flat HUDs, and only some need UI you can physically approach. Unity supports both from one component.
- Why did it matter to my project?
- Because in VR there is no flat screen to pin a HUD to — every readable card has to exist somewhere in the room.
- Where I used it
- On SymptomsCanvas, the parent of the SymptomsPanel holding the four clinical buttons.
- Common beginner misunderstanding
- That adding UI to a VR scene automatically makes it visible in VR.
- What I got wrong
- I debugged the panel for a long time before I looked at its parent Canvas.
- What this tool cannot do
- World Space UI still needs a raycaster and an input module before anyone can interact with it — rendering and clicking are separate problems.
- What surprised me
- How completely the same numbers changed meaning: 1000x600 went from pixels to a wall-sized slab the instant I switched modes.
What happens behind the scenes
What the tool is doing
Unity converts the Canvas hierarchy into renderable geometry and places it according to the chosen render mode.
What I am doing
I chose World Space and set the panel size and colour so it reads as a translucent hologram card.
What data is moving where?
- 1.I set render mode on the Canvas
- 2.Unity re-interprets child Rect Transforms as world units
- 3.The XR camera renders the canvas geometry like any other object
- 4.The headset displays it as a physical card in the room
One thing to remember
Remember this
A UI element renders because of its Canvas, not because of its scene.
Try it yourself
Take any panel, switch its Canvas between Screen Space and World Space, and watch what the same width and height do.
Learning checkpoint
Before this chapter
I thought putting an object in the correct scene was enough for it to show up.
After this chapter
I check the Canvas before I check the object.
What changed my mind
Parenting is not rendering. The Canvas, not the scene, decides whether UI exists in the world.
Can you answer these?
- ?Where does a UI element get its render mode from?
- ?Why did 1000x600 behave differently after switching to World Space?
