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.


Topics - vevusio

Pages: [1]
1
Showcase / 2d toolkit custom materials
« on: February 07, 2014, 09:54:17 pm »
so back a while when i just started with unity and c# and i bought 2d toolkit and was messing around with it, i was wondering about the lack of an option to specify materials for sprites on a per-instance/prefab basis

since then i've changed the impementation for my own project so i could color text and ui elements on-the-fly

setting materials on gameobjects/prefabs also allows you to change the materials on 2d toolkit sprite animations without having to create an extra sprite for every frame and then creating an extra animation clip with all the new sprite variants

als here's a youtube video where i explain how to use it

attached with this post is the demo scene with the handfull of 2d toolkit files that you have to replace in order for this to work (provided i did not forget something)
so you will have to supply your own tk2d install but replace some files with those in the zip

2
Support / different materials on sprite prefab
« on: November 02, 2013, 05:05:30 pm »
i want to create a prefab for a sprite, and then change the material on the game objects using that prefab (i.e. different shaders etc.)

currently when i set a different material on a game object using the sprite component in the inspector, for example change the default shader to litvertexblend, the material changes correctly, however upon clicking play the material is reverted to the original material associated with the sprite in the collection

ofc i could create 2 sprites with the same image with different materials, but then i would have to create x bounding boxes, x animations, etc. per x different materials

so how can i override the default material and make it stick?

Pages: [1]