Files
textdecalURP/Assets/TextDecalRuntimeInit.cs
Kirill Chikalin 648c1a28bd
Some checks failed
build / Build for Android (push) Has been cancelled
update sample
2025-04-25 20:23:34 +03:00

19 lines
451 B
C#

using space.chikalin.textdecal;
using TMPro;
using UnityEngine;
public class TextDecalRuntimeInit : MonoBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
gameObject.AddComponent<TextDecal>();
}
// Update is called once per frame
void Update()
{
gameObject.GetComponent<TMP_Text>().text = $"{Time.timeSinceLevelLoad:0.000}";
}
}