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
0
Question by suIly · Aug 06, 2019 at 03:41 PM · renderingobjectcanvas

Canvas over everything in scene

How can I render a canvas (or image) over everything in the scene? Specifically 3d gamobjects.

Comment
Add comment · Show 2
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 · Aug 06, 2019 at 04:40 PM 0
Share

Increase the "depth" of the camera looking at it (assu$$anonymous$$g you already have the canvas stretched over the 3D area).

avatar image suIly Owen-Reynolds · Aug 06, 2019 at 10:59 PM 0
Share

thanks I'll try that

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by AdamSt · Aug 05, 2020 at 11:16 AM

Found out (partly) solution.

I was creating VR app and I needed to create popup system which are appearing in gogles. Using SSO option on camera is not applicable in this case, as UI is only drawn on PC not in gogles itself. I had to use world space, and solution is to:

On every element in UI, I had to use overlay material. e.g. for Image, I needed to use material "UI/Overlay". For text mesh pro component I needed to change material of text from "text mesh pro/distance field" to "text mehs pro/distance field overlay" and so on.. Working perfectly.

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
avatar image
0

Answer by Goat-Boy · Aug 06, 2019 at 03:52 PM

Set your canvas render mode to Screen Space Overlay. https://docs.unity3d.com/Manual/UICanvas.html

Comment
Add comment · Show 8 · 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 suIly · Aug 06, 2019 at 04:14 PM 0
Share

Yes, but I also want the object to be in world space

avatar image TreyH suIly · Aug 06, 2019 at 04:23 PM 0
Share

can you describe this a bit more in detail? the question and this reply are probably too vague to get the answer you want

avatar image suIly TreyH · Aug 06, 2019 at 04:25 PM 0
Share

I want a image to appear over the enemy flag that this is the enemy's flag, but when I do, the canvas goes behind objects.

avatar image Goat-Boy · Aug 06, 2019 at 04:30 PM 0
Share

Why do you want the UI to be in world space if you want it to be rendered over everything in the scene as your question states? You actually want one or the other, not both.

avatar image suIly Goat-Boy · Aug 06, 2019 at 04:32 PM 0
Share

So the player can see it went the canvas is behind objects

avatar image suIly suIly · Aug 06, 2019 at 04:32 PM 0
Share

*when the canvas is behind objects.

Show more comments
avatar image AdamSt · Aug 05, 2020 at 10:31 AM 0
Share

Actually its not applicable in all cases - let's say you want show popup in VR mode (setting to SSO only renders on PC screen, not gogles) - with world space it intersects with 3D objects...

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

144 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

Related Questions

Render only a fraction (say, 75%) of the screen at run time? How to? 0 Answers

A object closer to camera than B object, but A object is behind B and is not visible 1 Answer

How do you get that Grow Home look 1 Answer

How do I render canvas to texture with proper transparency? 2 Answers

Objects under background canvas 0 Answers


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