Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
gdevelop5:behaviors:anchor [2019/08/01 00:54] heather [Anchor Behavior] |
gdevelop5:behaviors:anchor [2020/12/26 13:56] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
# Anchor Behavior | # Anchor Behavior | ||
- | You can anchor an object to the screen | + | You can anchor an object to the screen by using anchor behavior to pin its edges (bottom, left, right, or top) to the window edges. Once anchored, if the screen size changes, the distance between the edge of the object and the edge of the window will stay the same. This is useful for static UI/HUD objects. |
## Anchoring an object to the screen | ## Anchoring an object to the screen |