# GetScriptableObjectsCount()

> Gets the number of ScriptableObject that the sprite references.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public uint GetScriptableObjectsCount()
```

### Returns

| Type                                                         | Description                                                                                                                               |
| ------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- |
| [uint](https://learn.microsoft.com/dotnet/api/system.uint32) | Returns the number of [ScriptableObject](/engine/6000.7/script-reference/unityengine/scriptableobject.md) that the sprite is referencing. |

### Remarks

Refer to [Sprite.GetScriptableObjects](/engine/6000.7/script-reference/unityengine/sprite/getscriptableobjects.md) for sample usage.
