I have some ways to solve this problem but its too troublesome.
Hope you guys can provide me with any solution.
Thanks in advance.
public void OnPointerClick(PointerEventData eventData)
{
mouse_touching = false;
}
public void OnPointerEnter(PointerEventData eventData)
{
mouse_in_button = true;
}
public void OnPointerExit(PointerEventData eventData)
{
mouse_in_button = false;
}
public void OnPointerDown(PointerEventData eventData)
{
mouse_touching = true;
}
void Update () {
if(mouse_touching ==true||mouse_in_button == true)
{
holding();
}
}
void holding()
{
*//HOW CAN I GET --PointerEventData eventData.positon--*
}
↧