1
Support / Re: Change TileMap graphics dynamically
« on: January 01, 2014, 12:30:58 am »
Thank you, but how would I go about that?
I've tried this:
public GameObject summer; (this is the sprite collection)
public Texture fallTexture; (this is the texture in the data folder)
summer.GetComponent<tk2dSpriteCollectionData>().textures[0] = fallTexture;
This doesn't do anything... Sorry for being a complete newbie.
I've tried this:
public GameObject summer; (this is the sprite collection)
public Texture fallTexture; (this is the texture in the data folder)
summer.GetComponent<tk2dSpriteCollectionData>().textures[0] = fallTexture;
This doesn't do anything... Sorry for being a complete newbie.