Need help GamePad Consol error

Asked By 10 points N/A Posted on -
qa-featured

Hello,

I bought new consol to play my video games but I put a software disk came with controller then I received an error message during installation. Can you fix the bug? Please send me instructions as soon as possible. Thanks for help.

Assets/Scripts/SimplePlatformController.cs(51,111): error CS1729: 

SHARE
Answered By 590495 points N/A #184668

Need help GamePad Consol error

qa-featured

Here’s an example of a code using Unity that produces the same error. In this code, the user is trying to recalibrate the accelerometer in Android. But instead of successfully recalibrating the accelerometer, it produces the error “UnityEngine.Vector3' does not contain a constructor that takes `1' arguments”. In this code, he uses Vector3 instead of Vector2 in your image.

The error is in line 22 which reads “Vector3 dir = new Vector3 (getAccelerometer(Input.acceleration));”. The solution, instead of writing “Vector3 dir = new Vector3 (getAccelerometer(Input.acceleration));”, it should be like this: “Vector3 dir = getAccelerometer(Input.acceleration);”. It should fix the issue on Vector2 in your case if you are also coding something. To recalibrate properly, you need to access Android level directly.

If, on the other hand, you are not coding and you just encountered the error after installing the software for your game controller, check the system requirements of the application you installed. You might be installing an incompatible application on your computer. Go to the controller’s manufacturer’s website and see if they have a version that supports your operating system.

Related Questions