1
\$\begingroup\$

I have cinemachine set up. I just need to place the UI on top of it. I can easily manage to make the canvas appear when there's only the main camera alone. However with Cinemachine, it appears that the virtual camera prevents the loading screen to be seen. The canvas in my hierarchy is named loadingPanel which is disabled until I trigger an event. Everything in the hierarchy has their layers set to Default, except canvas (UI) and the player (Player)

I can trigger the event and set loadingPanel to active as well as load the next level but I can't see the loading screen. I could only see my tilemap/level before I switch to the next scene. I need to see my canvas / user interface.

This is my hierarchy

hierarchy tab

Inspector

loading panel inspector

How do I see the loadingPanel when cinemachine is present?

\$\endgroup\$
  • 1
    \$\begingroup\$ I notice you set the UI canvas to be displayed only in the Main Camera. Did you try setting it to display on the CM vcam1 camera when it's active, or use the Overlay mode to draw over everything regardless of camera? \$\endgroup\$ – DMGregory Jun 29 '19 at 13:15
2
\$\begingroup\$

I forgot to come back. Setting the Canvas panel back to Overlay mode did the trick.

Credits to DMGregory

| improve this answer | |
\$\endgroup\$
  • \$\begingroup\$ Note that this is literally the very first parameter the Inspector exposes to you in the screenshot you shared. In future, please read the docs for the types you're using and try simple parameter substitutions like this yourself. Our general assumption is that you've made your very best effort to solve the problem yourself before deciding to take others' time by asking here. \$\endgroup\$ – DMGregory Jun 30 '19 at 12:21
  • \$\begingroup\$ okay. my bad. will do \$\endgroup\$ – CraftedGaming Jul 1 '19 at 2:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.