Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mattsmee

Pages: [1]
1
Support / Re: Sprite Collection and AssetBundle
« on: April 29, 2012, 01:14:25 am »
Thanks, Unikron

Glad to know it's possible :) I'd have to rewrite the AssetBundle editor script and give it a try. Thank a lot!

2
Support / Re: Sprite Collection and AssetBundle
« on: April 28, 2012, 09:17:33 pm »
Thanks for the reply, unikron!

I'm not getting it.. Let's say you downloaded my game. 10 days later I decided to create new items as an assetbundle on my Mac and send it to the server. The game on your phone will download the assetbundle which contains the data file. How can your phone see the images if I just put the data file in assetbundle without any images (atlas)?

Some explanation would be much appreciated! Thanks!

3
Support / Re: Sprite Collection and AssetBundle
« on: April 28, 2012, 08:08:47 pm »
Thanks for the great support!

I've created ItemThumbs (a tk2dSpriteCollection) which it created a folder ItemThumbs_Data. Within ItemThumbs_Data there's the tk2dSpriteCollectionData with default name "data". This tk2dSpriteCollectionData is only 28KB while in this spritecollection I have 55 images. Did you say I only need this tk2dSpriteCollectionData and nothing else? I guess I'd need the atlas images as well?

The problem I have is, AssetBundle does not support directories (everything is flattened). I'm forced to put everything side by side. Would this break the dependencies stored in that "data" object?

Thanks again!

4
Support / Sprite Collection and AssetBundle
« on: April 28, 2012, 05:29:25 am »
Here my situation:
The game I'm working on support dynamic content download from our server. We put everything in AssetBundle (not Unity Package) then game would download it using WWW and use the content of that AssetBundle.

Question is, how do I put the Sprite Collection in an AssetBundle, and later be able to use the sprite collection programmatically like this:

AssetBundle ab = <reference to an assetbundle>;
sprite = GetComponent<tk2dSprite>();
sprite.collection = ab.Load ("human", typeof(tk2dSpriteCollectionData)) as tk2dSpriteCollectionData;

Thanks in advance!

Pages: [1]