LeanTween.moveX argument list error

When I try to use LeanTween based on the structure of their argument list for moveX based on their documentation, I get an error “No appropriate version of ‘LeanTween.moveX’ for the argument list ‘(UnityEngine.GameObject, float, float)’ was found.”

This is the code that gives the error:

LeanTween.moveX( GameObject.Find("buttonA"),7.0,1.0);

In contrast, LeanTween.move seems to work fine:

LeanTween.move( GameObject.Find("buttonA"),Vector3(1,1,1),1);

Any ideas to why moveX argument structure is wrong?

Hi UnityGal,
Most methods do support leaving off the optional parameter on the end, but it appears that moveX does not, so if you just pass it an empty array or hashtable for that argument it should work fine:

LeanTween.moveX( GameObject.Find("buttonA"),7.0,1.0,[]);

I’ll update LeanTween to support this for future versions!