Version: Unity 6.0 (6000.0)
Language : English
Set the sort point of a sprite
Placeholder sprites

Sprite Renderer component reference

Adjust the color of 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
, orientation of the sprite texture, and other properties to affect how a sprite is rendered.

Property Description
Sprite Set the texture the sprite 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
renders in the 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 change the set sprite, select the Sprite picker () to open a window that displays available assets.
Open Sprite Editor Select this button to open the currently set sprite texture in the Sprite Editor window.
Color Select a color for the sprite, which tints the sprite’s texture with the selected color.
Flip Activate an axis to flip the sprite texture along that axis. This won’t move or mirror the GameObject’s location.
Draw Mode Select how Unity renders and scales the sprite by selecting from the following options:
  • Simple: This is the default mode. This scales the entire sprite uniformly.
  • Sliced: Select this mode if the sprite is 9-sliced, and have it scale according to 9-slice scaling behavior. Use the Size property to enter the sprite’s new Width and Height dimensions in Unity units.
  • Tiled: Select this mode if the sprite is 9-sliced. This mode causes the middle of the 9-Sliced sprite to tile instead of scale when its dimensions change. Refer to this mode options to adjust how this mode renders the sprite.
Mask Interaction Set how the Sprite Renderer behaves when interacting with a Sprite MaskA texture which defines which areas of an underlying image to reveal or hide. More info
See in Glossary
.
  • None: Renders without interacting with Sprite masks.
  • Visible Inside Mask: Renders only the parts of the mesh that overlap the Sprite mask.
  • Visible Outside Mask: Renders only the parts of the mesh that don’t overlap the Sprite mask.
Sprite Sort Point Choose which point on your sprite Unity should use to calculate its distance from the camera. This determines the sprite’s render order during sorting. Refer to Sprite Sort Point for more details.
  • Center: Unity uses the center of the sprite to calculate the distance between it and the camera.
  • Pivot: Unity uses the set Pivot position on the sprite to calculate the distance between it and the camera. You can edit the sprite’s Pivot position in the Sprite Editor.
Material Select the material for the sprite. The default material is Sprite-Lit-Default. Select the Material picker (⊙) to open a window that displays available materials.

Draw Mode - Tiled properties

The following properties are available when you set the Draw Mode to Tiled.

Properties Description
Size Enter the sprite’s new Width and Height dimensions in Unity unitsThe unit size used in Unity projects. By default, 1 Unity unit is 1 meter. To use a different scale, set the Scale Factor in the Import Settings when importing assets.
See in Glossary
.
Tile Mode Select the tiling behavior of the sprite:
  • Continuous: This is the default behavior. Select this to have the tiles tile evenly when the sprite dimensions change.
  • Adaptive: Select this mode to have the sprite texture stretch when its dimensions change, similar to Simple mode. When the scale of the changed dimensions meets the Stretch Value, the middle slice of the sprite begins to tile. Use the Stretch Value slider to set the value between 0 and 1. The max value is 1, which is double the original sprite’s scale.

Additional Settings

Property Description
Sorting Layer Set the Sorting Layer of the sprite, which controls its priority during rendering. Select an existing Sorting Layer from the dropdown box, or create a new Sorting Layer.
  • Default: The default layer the sprite is on.
  • Add Sorting Layer: Select this to create a new sorting layer for the selected sprite.
Order in Layer Set the render priority of the sprite within its Sorting Layer. Lower-numbered sprites are rendered first, with higher-numbered sprites overlapping those below.
Rendering Layer MaskA value defining which layers to include or exclude from an operation, such as rendering, collision or your own code. More info
See in Glossary
Selects which rendering layers this GameObject belongs to.

Additional resources

Set the sort point of a sprite
Placeholder sprites