Change render pipeline, recreated project !!!!
This commit is contained in:
@@ -1,23 +1,22 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
public class ToolTipTrigger : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
|
||||
public class ToolTipTrigger : MonoBehaviour
|
||||
{
|
||||
private static LTDescr delay;
|
||||
[SerializeField] private string _content;
|
||||
[SerializeField] private string _header;
|
||||
//private static LTDescr delay;
|
||||
//[SerializeField] private string _content;
|
||||
//[SerializeField] private string _header;
|
||||
|
||||
public void OnPointerEnter(PointerEventData eventData)
|
||||
{
|
||||
delay = LeanTween.delayedCall(0.5f, () =>
|
||||
{
|
||||
ToolTipSystem.Show(_content, _header);
|
||||
});
|
||||
}
|
||||
//public void OnPointerEnter(PointerEventData eventData)
|
||||
//{
|
||||
// delay = LeanTween.delayedCall(0.5f, () =>
|
||||
// {
|
||||
// ToolTipSystem.Show(_content, _header);
|
||||
// });
|
||||
//}
|
||||
|
||||
public void OnPointerExit(PointerEventData eventData)
|
||||
{
|
||||
LeanTween.cancel(delay.uniqueId);
|
||||
ToolTipSystem.Hide();
|
||||
}
|
||||
//public void OnPointerExit(PointerEventData eventData)
|
||||
//{
|
||||
// LeanTween.cancel(delay.uniqueId);
|
||||
// ToolTipSystem.Hide();
|
||||
//}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user