Behavior : Anchor ratio

Author:Rex.Rainbow

Download

Properties

Horizontal align mode

  • Anchor the object's left edge to window horizontal position.
    • Options : ["Left edge","Right edge","Center","Hotspot","None"]

Horizontal position

  • Horizontal position of window, 0 - 1, 0 = window left, 0.5 = window center, 1 = window right.

Vertical align mode

  • Anchor the object's left edge to window vertical position.
    • Options : ["Top edge","Bottom edge","Center","Hotspot","None"]

Vertical position

  • Vertical position of window, 0 - 1, 0 = window top, 0.5 = window center, 1 = window bottom.

Initial state

  • Whether to initially have the behavior enabled or disabled.
    • Options : ["Disabled","Enabled"]

Set once

  • Enable to set position once when window size changed.
    • Options : ["No","Yes"]

Actions

Anchor

Action:Set enabled

  • Enable or disable the behavior.
    • State ( Combo ) : Whether to enable or disable the behavior.
      • Options : ["disabled","enabled"]

Horizontal

Action:Set horizontal align mode

  • Set horizontal align mode.
    • Mode ( Combo ) : Align mode of horizontal.
      • Options : ["Left edge","Right edge","Center","Hotspot"]

Action:Set horizontal position

  • Set horizontal position.
    • Position ( number ) : position of window, 0 - 1, 0 = window left, 0.5 = window center, 1 = window right.

Vertical

Action:Set vertical align mode

  • Set vertical align mode.
    • Mode ( Combo ) : Align mode of horizontal.
      • Options : ["Top edge","Bottom edge","Center","Hotspot"]

Action:Set vertical position

  • Set vertical position.
    • Position ( number ) : position of window, 0 - 1, 0 = window top, 0.5 = window center, 1 = window bottom.

Expressions

Conditions

Anchor

Condition:On anchored

  • Triggered when anchored.