keyboard Inputs are not working in webgl?
Hey i know this question is asked many times but i searched this issue everywhere and now this the last i can do to post the query. i am working on car racing game. now problem with me in webgl is i am not able to give the input via keyboard in unity like my car is moving on horizontal axis but that not working in webgl. Nor in chrome nor in mozilla please help . Please moderator clear this else give me working solution. i am using unity5.2.1 ? do i need to update unity please helP!!! Mouse click is working not input from keyboard.
Answer by Exceptione · Mar 04, 2016 at 11:42 AM
Here you are! Came across the same problem a while back.
http://answers.unity3d.com/questions/1032916/webgl-canvaskeyboard-focus.html
Answer by vfxjex · Aug 30, 2016 at 01:58 PM
probably your using Platform Dependent Compilation
if UNITY_EDITOR
you should have also add