1
\$\begingroup\$

I know how to do It on one, but I don't know how to do it using multiple cameras, 3 of them are important, i want to show the whole UI except for the minimap. I need to change the camera angle on some spots, while keeping the same canvas for displaying the number of coins XP and the current level.

\$\endgroup\$
  • \$\begingroup\$ Set the cameras as the main-camera when changing into them, through script? \$\endgroup\$ – XenoRo Dec 20 '17 at 21:53
1
\$\begingroup\$

Option 1:

Set the canvas to be a Screen Space - Overlay

This mode means that the canvas renders last directly to the screen (in screen space), regardless of which cameras are active and how they're displaying what they display.

Option 2:

Set the canvas to be a Screen Space - Camera and change which camera it renders on when appropriate.

This mode means that the canvas is the last thing rendered by the indicated camera and will only render on that camera's view (and if another camera renders afterwards, it will render over the canvas). By changing which camera is active you also change which camera the canvas renders to, you maintain the visibility of the canvas.

Option 1 is likely the preferred solution, but depending on your exact needs and camera setup, Option 2 might be what you're looking for.

\$\endgroup\$

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.