T
T
Taisu Black2020-05-16 15:16:36
2D
Taisu Black, 2020-05-16 15:16:36

Trouble importing joystick pack into Unity?

5ebfdfec053e1354536684.pngHello everyone, there was an error while importing the joystick pack into unity, the error code is: There are inconsistent line endings in the 'Assets/Joystick Pack/Scripts/Base/Joystick.cs' script. Some are Mac OS X (UNIX) and some are Windows.
This might lead to incorrect line numbers in stacktraces and compiler errors. Many text editors can fix this using Convert Line Endings menu commands. Assets/Joystick Pack/Scripts/Base/Joystick.cs(145,95): error CS1503: Argument 3: cannot convert from 'Camera' to 'UnityEngine.Camera
' would you please help! Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mygazztop, 2020-05-17
@UnityEngineDanil

It's simple, you need to rename the Camera script to Camera1 (for example). Don't forget to change the class name in the script as well. Next, you need to rename the Camera to Camera1 in the Joystic script

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question