Label.SetSpriteAsset
Declaration#
public virtual void SetSpriteAsset(TMP_SpriteAsset asset)Parameters#
| Name | Description |
|---|---|
| asset | Asset to set |
Description#
Set the sprite asset for the label
Usage#
Example
using NullSave.GDTK;using TMPro;using UnityEngine;
public class CodeSample : MonoBehaviour{
public void ExampleMethod(Label target, TMP_SpriteAsset other) { target.SetSpriteAsset(other); }
}