1
\$\begingroup\$

I have a sprite sheet like this:

I am using Unity Engine to develope my game. I would like to load this external spritesheet outside and slice it as Grid type programmatically instead of using Sprite Editor in Unity. I would like to find a way to do it by using C# scripting. Because my game would have more than 5 heroes with 10 animations per hero for next updates in my game.

\$\endgroup\$
1
\$\begingroup\$

You can do this if you use Sprite.Create

You would typically use this along with a Sprite Atlas, as setting the Rect properly without one would be pretty tedious.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.