Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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
0
Question by StianC · Sep 22, 2014 at 06:10 PM · uiguigameobject3d

3D object in uGUI

Is there a way to display a 3D gameobject in the new 4.6 uGUI? I know you could do it in nGUI, and i am trying to convert my nGUI setup over to uGUI.

Comment
Add comment
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

3 Replies

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

Answer by StianC · Sep 29, 2014 at 07:18 PM

Thanks for all the responses but I managed to solve the problem. I created my own GUI Camera off to the side and set the Canvas relation to Screen Space - Camera. I was able to mess with the render depth of the objects from there on and get the object to render over the GUI background.

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
2

Answer by HarshadK · Sep 24, 2014 at 05:47 AM

Surprisingly I tried as @BoredMormon suspected and did a setup in 5 minutes. And found out that you can actually add other 3D game objects as the child of a Canvas.

And you can even position them in relation to camera by adding a RectTransform component to that 3D game object.

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 Kiwasi · Sep 24, 2014 at 05:57 AM 2
Share

A lot of people got it in there head that the new UI was actually something new. Ultimately its just a bunch of new components you can play with. Everything underneath is still just GameObjects. GameObjects are still driven by what components you attach.

@Harshad$$anonymous$$ Thanks for verifying this for me. I'm not on my Unity computer at the moment.

avatar image HarshadK · Sep 24, 2014 at 06:02 AM 0
Share

This components system used to create UI elements is actually great since it allows you to be flexible with things you can do.

And still waiting for Unity to make those components open source cause it will open a whole new arena for us. :-)

Happy to help. :-)

avatar image StianC · Sep 24, 2014 at 04:36 PM 0
Share

I tried doing that but i couldn't get the the object to display over my gui background.

avatar image HarshadK · Sep 24, 2014 at 06:12 PM 0
Share

Can you provide some inputs as to what you have tried? Because it worked for me.

On a side note, the 3D object will appear flat in Render mode 'Overlay' for canvas.

avatar image
0

Answer by christoph_r · Sep 22, 2014 at 09:58 PM

Unfortunately not. For the moment, you'll have to tie in your 3D game objects into the rest of your GUI with custom scripts.

EDIT: Looks like I was mistaken :)

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 StianC · Sep 24, 2014 at 03:26 AM 0
Share

Thank you, it was as i thought

avatar image Kiwasi · Sep 24, 2014 at 03:47 AM 2
Share

I'm surprised at this. 3D objects are simply mesh renderer components added to a GameObject. In theory there is no reason why they shouldn't work as children of a canvas. Has anyone actually tried this in Unity?

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

25 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

Related Questions

How to position 3D-GUI-Mesh on change of aspect ratio? 0 Answers

Button then instanitates gameobject 1 Answer

Procedurally generated uGUI elements render under world space objects 1 Answer

The GameObject contain the GUI 0 Answers

Jump on the ground 2 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