using UnityEngine; using System.Collections; //----------------------------------------------------------------------------- // Copyright 2014-2020 RenderHeads Ltd. All rights reserved. //----------------------------------------------------------------------------- namespace RenderHeads.Media.AVProDeckLink { [RequireComponent(typeof(TextMesh))] public class TextMeshFrameCounter : MonoBehaviour { private TextMesh _text; void Start() { _text = this.GetComponent(); } void Update() { if (_text != null) { _text.text = Time.frameCount.ToString(); } } } }