Spriter2Unity icon indicating copy to clipboard operation
Spriter2Unity copied to clipboard

use of maps

Open undereyes opened this issue 9 years ago • 3 comments

hi! do you know who I can change a sprite at runtime? like weapons, hats, cloths...

undereyes avatar Mar 29 '15 10:03 undereyes

You have write a script that changes the texture of the SpriteRenderer on the child GameObject that holds the weapon/hat/etc.

Dharengo avatar Mar 29 '15 10:03 Dharengo

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.

undereyes avatar Mar 29 '15 13:03 undereyes

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!

mythgarr avatar Apr 03 '15 14:04 mythgarr