O'Reilly logo

Learning Unity iOS Game Development by Kyle Langley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the character controller

These settings allow the sprite sheet to be animated, have the same detail as the normal image, and keep the max file size down by limiting the max texture sheet size to 1024 pixels.

Next, we need to update the sprite sheet so that it knows the boundaries for each of the animation frames in the sheet. To perform this, in Inspector, click on Sprite Editor.

This is designed to help us break the image based on the X and Y values we want to. For example, if each frame of the animation is 32 pixels wide on X and 32 pixels wide on Y, we can use the Sprite Editor to cut the image into smaller images based on that size.

  1. In Sprite Editor, click on Slice in the top-left corner of the window.
  2. Select Type as Grid.
  3. Select Pixel ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required