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 /
avatar image
2
Question by torpedoo · Jul 12, 2016 at 11:47 AM · ui3d model

Is it possible to set a 3D object between Ui Elements?

Hey,

I want to put some 3D objects into my UI. Therefore I need some of the UI elements to be rendered behind the 3D objects and some of them to be rendered in front of them. Is there any way to achieve this in the UI system Unity provides?

Thanks torpedo

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 vlucki · Jul 12, 2016 at 04:24 PM 0
Share

How about using a WorldSpace Canvas?

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Keyo · Jul 12, 2016 at 05:35 PM

Unity's UI Canvas has a couple of options, setting it to 'World Space' will let you place the container for UI objects in a 3D space. More info can be found here: https://docs.unity3d.com/Manual/HOWTO-UIWorldSpace.html

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 UmairEm · Jul 12, 2016 at 05:35 PM

YES! There is a way to do this. First of All you need to have world space UI. For displaying some elements of UI behind 3D objects and some in from of them, you need to have different canvases for them. Change Order in Layer of canvas to change rendering order. greater value will render the canvas on top of other objects.

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 mayanphsyco · Aug 01, 2019 at 05:47 PM

No. It IS possible, but not natively with the UI system provided.

As mentioned in previous answers, you can have two canvases (UI systems), one in World Space behind, and another Screen Space one in front, while the 3D object would just act as a regular object.

The method I prefer, however, is having it all in the same canvas. You can achieve this by first off, adding the UI elements to the canvas. Then, add your mesh, or any kind of 3D object with a renderer as a child object of the canvas. After that, play around with the "Z" position values. It helps to untoggle the 2D view in the scene view. Sizes will sometimes be unexpected, as a the screen space canvas might be much bigger than the 3D object, so resize accordingly.

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

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Not-UI elements (3D models/particles) in UI system 1 Answer

Using a 3D model as a button, in Unity's UI system? 3 Answers

GUI elements sometimes flicker or flash, briefly showing incorrect sprite images 1 Answer

Detecting mouse over UI element with preview package UIElement runtime? 0 Answers

moving player with ui buttons 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