Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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 /
  • Help Room /
avatar image
1
Question by KaushikRahul · May 24, 2016 at 12:16 PM · camerauicanvasview

Canvas without Camera?

What happens if i use Canvas without Camera? Does it really makes any kind of difference.

For Example, one of my friend's just made a game. Its completely 2D game and is Canvas based but he didn't use ant camera. I have been working on unity for a few years now but haven't done anything like this i.e. making a game without camera. His game is working fine though but am still not sure. I have doubts that something is wrong.

Please Help,

Thanks in Advance

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

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by HarshadK · May 24, 2016 at 01:57 PM

You need to have at least one camera in the scene in order for scene to render. I think he has used Screen Space - Overlay mode for the canvas which uses the Main Camera from the scene itself to render.

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 Owen-Reynolds · May 24, 2016 at 02:10 PM 2
Share

Yes, that's screen space. But it doesn't use the mainCamera. Screen space uses an invisible perfectly flat (orthogonal) camera. You can think of it as a shortcut for Camera-Space, where you tell the system "I'm not going to be doing any perspective or size tricks, so just make a standard UI camera for me."

The trick is to have the menu cover every pixel on the entire screen. That way it doesn't matter that you don't have a mainCamera.

avatar image HarshadK Owen-Reynolds · May 25, 2016 at 05:48 AM 0
Share

I was actually under the impression that since Screen Space does not take camera as input it is accessing and using the $$anonymous$$ain Camera to render. Thanks for sharing this. :-)

avatar image
0

Answer by binarybehemoth · May 24, 2016 at 02:22 PM

On the canvas, just change Render Mode to "Screen Space - Overlay", and you can do away with any camera.

Here are more details:

http://docs.unity3d.com/Manual/class-Canvas.html

http://docs.unity3d.com/Manual/UICanvas.html

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.

Follow this Question

Answers Answers and Comments

70 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

Related Questions

UI Elements repositioning and resizing when playing game 1 Answer

Retain Position and Scale Values of Render Texture Canvas Elements to another Canvas 0 Answers

Sprite in Canvas not projected correctly in Maximum playmode 0 Answers

Scale a canvas based on reference camera viewport 1 Answer

How do I make UI Elements Stay on Screen, but change position, wanting to lock with gameobject position? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges