# SpriteEditorExtension

> Sprite extension methods that are accessible in Editor only.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.U2D](/engine/6000.7/script-reference/unityeditor/u2d.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static class SpriteEditorExtension
```

## Static Methods

| Method                                                                                              | Description                                                                                                                             |
| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| [GetSpriteID](/engine/6000.7/script-reference/unityeditor/u2d/spriteeditorextension/getspriteid.md) | Gets the Sprite's GUID.                                                                                                                 |
| [SetSpriteID](/engine/6000.7/script-reference/unityeditor/u2d/spriteeditorextension/setspriteid.md) | Sets a [Sprite](/engine/6000.7/script-reference/unityengine/sprite.md)'s Global Unique Identifier (GUID) for easy identification later. |
