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 Laz0007 · Jan 23, 2019 at 07:56 PM · camerauilayersdepthgame object

Both Game & Scean Tabs are showing objects exactly right > But Play dose not show the same.... Why ???

Short description: I have a 3D object (Dice) that I am trying to show over my UI menu..... I have read everything I can about this and have tried many suggested solutions already

I have tried a) making a second camera b) setting the layer of the object to be visible by just the new camera C) set the layers on both the cameras....... D) Yes; all my layers are visible....... I even tried making a 3rd camera just for the UI Nothing is working.... apart from the fact that the die is under the UI..... It also does not appear at all when I hit Play....... not even behind the UI menu ???...... very weird..... I was under the impression that what was shown in the Game Tab was equivalent to what was going to showalt text in Play mode I know there is a lot of information about similar issues.... but nothing seems to solve this problem I am having...... Any potential solutions & Help with this would be wonderful

aa-cameraproblem.png (98.5 kB)
aa-cameraproblem2.png (60.5 kB)
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 Laz0007 · Jan 23, 2019 at 10:11 PM 0
Share

Problem solved:

O$$anonymous$$G........ THAN$$anonymous$$ YOU for your suggestion, because it made me take a second look at my Canvas I changed the Render $$anonymous$$ode to > Screen Space - Camera .... But couldn't see anything.... Then I realized >>>> I had the \sorting Distance wrong..... Now that I have adjusted the Sorting distance correctly YOUR answer was totally right ^^ $$anonymous$$any thanks.... and cheers P.S. The reason my Game Tab was showing the 3D object and the Play did not, had nothing what-so-ever to do with the cameras (That was a separate issue) > It turned out to be my animation that was attached to the 3d object was incorrectly linked in the animator.... Once I fixed that (and... the Cameras) it showed up just fine when I hit Play $$anonymous$$any Thanks ^^

1 Reply

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

Answer by xxmariofer · Jan 23, 2019 at 09:00 PM

Your issue is not being able to show your objects over your ui? thats probably because a missunderstanding of how Canvas works,try changing your canvas render mode to screen space - camera and drag your camera to the camera component that will appear, then try changing the canvas object you were trying to hide behind the 3d objecy z component.

if you need some extra info i was trying to create a gif but was too heavy! so ill just uploaded somewhere if needed.

Comment
Add comment · Show 4 · 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 Laz0007 · Jan 23, 2019 at 09:54 PM 0
Share

Thanks for your response $$anonymous$$y canvas is set to Screen Space - Overlay..... I tried to change the canvas to Screen Space - Camera, but then nothing shows up at all

I do have the right camera dragged into the right canvas.... and depth has been set as well as the culling mask layers Still can't figure out what is happening.... from everything that I've read it should be working

avatar image xxmariofer Laz0007 · Jan 23, 2019 at 09:58 PM 0
Share

hello here is a link to a gif of an example so maybe you can figure it out.

avatar image Laz0007 Laz0007 · Jan 23, 2019 at 10:10 PM 0
Share

O$$anonymous$$G........ THAN$$anonymous$$ YOU for your suggestion, because it made me take a second look at my Canvas I changed the Render $$anonymous$$ode to > Screen Space - Camera .... But couldn't see anything Then I realized >>>> I had the \sorting Distance wrong Now that I have adjusted the Sorting distance correctly YOUR answer was totally right ^_^ $$anonymous$$any thanks.... and cheers

avatar image xxmariofer Laz0007 · Jan 23, 2019 at 10:17 PM 0
Share

Glad it helped, ill remove the link since it is using my free drive space the gif, if it helped you mark the answer as correct for helping others :)

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

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

Dropdown list hiding under background layer 0 Answers

How to match position with Mini Map UI 0 Answers

How can I raycast gameobjects with specific layer ? 1 Answer

Set a (foreground) UI layer which ignores mouse clicks? 0 Answers

Major Issues with Camera Switching 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