Version: Unity 6.3 LTS (6000.3)
Language : English
Sprite Editor Data Provider API
Sprite Editor tab reference

Sprite asset reference

Switch to Scripting

Explore the properties 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
asset. Unity displays the properties 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 when you select a sprite asset in the Project window.

For more information, refer to Create sprites from a texture.

Property Description
Name Sets the name of the sprite.
Pivot Sets the position of the point Unity uses for transformations such as rotation. The values are normalized, so they range from 0, 0 at the bottom-left of the sprite to 1, 1 at the top-right of the sprite.
Border Sets the size of the border Unity uses for 9-slicing. The properties are:
  • L: The width of the left border in pixels.
  • R: The width of the right border in pixels.
  • T: The height of the top border in pixels.
  • B: The height of the bottom border in pixels.

Additional resources

Sprite Editor Data Provider API
Sprite Editor tab reference