Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

Sprite.AddScriptableObject

Declaration

public bool AddScriptableObject(ScriptableObject obj);

Parameters

obj The ScriptableObject reference to add.

Returns

bool Returns true if the reference is added. Returns false if the sprite is already referencing the ScriptableObject .

Description

Adds a ScriptableObject reference to the sprite.

Refer to Sprite.GetScriptableObjects for sample usage.