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
0
Question by HHameline · May 09, 2011 at 02:19 PM · gui3dtexturesmodels

Showing a Rotateing 3D Item "In" or "On" the GUI

Hello, I'm creating a system where when the player hits certain levels they can unlock items. What I want to do is when they pick/choose or what ever the item to unlock, the item will be show in the middle of their screen rotating with a GUI Texture over it. Any ideas would be great I can't even think of how to start.

Thanks, Hans, The Unity Newb

Edit: I need to create a pop-up underneath it as well. Something like a GUI.Window.

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

1 Reply

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

Answer by WilsonS · May 09, 2011 at 03:48 PM

As far as I can tell (and I have spent quite a while looking), Unity GUI does not have a sprite rotation function. This does not mean you are out of luck in the rotation department. You can attach a sprite to a GameObject and rotate that object in the 3d World.

The simplest method would be to attach the sprite to an box that is childed to the main camera. However this GameObject would be subject to all sorts of strange lighting effects if your camera changes angle in the world.

The better method is to create a secondary camera in an unused part of your scene, Then put your rotating object in front of that. You will have to play with the culling mask and clear flags camera properties so that both cameras will render what you want to the screen. I don't remember the settings I used, but it is very doable.

If you don't feel like messing around with all this, you could do all the rotating in your image editing program and cycle through the frames in your GUI script.

Comment
Add comment · Show 1 · 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 HHameline · May 09, 2011 at 04:31 PM 0
Share

Yep the second approach worked nicely, the secondary camera tricked work well. I just ended up making 3D models of the need items to rotate so they look really nice now ty!

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

No one has followed this question yet.

Related Questions

A 2D GUI in mid air, for oculus, tracking an object. 1 Answer

Changing 3d text through script 1 Answer

Reconstruction of 3d mesh from 2d images 3 Answers

Im changing textures on my materials for all the objects in the game, but not all the changes happen on runtime. 0 Answers

Orthographic environment with Interface 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