Created
February 3, 2019 17:00
-
-
Save tsubaki/488318d58c57de295d5fff09fee8826a to your computer and use it in GitHub Desktop.
SetTextで文字を表示する場合
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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