- In the MagicPixelator folder we can find 3 subfolders, 2 scripts and 1 readme.txt file. The scripts are the necessary code to make the Magic Pixelator work. In the readme.txt file you will see the version of the Magic Pixelator you are using and some info about the author.
- In the folder Editor you can find the necessary scripts to make the Magic Pixelator inspector work. Here is also a script to customize the import settings to create the sprite sheet png.
- In the ExampleScene folder you can find the necessary files to see the Magic Pixelator working. Here you can find a 2D character animated using skeletal animation style. Using the Magic Pixelator we will be able to get spritesheets in pixelart style.
- In the Prefab folder we can see 2 prefabs: 2DcharExample-> Just a prefab with the 2D character animated for the example scene. MagicPixelatorPrefab-> This is the important prefab. Drag and drop this prefab to the scene in order to start working with the Magic Pixelator.
First of all, drag and drop the MagicPixelatorPrefab to the scene. It is recommended to work with the scene in 2D mode. It will make the process easier, but if you want to do it in 3D mode, there is no problem.
Place the character in the center of the square seen in the scene window when selecting the MagicPixelatorPrefab. It is also very recommended to disable any other cameras in the scene.
MAGIC PIXELATOR CONFIGURATION
First of all, drag and drop the MagicPixelatorPrefab to the scene. It is recommended to work with the scene in 2D mode. It will make the process easier, but if you want to do it in 3D mode, there is no problem.
Place the character in the center of the square seen in the scene window when selecting the MagicPixelatorPrefab. It is also very recommended to disable any other cameras in the scene.
In the inspector, you can see a group of parameters you can configure depending on your needs using the Magic Pixelator.
- Mp Sprite Size Width: Width in pixels of each sprite/frame.
- Mp Sprite Size Height: Height in pixels of each sprite/frame.
- Mp Sprite Sheet Columns: Number of columns of the new SpriteSheet.
- Sprite Name: Name of the file that will be created in the Assets folder.
- Animation Time: Time of the animation to record. To check the time of the animation you want to record and pixelate, just select the animation in the project folder, and see the Length of the animation:
- New Animation Frames: The number of frames you want for the spritesheet animation.
- Mp Color Palette: If you want to use an specific color palette, set the number of colors in the array, and chose each color you want for your spritesheet. The magic pixelator will paint the closest color of your palette from the real model.
- Magic Pixelator Preview: You can see a small preview of the sprite you will generate. Notice that the color palette is not applied in the preview image.
LET THE MAGIC BEGINS
Be sure about wich animation is set to be played by default in the animator controller.
In case you are using the legacy system for animations you have to check that the animation will play automatically:
After this steps, just push the Start Magic button and the Magic Pixelator will do the rest. Once the process is finished, you will see a message box.