I am using a camera rig component in Unity, then accessing it from the .ts file. My aim is to detach control from my active camera, temporarily, to prevent it from zooming in and out via touch control or mouse wheel. The problems:
- the camera.inputs.mouse.detachControl() does not compile
- I have tried a workaround with setting wheel percentage or delta percentage to 0 or close, to no effect.
- camera.detachControl() does nothing.
Probably I am doing something wrong; is there a complex playground for input handling?