• 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 orcsworth · Jan 19, 2016 at 09:23 PM · animationandroid2drotation

Animated sprites disappear then rotated on Android

I have in my game a pretty basic animated character, which consists of 2d sprites. All animations are done inside Unity 5. Everything works fine then tested in editor or windows standalone. But then the game runs on android some sprites of my character become invisible.

I do not animate isActive property anywhere and it is always checked. Now, I found out that the disappearing ones are only the sprites that have their rotation animated. If I delete rotation keyframes or set their values to zero, these sprites are visible, but even if the slightest rotation value is added, like 0.1, I get the same problem.

Can someone point out where the problem may be?

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 Apoll0 · Jan 20, 2016 at 09:29 AM 0
Share

Same for iOS

avatar image dmi2014 · Jan 22, 2016 at 10:46 AM 0
Share

hi, I have the same problem ... even in a simple scene (plane and a rotating cube) ... when the cube is starting to rotate the geometry disapears !! and my player starts falling .... ... in the editor everthing is working fine but when I try it out with android in my vrGear the problem occurs.

avatar image dmi2014 · Jan 22, 2016 at 11:01 AM 0
Share

... this problem only occurs when the rotation is animated a rotation via script is working fine

5 Replies

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

Answer by orcsworth · Jan 22, 2016 at 11:00 AM

I found the solution, that solves the problem on my testing devices. The problem seems to be the rotation keys interpolation mode - euler angles.

If I right click the rotation channel in animation editor panel tree view and switch interpolation mode to quaternion, the rotation starts to work as expected from it on android devices. This works with Unity version 5.3.0f4.

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 WVAviator · Feb 02, 2016 at 04:07 PM 0
Share

Thank you!!! This worked 100% for me for the same problem.

avatar image Ukmasmu · Feb 25, 2016 at 04:24 PM 0
Share

Thank you a lot! :D

avatar image Zavtramen · Mar 22, 2016 at 05:27 PM 0
Share

Thank you! It works like a charm!

avatar image puppeteer · Apr 30, 2016 at 03:33 PM 0
Share

Can confirm this too, changing the interpolation for each object in the animation to Quaternion solved the problem on Android devices. Thank you, I've been looking at this problem for two days now.

avatar image
3

Answer by adi4x · Feb 04, 2016 at 07:11 AM

SOLUTION. (Works also for 5.3.2f1)

Change Interpolation for your rotation from Euler Angles to Quaternion

alt text


fix.png (54.8 kB)
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
1

Answer by windclose · Jan 21, 2016 at 11:19 AM

I have suffered this problem today. When animate the sprite with rotation, the sprite will disappear on Android device.

My unity version is 5.3.1f1.

I create a test project, And make the animation with rotation in 5.2.3p1, It work perfectly on Android device.

Then I open the test project in 5.3.1f1, build , It works perfectly on Android device.

When I remake the animation in 5.3.1f1, Sprite dissappeared!!

Conclusion: It's a Unity's animation create tool bug.

Temporary solution: U can make animation in lower version Unity and import it in to the 5.3.1f1, and the rotation animation will work.

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 zedarus · Jan 22, 2016 at 10:37 AM 0
Share

Interesting. Have you tried comparing .anim files YA$$anonymous$$L code to see what is the difference in those animations? This might be the key to the problem.

avatar image dmi2014 · Jan 22, 2016 at 10:45 AM 0
Share

hi, I have the same problem ... even in a simple scene (plane and a rotating cube) ... when the cube is starting to rotate the geometry disapears !! and my player starts falling .... ... in the editor everthing is working fine but when I try it out with android in my vrGear the problem occurs.

avatar image
0

Answer by poony · Feb 05, 2016 at 04:31 PM

I just spent 7 hours trying to debug this before finding this thread. Thank-you for finally putting me out of my misery haha.

Just checking the 2D Sprites I previously created: In v5.2, the rotation defaulted to "Euler Angles (Quaternion Approximation)". In v5.3, the rotation is defaulted to "Euler Angles".

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 linxuzi · Feb 05, 2016 at 09:05 PM

fixed in Patch 5.3.2p2

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 adi4x · Feb 06, 2016 at 10:00 AM 0
Share

yes.. it seems so.

Animation: Fixed crash when deleting all Euler keys in animation curve. (754373)

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

15 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

Related Questions

Sprite rotation with animation (2d project) 0 Answers

How to rotate an object using animation clip in opposite direction? 1 Answer

how to rotate 2d obj on android 1 Answer

Counter is not working correctly with LeanTween 0 Answers

2D mobile: Need my character to rotate Z axis towards touch position 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