Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 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 Madrig88 · Jul 27, 2015 at 10:42 AM · 2dguigameobjects4.6

Issues with GameObjects and GUI

I can't seem to get the GameObjects from going on top of the GUI I was wondering if anyone could help me out. This is what I see on top of the Pause menu:

alt text

As you can see, I am using the built in 4.6 GUI and it is 2D. I have tried everything i could think of. Changing sorting layer, changing order layer, changing actual z dimension. Any help would be greatly appreciated.

Thanks!

capture.png (13.1 kB)
Comment
Add comment · Show 3
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 Madrig88 · Jul 27, 2015 at 11:36 AM 0
Share

I have it set Screen Space - Camera. And I have not adjusted the opacity on the sprite.

avatar image Basen · Jul 27, 2015 at 05:56 PM 0
Share

Test Camera culling modes, also camera depth please.

avatar image Madrig88 · Jul 27, 2015 at 06:34 PM 0
Share

I have just tried this and the GameObject is still on top of the GUI.

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by PAHeartBeat · Jul 27, 2015 at 10:48 AM

Hi @Madrig88

I have few qestion about your issue.

What is your canvas render mode ? (Screen Space - Overlay, Screen Spcae - Camera or world space) Did you adjust Opecity of you UI object (sprite / image componant)

May be was due to canvas rander mode.

Comment
Add comment · Show 3 · 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 PAHeartBeat · Jul 27, 2015 at 11:43 AM 0
Share

did you assign camera to rander camera.. ?

avatar image Madrig88 · Jul 27, 2015 at 05:44 PM 0
Share

yes I did, and still nothing.

avatar image PAHeartBeat · Jul 28, 2015 at 04:55 AM 0
Share

Please check camera depth if you are using multiple camera like one for HUD and another for other objects (normaly I use two camear one for HUD with higher value depth and another for regular object uses in game which has lower value in depth)

If you using multiple camera use depth 0 for camera which see gameobject and depth 1 or 2 for camera which see for the HUD

avatar image
0

Answer by Madrig88 · Jul 28, 2015 at 04:30 AM

I did assign a camera to render camera, and its still not working.

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 KokodokoGames · Aug 30, 2015 at 06:00 PM

Same problem here. Either the canvas displays as 10.000% the size of my game, or when I assign a camera to the canvas, the GUI appears behind the game objects - no matter what kind of z ordering is applied.

It seems that Unity2D is not working nicely with the GUI system at all.

I have now resorted to making all my GUI elements just simple game objects with mouse click events. This works much faster and it's easier to align the GUI with the rest of your game 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

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

GameObject with SpriteRenderer either on top of everything or not showing 0 Answers

How to Convert each 2D Array to GameObject 2 Answers

4.6 Gui anchoring a ui element to a Game Object 2 Answers

Does anyone know of a way to assign an Axis or KeyCode to a GUI Button or Texture? I'm trying to make a 2D platformer on a mobile device. As you can tell, I have no Idea what I'm doing... 1 Answer

Store/Stack Items 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