Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Guys, Don't bother using unity's 2D sprite system in 4.5

Discussion in '2D' started by arkon, Jun 1, 2014.

  1. arkon

    arkon

    Joined:
    Jun 27, 2011
    Posts:
    1,122
    I need to pass on my frustrations with Unitys 2d sprite system. It is seriously bugged. My latest game which I started in 4.3 I made the fateful decision to use the new 2d sprite system in unity instead of NGUI like I would normally do. It's been a nightmare. I had it what looked like 100% working and then I upgraded the project to 4.5. Now I get things like invisible sprites on IOS but working fine in the editor, or sprites that I can't change the bit depth on etc.

    Currently only 1 day from releasing my game and thought I'd do one last play test on the iPad only to discover some of the sprites were not being rendered, no amount of re importing would make them visible.

    So guys use it at your peril, I wish I had stuck to NGUI for my sprites!
     
    playmonkey1 likes this.
  2. TomasJ

    TomasJ

    Joined:
    Sep 26, 2010
    Posts:
    256
    That doesn't sound good. Please get in touch with me and we'll figure out what's wrong.
     
  3. dorpeleg

    dorpeleg

    Joined:
    Aug 20, 2011
    Posts:
    250
    I'm also experiencing sprites not being rendered on iOS (unity 4.5), its seems like 90% of sprites are not rendered and 10% are...
    I've tried playing around with the different player settings but nothing seems to help....
     
  4. outtoplay

    outtoplay

    Joined:
    Apr 29, 2009
    Posts:
    741
    That sucks.. Thanks for the warning. Don't suppose you have your project on
    Dropbox so you could 'Fallback' to a previous install?

    That said... why in God's name would you upgrade so close to a release? Lotta places you'd get fired for that. Good Luck!
     
    Loius likes this.
  5. arkon

    arkon

    Joined:
    Jun 27, 2011
    Posts:
    1,122
    Well stupid is as stupid does! I tried a test conversion on a copy of the project and it all seemed to work ok so I did the last few days of development on the 4.5 version of the game, it was only when I was doing a final play test I noticed my character animation flashing oddly on one of the anims plus a few obstacle sprites missing. Anyway once I realised that some sprites being invisible on IOS was the symptom I reimported all the sprites again and changed import options etc. eventually they all worked but I learnt my lesson.
     
  6. arkon

    arkon

    Joined:
    Jun 27, 2011
    Posts:
    1,122
    The cure was to refresh, then reimport each sprite. Then change each sprites setting to Texture, apply, then change them all to advanced but set the sprite single attribute. They are all visible on IOS now but I don't know what step I did that was the actual cure as I tried so many different things.

    Long and the short of it, is 4.5's importing of sprites if not working 100% reliably.
     
  7. TomasJ

    TomasJ

    Joined:
    Sep 26, 2010
    Posts:
    256
    Sounds like 4.3 -> 4.5 upgrade path for Sprites is not right. We'll investigate.
     
  8. Dogg

    Dogg

    Joined:
    Mar 5, 2014
    Posts:
    203
    Wow it's a good thing I saw this thread. Thanks for the heads up.;)
     
  9. Que

    Que

    Joined:
    Mar 14, 2014
    Posts:
    135
    Do we have any alternative to play around?

    Thank you.
     
  10. TomasJ

    TomasJ

    Joined:
    Sep 26, 2010
    Posts:
    256
    A full reimport *should* fix it. I don't have a repro case where a full reimport doesn't solve this.
     
  11. Shirts

    Shirts

    Joined:
    Nov 4, 2012
    Posts:
    8
    Yeah, I'm getting the exact same problems. When i switch back to 4.3, some sprites appear on ios, some don't. It's like a tradeoff. I get some in 4.3, and other in 4.5. LOL. =(
     
  12. Munchy2007

    Munchy2007

    Joined:
    Jun 16, 2013
    Posts:
    1,731
    When I tested my game (Pobble) with 4.5 I had sprite graphics issues, but a full re-import fixed all the graphics problems.

    However the 2D physics was different to the point it broke the gameplay, so I reverted back to 4.3 for continued development of Pobble.
     
  13. LaneFox

    LaneFox

    Joined:
    Jun 29, 2011
    Posts:
    7,381
    Just curious... Other than these bugs and issues how did you like using the new system in general?
     
  14. Munchy2007

    Munchy2007

    Joined:
    Jun 16, 2013
    Posts:
    1,731
    In general I like using the new 2D system very much, and I'm pretty sure that if I'd developed my game from scratch using 4.5 it wouldn't have been a problem. I've no doubt that given time I could even have tweaked things to make it work with the new physics behaviour, however I didn't think it was worth the trouble.

    My viewpoint is that Unity's 2D system is still in development and there are bound to be some changes in the way it behaves for the first few patches. I could have waited until it was more mature before I developed my game, but I chose not to, and it's no problem for me to just use the older Unity version to work on it in the future.

    I'll probably hang on for Unity 4.6 before I start major work on my next 2D game however.

    Personally speaking, having come to Unity via DarkBasic Pro, XNA and AGK I can say without a shadow of a doubt that Unity is by far best game development environment I have used.
     
  15. Kilrath81

    Kilrath81

    Joined:
    Nov 19, 2013
    Posts:
    153
    I use 4.5 for my platformer, I upgraded to 4.5 because of 2d physics issues and everything works great except for a collicion crash that im wating for next patch to fix. Never had any of these issues.
     
  16. Pyrian

    Pyrian

    Joined:
    Mar 27, 2014
    Posts:
    301
    Collision crash? What causes that?

    I'm hoping there's a fix for the interpolation issue soon.
     
  17. TomasJ

    TomasJ

    Joined:
    Sep 26, 2010
    Posts:
    256
    +1
    There is a bug in our project updater. 4.5 was supposed to force you to reimport all textures, but in some cases it didn't.

    As for physics, please check 4.5.1 patch 1 which should fix the problems you're having: http://forum.unity3d.com/threads/unity-patch-releases.246198/
     
  18. Munchy2007

    Munchy2007

    Joined:
    Jun 16, 2013
    Posts:
    1,731
    Thanks ThomasJ, I wasn't aware of that, I'll try it out over the weekend and report back here afterwards.
     
  19. Kilrath81

    Kilrath81

    Joined:
    Nov 19, 2013
    Posts:
    153
    The collision crash is fixed in P2 out today. if you were colliding with an object and destroyed the rigidbody component unity would crash.