AddScriptableObject(ScriptableObject)
Adds a ScriptableObject reference to the sprite.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public bool AddScriptableObject(ScriptableObject obj)
Parameters
The ScriptableObject reference to add.
Returns
Type | Description |
|---|---|
| bool | Returns true if the reference is added. Returns false if the sprite is already referencing the ScriptableObject . |
Remarks
Refer to Sprite.GetScriptableObjects for sample usage.