Spriter2Unity
Spriter2Unity copied to clipboard
use of maps
hi! do you know who I can change a sprite at runtime? like weapons, hats, cloths...
You have write a script that changes the texture of the SpriteRenderer on the child GameObject that holds the weapon/hat/etc.
I do this, but the "shape" of the sprite don't change and new sizes don't apply. What I made bad?
El 29/3/2015, a las 12:37, Dharengo [email protected] escribió:
You have write a script that changes the texture of the SpriteRenderer on the component that holds the weapon/hat/etc.
— Reply to this email directly or view it on GitHub.
The initial version of Spriter2Unity supported a separate 'Map' object that would be brought over directly from the Spriter animation. A pull request removed that functionality in favor of directly setting the sprite (https://github.com/mythgarr/Spriter2Unity/pull/8/files).
Unfortunately I'm still not in a position to contribute anything more than advice - wish I could help more!