mirror of
https://github.com/maxartz15/TextureCombiner.git
synced 2024-11-13 00:35:30 +01:00
1165a4e4a8
P4 -> GitHub sync.
21 lines
484 B
C#
21 lines
484 B
C#
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
|
|
namespace TextureCombiner
|
|
{
|
|
public class HoverInfo : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
|
|
{
|
|
[SerializeField, Multiline]
|
|
private string m_text = "";
|
|
|
|
public void OnPointerEnter(PointerEventData eventData)
|
|
{
|
|
HoverInfoBox.s_hoverInfoBox.Show(m_text, eventData.position);
|
|
}
|
|
|
|
public void OnPointerExit(PointerEventData eventData)
|
|
{
|
|
HoverInfoBox.s_hoverInfoBox.Hide();
|
|
}
|
|
}
|
|
} |