Quantcast
Channel: Questions in topic: "webgl"
Viewing all articles
Browse latest Browse all 2390

WebGl Mouse Controlls and Browser Behavior

$
0
0
Hi im building an RTS like Game and i want to release it to WebGL. It should be possible to controll the camera in the game like you controll the camera in the unity-editor scene-view. in the unity editor my script works just fine, but the browsers behave all different. Camera Controlls feel slow and heavy. `Input.GetAxis("Mouse X")` - Chrome: -1 < x < 1 - Firefox: if you are fast enough you can get higher than 15 - i dont think it grows linear - Unity Editor: similar to Firefox, values up to 12 can be reached (maybe higher) - grows more linear than Firefox (i think) but not that strong Scrolling (zooming in my game) is the other extreme either full in or full out `Input.GetAxis("Mouse ScrollWheel")` - Chrome and Firefox: 0.5 per tick - Unity Editor: 0.1 per tick ____ Unity Personal 5.2.1f1

Viewing all articles
Browse latest Browse all 2390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>