Author Topic: Best practice NGUI and Asset bundle  (Read 1786 times)

wallabie

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 200
    • View Profile
Best practice NGUI and Asset bundle
« on: July 16, 2014, 12:37:01 PM »
I'm at the stage in the project where I need to work with NGUI and asset bundles.

What is the recommended  workflow for do this.

Cheers.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Best practice NGUI and Asset bundle
« Reply #1 on: July 17, 2014, 02:31:09 AM »
I have very limited experience with AssetBundles as they are meant for a very narrow set of things -- namely dynamically loading 3D models and textures. They are not meant to be used with something created dynamically like NGUI's UIs, so I would not recommend you using them for that purpose.

r.pedra

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 20
  • Posts: 131
    • View Profile
Re: Best practice NGUI and Asset bundle
« Reply #2 on: July 17, 2014, 04:08:47 AM »
I tried it and there is a something you need to know.
If you want to export scenes in asset bundles, you need to embed the UIAtlases your scene is using in the scene as prefabs.
If you want to export atlases, just export them as you will do with any asset.