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 /
  • Help Room /
avatar image
1
Question by Zardify · Feb 08, 2016 at 08:57 PM · animation2dspriterenderingissue

Unity 5 Animator hides Sprites on Android [Strange]

Hi everyone!

Three days ago i encountered a very strange behavior with my animation. I made a looping idle animation for my static (not moving!) character. There is absolutely no problem in the editor in play or out of play mode. But when I build the game, and start it on my Android phone (ZTE Blade L2), some of my objects disappear. At first the whole character disappeared, but the collision and the coordinates are the same. I "fixed" this situation by completely rebuilding the character. Now only some of the objects are hidden...

This happens only when the Animator is enabled!

I have already cleaned up the animation, so there are no unused or unnecessary keyframes & properties.

I have been googling around in the last two days. What I've seen:

  • Sprite Z scaling might be flipped. (It isn't)

  • Camera might not render the layer on which the Sprite is on. (It is)

  • Sorting layers might be messed up. (They are fine)

  • The objects might be clipped by the camera or change their Z position (They aren't)

I'm going crazy with this issue so I would really appreciate if someone could help me out. I'm providing any info required.

The hierarchy (every one of these are on the 'Foreground' layer):

  • Player - (empty container with a Rigidbody2D and a SphereCollider2D)

  • --- Trail - (a particle system) Sorting: Entity / 2

  • --- ATL_Darkness_0 - (base shape of the character, has the Animator) Sorting: Entity / 1

  • --- --- ATL_Darkness_Head - (the eyesocket of the character) Sorting: Entity / 3

  • --- --- --- ATL_Darkness_Eye - (the orange eye) Sorting: Entity / 4

  • --- --- --- --- Eye_Flames - (flaming particle system on the eye) Sorting: Entity / 5 HIDDEN

  • --- --- --- ATL_Darkness_TopJaw - (upper teeth) Sorting: Entity / 4 HIDDEN

  • --- --- --- --- ATL_Darkness_BottomJaw - (lower teeth) Sorting: Entity / 5 HIDDEN

Any help is much appreciated! - Screenshots included! alt text alt text

screenshot1.png (293.3 kB)
screenshot2.png (397.5 kB)
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 puppeteer · Apr 30, 2016 at 03:02 PM 0
Share

Encountering same problem here. Everything works correctly in the editor, but the moment I use an Animator based sprite hierarchy, all the sprites of the game toggle visibility see$$anonymous$$gly randomly, even if they use Animation component.

avatar image Zardify puppeteer · May 01, 2016 at 07:19 PM 0
Share

Well... I couldn't fix it. I had to make my animation completely sprite based. :/

avatar image puppeteer Zardify · May 01, 2016 at 07:34 PM 0
Share

Then take a look here: http://answers.unity3d.com/questions/1129862/animated-sprites-disappear-then-rotated-on-android.html#answer-1130928

This solved my problems by right clicking on each animation rotation and setting it from Euler to Quaternion in the animation pane.

0 Replies

· Add your reply
  • Sort: 

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

89 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 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 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 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

Animation events not working for my sprite animation 0 Answers

How to create a sprite animation template? 0 Answers

TileMap in custom layer doesn't render 1 Answer

Sprites Clipping Trough 3d Objects 0 Answers

Unity2D animation and sprite layout 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