This version of Unity is unsupported.

Sprite.SetScriptableObjectAt

Declaration

public bool SetScriptableObjectAt(ScriptableObject obj, uint i);

Parameters

obj The new ScriptableObject to reference.
i The index of the ScriptableObject reference to be replaced.

Returns

bool Returns true if the reference is replaced. Returns false otherwise.

Description

Replace the ScriptableObject reference from the sprite.