Anchor Behavior

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

To add an anchor to an object:

  • Right-click on the object in the Objects Panel (or create a new object) and select Edit object.
  • Click on the Behaviors tab.
  • Click + to add a behavior to the object.
  • Select Anchor.
  • Set your anchor points and click Apply.