Skip to main content
added 83 characters in body; edited title
Source Link
Vin
  • 13
  • 4

How to Make a Grid-slice forSlice the external Spritesheet programmatically by using C# in Unity

I have a sprite sheet like this:

I would likeam using Unity Engine to make a 'grid-slice' for single spritesheetdevelope my game. But I would do it by coding. I meanlike 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 Imy game would have more than 5 heroes with 10 animations per hero for next updates in my game.

How to Make a Grid-slice for external Spritesheet programmatically

I have a sprite sheet like this:

I would like to make a 'grid-slice' for single spritesheet. But I would do it by coding. I mean load external spritesheet outside and slice it programmatically instead of using Sprite Editor in Unity. Because I have more than 5 heroes with 10 animations per hero.

How to Slice the external Spritesheet programmatically by using C# in Unity

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.

edited title
Link
Vin
  • 13
  • 4

How to Make a Grid-slice for external Spritesheet by programmatically

Integrated the image into the question. Removed irrelevant text.
Source Link
Vaillancourt
  • 16.4k
  • 17
  • 56
  • 61

I have a sprite sheet like this: https://i.sstatic.net/cSYrY.jpg

I would like to make a 'grid-slice' for single spritesheet. But I would do it by coding. I mean load external spritesheet outside and slice it programmatically instead of using Sprite Editor in Unity. Because I have more than 5 heroes with 10 animations per hero.

I am newbie and my english is not so good. I do really thank you and grateful to your help. Please teach me how to make a grid-slice of external sprite sheet. Please...

I have a sprite sheet like this: https://i.sstatic.net/cSYrY.jpg

I would like to make a 'grid-slice' for single spritesheet. But I would do it by coding. I mean load external spritesheet outside and slice it programmatically instead of using Sprite Editor in Unity. Because I have more than 5 heroes with 10 animations per hero.

I am newbie and my english is not so good. I do really thank you and grateful to your help. Please teach me how to make a grid-slice of external sprite sheet. Please...

I have a sprite sheet like this:

I would like to make a 'grid-slice' for single spritesheet. But I would do it by coding. I mean load external spritesheet outside and slice it programmatically instead of using Sprite Editor in Unity. Because I have more than 5 heroes with 10 animations per hero.

Source Link
Vin
  • 13
  • 4
Loading