Version: 2023.2

Sprite.AddScriptableObject

切换到手册
public bool AddScriptableObject (ScriptableObject obj);

参数

obj The ScriptableObject reference to add.

返回

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

描述

Adds a ScriptableObject reference to the sprite.

Refer to Sprite.GetScriptableObjects for sample usage.