CrossPlatformInputManager.GetAxis("Horizontal") - Unity 2018.4.6

Need guidance.

I’m using Unity 2018.4.6 and when I use line: float xThrow = CrossPlatformInputManager.GetAxis(“Horizontal”), and then try to Print the result, nothing ever appears in the console. I ensured I clicked into the game window, but nothing.

CrossPlatformProblem

I’ve also tried to use: float xThrow = Input.GetAxis(“Horizontal”); but nothing ever shows in the console.

I’ve tried to go back to 2017, but ran into issues and would prefer to keep working in 2018.4 if possible.

1 Like

Hi,

By “nothing”, you mean that not even 0 gets logged into your console? If so, check if your Player script is assigned to an active game object in your Hierarchy. Did you click the Play button? Are the messages enabled in your Console?

I’m so lame! Thank you. I received errors previously so I assumed my messages were enabled.

Does that mean everything is working now? Or is there still a problem?


See also:

Yes, everything is working now. Thank you.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms