17 lines
410 B
C#
17 lines
410 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
|
|
public class deletemelater : MonoBehaviour
|
|
{
|
|
public TextMeshPro text;
|
|
|
|
public int maxvisiblecharacters;
|
|
|
|
private void Update()
|
|
{
|
|
text.maxVisibleCharacters = maxvisiblecharacters;
|
|
MonoBehaviour.print($"max visible characters: {text.maxVisibleCharacters}");
|
|
MonoBehaviour.print($"text length: {text.text.Length}");
|
|
}
|
|
}
|