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 CausticLasagne · Nov 19, 2015 at 12:27 PM · uiworldspacebillboard

Unity UI: How to make an image draw over a 3D object in world space? (Quest Markers)

Hello everyone, I'm effectively trying to create a Quest marker. Currently what I've done is put a Canvas onto a cube in unity, and told the canvas to render in 3D space (world), but It doesn't draw over other 3D objects in the scene.

Does anybody know how I could achieve this?

Thanks - CausticLasagne.

Comment
Add comment · Show 1
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 CausticLasagne · Nov 20, 2015 at 06:44 PM 0
Share

Ok. It works. That's some magic stuff happening there. Thanks to everyone who contributed.

3 Replies

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

Answer by OncaLupe · Nov 19, 2015 at 07:29 PM

Are you trying to draw the marker over ALL other objects in scene? If that's the case you may have to use 2 cameras with culling masks.

  • Set the marker to a custom layer (lets say "QuestMarkers")

  • Disable rendering of that layer on the main camera by removing it from the Culling Mask in the camera's settings

  • Set the second camera to only render that layer with Culling Mask and set the Clear Flags to Depth Only

  • Make sure the second camera has a higher Depth than the main (main camera defaults to -1, other cameras default to 0, higher numbers are rendered over lower)

  • Parent the second camera to the main and reset it's position/rotation

This should cause the quest marker to render on top of all other objects in scene.

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 _Game_Dev_Dude_ · Nov 19, 2015 at 03:29 PM

Change the canvas to be a world space canvas.

http://docs.unity3d.com/Manual/HOWTO-UIWorldSpace.html

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 CausticLasagne · Nov 20, 2015 at 06:32 PM 0
Share

Yes, I have done this, But as soon as the canvas is added to the Object, it looses it's ability to draw over other objects. \/ This guy below has the idea.

avatar image
0

Answer by CausticLasagne · Nov 20, 2015 at 06:30 PM

Ok. Thanks guys.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Attaching a worldspace ui to an object? 0 Answers

Touchscreens like in the game Prey 0 Answers

Way to lock cursor to center and still interact with Worldspace ui 0 Answers

Depth of field not working properly with World Space Canvas 1 Answer

How to calculate ui image size in world space? 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