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:
In contrast, LeanTween.move seems to work fine:
Any ideas to why moveX argument structure is wrong?
Answer by dentedpixel
Apr 28, 2013 at 10:09 PM
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:
I'll update LeanTween to support this for future versions!
Thanks for the solution! Would love to see the updated version since "optional" sounds like it's not required :)
Indeed, it will be included in the next update to LeanTween. You can get the latest update on Github as well, if you want it right away.
Great, thanks! Love the capabilities and performance of LT!
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
12 People are following this question.
Semicolon error using JS
[Solved]Next and Previous Images of Array
SmoothDamp not working?
Component added at runtime throws null reference
BCE0044 and UCE0001 Error Need Help!!!