- Home /
Joystick.cs Invisible
Hello, http://wiki.unity3d.com/index.php?title=Joystick This code isn't working on my game. I have a GUI camera etc, but it is invisible + cannot click. What is the problem?
Long story:
I was using the Joystick.js . It was working. But i needed to switch C#. My joysticks script was "Joystick.js", other script was "x.cs". I add this on my "x.cs":
public Joystick x
Then there is a compiler error: Unknown type or namespace.
I solved it with Joystick.cs (http://answers.unity3d.com/questions/518908/joystickcs-invisible.html).
But Joystick.cs isn't working, it is invisible, it is useless. Please help!
Answer by DaveA · Aug 19, 2013 at 01:28 PM
I usually rename my .js files to .js_ or something like that to make sure they are not compiled. Make sure your .cs file has the same name as your class. ie: Joystick.cs contains class Joystick. If you called it x.cs, you'll get this error.
I deleted the JS version. And i found the main problem: Hello, I'm using Joystick.cs (http://wiki.unity3d.com/index.php?title=Joystick) script. But when i hit play, it changes the values (But the Joystick.js doesn't changes) of the GUI Texture to 0. What should i do?
Your answer
Follow this Question
Related Questions
Cant put material of Unity on mesh created with C4D 1 Answer
Nav Mesh Agents Not working 0 Answers
Imported Objects not solid (Mesh Collider) 2 Answers
Simple Object Pick-Up 2 Answers
How to change a mesh using a script? 1 Answer