Hello all,
I have the issue when handling zoom in/ out when using orthographic.
I following orthographic to add zoom camera for an object. But I’m stucking when handling it. It like image bellow:
I have added action scroll_up (to zoom in) & scroll_down (to zoom out). And handle it as:
=> I can’t zoom camera when scroll mouse. Who can help me with this issue?
Thanks.
britzl
August 17, 2019, 4:39pm
2
I don’t think scroll events have a pressed and released state.
I see the example of Orthographic using scroll events have a pressed and released state
I have modify on project example of Orthographic. It work normal, but I dont known the cause root why on my project it not work.
britzl
August 17, 2019, 5:50pm
5
Hmm, hard to tell… Start by adding a print(action_id) at top of on_input() to see all incoming events. Or add a breakpoint with the debugger. Do you get any scroll events at all?
I get scroll mouse events
britzl
August 18, 2019, 5:41am
7
No idea what’s wrong then. Zip the project and share it so I can take a look.
hungle
August 19, 2019, 9:14am
8
Did you change the projection to fixed instead of default?