This page is dedicated to common issues surrounding code. If you are experiencing an issue that does not relate to code consider looking at one of the other pages in this section, which are also listed here.
A lot of times issues can be fixed by simply updating your plugin to the latest version, please make sure to check you are on the latest release version before looking further into this section. More info on how to do this here
This could be due to if you are trying to using the Luna API from within another namespace, then the IDE cannot resolve / find the Luna functions.
- At the top of the script add the 'using Luna.Unity' directive and remove the 'Luna.Unity' part of any function call. (Example of this below)
Above you can see that the SDK function is the one being imported into Unity & acts like a class which contains the functions. So all functions used from in Unity needs to be added as nested functions inside the
send is called from Unity & so has to be included inside the sdk function using the
this operator. It cannot be outside the sdk function.
This is likely due to a bug on our end, we are aware of this and are working on a fix!
- Use a coroutine and the
WaitForSecondsfunction as a workaround.
This is likely due to a difference between how Unity and Luna handles this behaviour, and/or because of issues that arise when translating from mouse to touch.
- Use Touch.Position ( Unity - Scripting API: Touch.position )