1
NGUI 3 Support / Re: Change UIAtlas References from downloaded bundle
« on: May 28, 2014, 03:49:22 AM »
finally I found the solution.
- //The download is done, instantiate the asset from the bundle
- GameObject obj = asset.InstantiateAsset();
- gui_pack_001_link = Resources.Load("AtlasReferences/" + "gui_pack_001_link" , typeof(UIAtlas)) as UIAtlas;
- gui_pack_001_link.replacement = obj.GetComponent<UIAtlas>();
- DontDestroyOnLoad(obj);
