• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Rookiebatman · Jan 17, 2019 at 11:56 PM · camerauicanvasmultiple cameras

Is there any way to just see part of the canvas sometimes?

I'm working on a game where the canvas takes up the whole screen, but sometimes I'd like to focus on one specific part of the canvas. I can't figure out any way to do that. If I add another camera, make that camera smaller than the main camera (so it would be zoomed in on part of the canvas), then change the canvas to render through that camera, the size of the canvas just changes to fill up the whole screen in that camera. Is it even possible to do something like this? I've tried all kinds of search terms about using multiple cameras in one canvas, but I can't find anything.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by saakov · Jan 18, 2019 at 06:01 AM

try worldspace mode of canvas, than it will not change canvas size depend on camera

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Rookiebatman · Jan 18, 2019 at 12:40 PM 0
Share

Oh yeah, that did it. For some reason, I had gotten it into my head that Worldspace was not what I wanted when the whole game was in the UI, but that definitely does what I need it to do a hell of a lot better than Screen Space - Camera.

avatar image
0

Answer by surfuay · Jan 18, 2019 at 02:30 AM

are you trying to remove things from the canvas or zoom in on parts of the canvas?

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Rookiebatman · Jan 18, 2019 at 04:51 AM 0
Share

Zoom in on parts of the canvas. It doesn't seem like that's possible, because if I change the size of the camera, the Canvas always just changes to fit it. I tried all the different options under Screen $$anonymous$$atch $$anonymous$$ode, but nothing seems to change it.

avatar image surfuay · Jan 18, 2019 at 05:27 AM 0
Share

ok. so, this may not be the best way but it's what I would do. what ever part of the canvas you want to zoom in on, crop that and save it as a separate image.

so you would have the normal image and then an additional cropped image.

make a public gameObject in the UI script itself as well as another image in the canvas. then set its size and everything else you normally would when its active, set it to inactive after you get where you want.

back in your script, write in where you want it to be set to active.

as long as you're not trying to interact with buttons in that area of the canvas, but are just trying to see a full screen image of that particular area, that should work.

avatar image
0

Answer by mansoor090 · Jan 18, 2019 at 11:53 AM

worldspace canvas will do the job .

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

217 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

UI Minimap 0 Answers

UI is invisible 1 Answer

UI elements within canvas are invisible 4 Answers

Issues rotating a UI image while the canvas is parented to the Main Camera 0 Answers

How can you hide Canvas objects using Camera Culling Mask? 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges