Hello Guest

Author Topic: Creating sprite from AssetBundle problem  (Read 3483 times)

sean_ben

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 5
    • View Profile
Creating sprite from AssetBundle problem
« on: December 05, 2012, 08:41:56 am »
Hi, I have tried create an asset bundle with sprite collection and want to create sprite dynamically with that bundle. And I follow the Unity instruction on AssetBundle, the data loaded correctly. However, when I create the new sprite in Editor and click on the sprite, then Unity give me the error "unable to find sprite collection" and the Editor keep looping to "Rebuild index". I have check the forum and found this post just as same as my issue (http://unikronsoftware.com/2dtoolkit/forum/index.php?topic=377.0). I am using version 1.8 and did that means this bug still in 1.8?

thx 

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Creating sprite from AssetBundle problem
« Reply #1 on: December 05, 2012, 07:53:27 pm »
No that issue was fixed quite a while back.
Can you actually create your sprite dynamically using the asset bundle? This will not work if all the dependent data isn't present.

You're not loading the asset bundle from an editor script are you?

sean_ben

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Creating sprite from AssetBundle problem
« Reply #2 on: December 06, 2012, 03:34:45 am »
That's strange, I cannot reproduce this problem anymore...tried create sprite dynamically and create from prefabs and change the collection data load from asset bundle, now everything working just fine. Anyway, thanks for help.