Skip to content

Instantly share code, notes, and snippets.

@tsubaki
Created February 3, 2019 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsubaki/488318d58c57de295d5fff09fee8826a to your computer and use it in GitHub Desktop.
Save tsubaki/488318d58c57de295d5fff09fee8826a to your computer and use it in GitHub Desktop.
SetTextで文字を表示する場合
using UnityEngine;
using TMPro;
public class ShowCharacter3 : MonoBehaviour
{
[SerializeField]
TextMeshProUGUI label;
public int Count;
void Update()
{
var value = Count;
label.SetText("<size=50%>value</size> {0}", Count);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment