

You’ll notice that when you have a rectangle selected, a panel appears in the bottom right of the window: Having isolated an element, you can add another by dragging a new rectangle in a separate part of the image.

You can drag the handles or the edges of the rectangle to resize it around a specific element. If you click on the image, you will see a rectangular selection area appear with handles in the corners. The most direct way to use the editor is to identify the elements manually. Finally, the Apply and Revert buttons allow you to keep or discard any changes you have made. The most important control is the Slice menu at the top left, which gives you options for separating the elements of the image automatically. Moving the slider to the left reduces the resolution of the sprite texture. The right-most slider controls the pixelation (mipmap) of the texure. The slider at the top right controls the zoom, while the color bar button to its left chooses whether you view the image itself or its alpha levels. Fig 3: Sprite EditorĪlong with the composite image, you will see a number of controls in the bar at the top of the window. Note: Set the Sprite Mode to Multiple in the Texture Import Inspector if your image has several elements. Fig 1: Project View Fig 2: Texture Import Inspector with Sprite Editor button Note: You can only see the Sprite Editor button if the Texture Type on the image you have selected is set to Sprite (2D and UI). Note that you can’t edit a sprite which is in the Scene View.Ĭlick on the Sprite Editor button in the Texture Import Inspector (Fig 2: Texture Import Inspector) and the Sprite Editor displays (Fig 3: Sprite Editor). Select the 2D image you want to edit from the Project View (Fig 1: Project View). (See Fig 2: Texture Import Inspector… below.) Opening the Sprite Editor Sprite textures with multiple elements need the Sprite Mode to be set to Multiple in the Inpsector. For information on importing and setting up sprites, see Sprites. Make sure the graphic you want to edit has its Texture Type set to Sprite (2D and UI). Unity makes it easy to extract elements from a composite image by providing a Sprite Editor for the purpose. For example, the image could contain component parts of a single character, as with a car whose wheels move independently of the body. Sometimes a sprite texture contains just a single graphic element but it is often more convenient to combine several related graphics together into a single image.
