Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Little Big Monkey

Pages: [1]
1
DOTween & DOTween Pro / WebGL and Exceptions
« on: April 26, 2016, 12:26:32 PM »
Hello,

I'm building a game for WebGL and have some problem with DoTween.
Typically if you use code like this :

Code: [Select]
public class BaseButton : MonoBehaviour, IPointerDownHandler, IPointerUpHandler, IPointerClickHandler
{
    public void OnPointerDown(PointerEventData eventData)
    {
        transform.DOScale(1.05f, 0.25f).SetEase(Ease.OutQuad);
    }

    public void OnPointerUp(PointerEventData eventData)
    {
        transform.DOScale(1.0f, 0.25f).SetEase(Ease.OutQuad);
    }

    public void OnPointerClick(PointerEventData eventData)
    {
        SceneManager.LoadScene("TEST");
    }
}

The app will crash if you set exception to "None" and it'll run if you set exception to "Explicitly Thrown".
I assume you use some try-catch to manage those case and as they are disable when exception is set to "None", that's why it crash ..

So, do you have a work around, or do we have to enable exception to use DoTween on WebGL ?

Pages: [1]