Skip to main content

UILabel_UnityText.SetSpriteAsset

Declaration#

public virtual void SetSpriteAsset(TMP_SpriteAsset asset)

Parameters#

NameDescription
assetAsset 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(UILabel_TMP target, TMP_SpriteAsset other)    {        target.SetSpriteAsset(other);    }
}