Version: Unity 6.3 LTS (6000.3)
Language : English
Add placeholder sprites
Cut out sprites from a texture

Import a sprite or spritesheet texture

Import an image and use it as a spriteA 2D graphic objects. If you are used to working in 3D, Sprites are essentially just standard textures but there are special techniques for combining and managing sprite textures for efficiency and convenience during development. More info
See in Glossary
or set of sprites in a 2D sceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary
.

To use an imported image as one or more sprites, set its texture type to Sprite (2D and UI). Follow these steps:

  1. Make sure the 2D Sprite package is installed in your project. For more information, refer to set up your project for 2D games.
  2. Import your sprite image or spritesheet. For example, drag a spritesheet .png file into the Project window.
  3. Select the imported image in the Project window.
  4. In the InspectorA Unity window that displays information about the currently selected GameObject, asset or project settings, allowing you to inspect and edit the values. More info
    See in Glossary
    window, set Texture Type to Sprite (2D and UI).
  5. Select Apply.

Note: In a 2D project, Unity automatically sets Texture Type to Sprite (2D and UI) when you import an image.

Divide the texture into sprites

The Sprite Mode property of the texture determines whether Unity creates one sprite or multiple sprites from the texture.

For each sprite, Unity creates a sprite asset () as a child of the texture in the Project window.

Set Sprite Mode to the following:

  • Single to use the texture as one sprite, either using the whole image or part of the image.
  • Multiple to divide the texture into multiple sprites, for example if the texture is a spritesheet.

To set the shape and size of sprites, refer to Create sprites from a texture.

Add a sprite to a scene

To add a sprite to a scene, drag the sprite asset () from the Project window into the Scene window or Hierarchy window.

Unity creates a GameObjectThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info
See in Glossary
with a Sprite RendererA component that lets you display images as Sprites for use in both 2D and 3D scenes. More info
See in Glossary
component. The component renders the sprite and controls how it appears in the scene.

Add a sprite to an existing GameObject

To add a sprite to an existing GameObject, follow these steps:

  1. Select the GameObject in the Scene or Hierarchy window.
  2. In the Inspector window, select Add Component.
  3. Select Rendering > Sprite Renderer.
  4. In the Sprite Renderer component, set the Sprite property to the sprite you want to render.

Additional resources

Add placeholder sprites
Cut out sprites from a texture