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
0
Question by NosVidz · Apr 01, 2016 at 06:35 AM · animationuispritesheet

Animate Objects in UI

Hi.

I would like to animate an object (not an UI object) in my UI. It is a 3D Model which I want to rotate around, instead of just standing still.

RenderTextures seemed to be a good thing, but appearently it's not possible to display the object without it's background.

So my other idea was to create a spritesheet for the animation (which is pretty logical, since it is only for UI).

So I would like to know, is there a better way to do this? And if not, is it possible to create a spritesheet from my animation / object with unity, or do I have to do this manually?

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 digzou · Apr 01, 2016 at 06:53 AM 0
Share

3d object in UI can be animated pretty much as you can do in your game. Using a special sprite sheet animation seems unnecessary.

1 Reply

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

Answer by Eudaimonium · Apr 01, 2016 at 11:22 AM

Set your Canvas as Screen Space with a Camera.

Set your 3D object in the same layer as the camera. It'll show up on the UI.

alt text


ui-3d.jpg (151.7 kB)
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 NosVidz · Apr 02, 2016 at 03:37 PM 0
Share

Screen space -Camera doesn't seem possible to me. I want to use this for a HUD in a third person view. With Screen Space - Camera, some objects are closer to the camera than the UI itself, thus overlapping it.

avatar image Eudaimonium NosVidz · Apr 02, 2016 at 04:33 PM 0
Share

It's not world space - the HUD canvas is not actually within reasonable scope of your scene. In my screenshots, the first shot is of the HUD canvas - as you can see it's far out of bounds of the scene, but it will still render over everything that the main camera captured.

Simply make a new camera and assign that to the canvas, don't use your actual main camera. Then on the new camera, make sure to assign: Clear: Depth only

avatar image NosVidz Eudaimonium · Apr 03, 2016 at 07:52 AM 0
Share

I used my main camera for the HUD, that was my problem. Thank you, works!

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

How can I make UI button animaion using spritesheet? 0 Answers

Replacing animations from a list at runtime 1 Answer

How can I recreate the filled Ultimate Meter in Overwatch? 1 Answer

Can I make animations snap to a frame? 1 Answer

Button animator not playing. 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