Pressing spacebar in Text Input field moves the camera in the scene

Hello,

I have a text input field which is inside a panel which is inside a canvas

    Canvas>Panel>Text Inputfield

Every time I type text inside the input field and press space bar, it moves the camera up which is behaviour that space bar provides when navigating the map.

How can I stop it doing this at runtime, when I type text into the field?

Thanks

Hi @zardtomcat,

The CesiumCameraController component has a Enable Movement property that you can toggle as needed. If this property is false, then the camera movement should be disabled, allowing you to type into the input field without moving.

Let us know how it goes!

Hi @janine, that worked.
Thank you.

1 Like