# SetScriptableObjectAt(ScriptableObject, uint)

> Replace the ScriptableObject reference from the sprite.

## Definition

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

```csharp
public bool SetScriptableObjectAt(ScriptableObject obj, uint i)
```

### Parameters

**** (\[ScriptableObject]\(/engine/6000.5/script-reference/unityengine/scriptableobject)): The new [ScriptableObject](/engine/6000.5/script-reference/unityengine/scriptableobject.md) to reference.**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): The index of the [ScriptableObject](/engine/6000.5/script-reference/unityengine/scriptableobject.md) reference to be replaced.

### Returns

| Type                                                          | Description                                                         |
| ------------------------------------------------------------- | ------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the reference is replaced. Returns false otherwise. |
