if it is for the default scene camera that you fly around the world with, then you can either:
1) go to the top right of the viewport an in camera icon drop down goto "Camera Mode > Fixed".
2) When the game is initialised, use this command:
- Code: Select all
camera.setCameraMode("Fixed");
But the best way would be to add a "2D Fixed camera" from the RMB + context menu of the scene and set it as the active camera as tattie suggested. This will then overwrite the scene camera and allow full customization, and is fully programmable through lua.
Hope this helps