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 site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
12 People are following this question.
Error BCE0005: Unknown identifier: 'GetAxis'.
Assets/Scripts/PlayerController.cs(22,25): error CS8025: Parsing error
Quick Blender to Unity Question
C# yield error
Camera's wont change