# SpriteDataAccessExtensions

> A list of methods designed for reading and writing to the rich internal data of a Sprite.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.U2D](/engine/6000.5/script-reference/unityengine/u2d.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static class SpriteDataAccessExtensions
```

## Remarks

It is now possible to read and write to all the channels of the VertexAttribute, BoneWeight, BindPose and the SpriteBones of a Sprite.

## Static Methods

| Method                                                                                                                 | Description                                                                                                        |
| ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| [GetBindPoses](/engine/6000.5/script-reference/unityengine/u2d/spritedataaccessextensions/getbindposes.md)             | Returns an array of BindPoses.                                                                                     |
| [GetBones](/engine/6000.5/script-reference/unityengine/u2d/spritedataaccessextensions/getbones.md)                     | Returns a list of SpriteBone in this Sprite.                                                                       |
| [GetIndices](/engine/6000.5/script-reference/unityengine/u2d/spritedataaccessextensions/getindices.md)                 | Returns a list of indices. This is the same as Sprite.triangle.                                                    |
| [GetVertexAttribute](/engine/6000.5/script-reference/unityengine/u2d/spritedataaccessextensions/getvertexattribute.md) | Retrieves a strided accessor to the internal vertex attributes.                                                    |
| [GetVertexCount](/engine/6000.5/script-reference/unityengine/u2d/spritedataaccessextensions/getvertexcount.md)         | Returns the number of vertices in this Sprite.                                                                     |
| [HasVertexAttribute](/engine/6000.5/script-reference/unityengine/u2d/spritedataaccessextensions/hasvertexattribute.md) | Checks if a specific channel exists for this Sprite.                                                               |
| [SetBindPoses](/engine/6000.5/script-reference/unityengine/u2d/spritedataaccessextensions/setbindposes.md)             | Sets the bind poses for this Sprite.                                                                               |
| [SetBones](/engine/6000.5/script-reference/unityengine/u2d/spritedataaccessextensions/setbones.md)                     | Sets the SpriteBones for this Sprite.                                                                              |
| [SetIndices](/engine/6000.5/script-reference/unityengine/u2d/spritedataaccessextensions/setindices.md)                 | Set the indices for this Sprite. This is the same as Sprite.triangle.                                              |
| [SetVertexAttribute](/engine/6000.5/script-reference/unityengine/u2d/spritedataaccessextensions/setvertexattribute.md) | Sets a specific channel of the VertexAttribute.                                                                    |
| [SetVertexCount](/engine/6000.5/script-reference/unityengine/u2d/spritedataaccessextensions/setvertexcount.md)         | Sets the vertex count. This resizes the internal buffer. It also preserves any configurations of VertexAttributes. |
