using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
using UnityEngine.UI;
using UnityEngine.EventSystems;
public class addSym : MonoBehaviour
{
public Text text;
string tempText;
private void Awake()
{
text = GetComponent<Text>();
tempText = text.text;
}
private void Update()
{
if (EventSystem.current.IsPointerOverGameObject())
{
text.text = "> " + tempText + " <";
}
else
{
text.text = tempText;
}
}
}
вешай на текст