Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
1
Question by Abacab · May 16, 2015 at 02:35 PM · c#uigameobject

GameObjects and UI

Hello!

Is it possible to have gameobjects visible in the UI? I added rotating gameobjects to the ui but can't see them in play mode. When I switch to scene view while in play mode I can see them but the camera doesn't see them.

I have the gameobjects inside the canvas in the hierarchy and they are on the UI Layer.

Thanks in advance!

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 Abacab · May 18, 2015 at 03:45 PM 0
Share

Anybody got an answer for me?

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Tonks · May 18, 2015 at 05:11 PM

There are several things at play here, I notice that you have added it under the canvas hierarchy (which isn't actually necessary, as it isn't a UI element and wont need to access the UnityEngine.UI library) and you have ensured it is on the correct layer. The only thing I can really think of being a problem is the location of the gameobject in your scene, is it actually within your UI Camera's view frustum? The far clipping plane may be close (as most UI is effectively 2d) whilst your gameobject may be sitting just outside of that range. It may sound silly, but check your near clipping plane as well.

Also, be aware that you may need to switch your UI Camera's rendering space to world space, rather than screen space, though this really should not be an issue.

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 Abacab · May 18, 2015 at 05:24 PM 0
Share

First image is game mode and second image is scene view.

alt text

alt text

screen-shot-2015-05-18-at-202247.png (17.3 kB)
screen-shot-2015-05-18-at-202259.png (27.9 kB)
avatar image Abacab · May 18, 2015 at 05:27 PM 0
Share

How it should look (2d scene view picture):

alt text

screen-shot-2015-05-18-at-202525.png (45.6 kB)

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

21 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

Related Questions

How do i get the child of an GameObject the pointer is hovering over? 0 Answers

HUD reticle question 0 Answers

[c#] first script isnt disabling canvas and player cant move (issue with first script) 0 Answers

Unity ads , can't we show video by clicking a button? 1 Answer

[c#] first script isnt disabling canvas and player cant move (issue with first script) 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