Skip to content

Commit 3a209c8

Browse files
authored
Add note about default camera positioning
1 parent cc5a988 commit 3a209c8

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

docs/gdevelop5/interface/scene-editor/layers-and-cameras.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,19 @@ In the layers editor, you can create a new layer by clicking the **Add new layer
3030

3131
![](/gdevelop5/interface/scene-editor/layers-and-cameras/pasted/20230310-194242.png)
3232

33+
### Layer centering according to the game window
34+
35+
Edit a layer properties to access multiple options regarding a layer. You can notably choose if:
36+
37+
* The camera of the layer **stays centered** when the game window is resized. This is usually useful for game content or menus
38+
* The **top-left corner of the camera stays fixed** when the game window is resized. This is usually useful for UI or content that can expand.
39+
40+
![](./layers-and-cameras/layer-camera-positioning.png)
41+
42+
!!! note
43+
44+
This camera behavior is only useful when you're not using events to move the camera. If you center a camera on an object for example, this option won't have any impact.
45+
3346
### Moving objects to a different layer
3447

3548
Objects can be dynamically moved to a different layer while the game is running. There is a condition to check which layer an object is on, and an action that will change the layer of an object.
225 KB
Loading

0 commit comments

Comments
 (0)