ドキュメント

Unity Engine

Unity Engine

AddScriptableObject(ScriptableObject)

Adds a ScriptableObject reference to the sprite.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public bool AddScriptableObject(ScriptableObject obj)

Parameters

The ScriptableObject reference to add.

Returns

Type

Description

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

Remarks

Refer to Sprite.GetScriptableObjects for sample usage.