- Home /
WebGL: Scroll Camera
I've searched and could not find any answer to my simple question:
I want to have the Camera scroll in and out on mousescroll in my WebGL-Build.
if (Input.GetAxis("Mouse ScrollWheel") > 0f) // forward
{
Camera.main.orthographicSize++;
}
else if (Input.GetAxis("Mouse ScrollWheel") < 0f) // backwards
{
Camera.main.orthographicSize--;
}
This doesn't do anything. Any hints on what does the trick?
Greetz
Comment
Your answer
Follow this Question
Related Questions
ExternalCall in WebGL not working 0 Answers
blend4web is better than unity WebGl ? 1 Answer
Camera Boundry when changing orthographic size 0 Answers
new project aren't set up right 1 Answer
Color detection in Camera 0 Answers