2D Button Properties

2D Button properties are managed through the Properties panel. You can view and modify them.

This page discusses:

General

Name
Defines the name of the button actor.
Enable
Activates or deactivates the interactions with the button actor.
Active
Defines whether or not the actor is active during a playing session.
Notes:
  • The actor's activity depends on the context. If one or more parent actors are inactive in the hierarchy, the actor is also inactive.
  • When the actor is inactive during a playing session, its associated behaviors or scripts are inactive.

Content

Font Size
Defines the font height of the button actor.
Note: By default, the font size is 16.
Icon
Displays an icon in the button actor.
Note: In the button actor, the icon appears on the left side.
Icon Dimension
Defines the icon size.
Label
Defines the text displayed in the button actor.
Pushable
Defines if the button actor remains pressed when you click it.
Pushed
Defines if the button actor can be pressed or not.

Rendering

Visible
Shows or hides the button actor.
Opacity
Defines the opacity of the button actor.
Note: By default, the opacity is 255.

Layout

Attachment
Defines the alignment of the button actor (for example center, upper-right or attached to the 3D actor's position).
Offset
Defines the position of the button actor.
Minimum Dimension
Defines the size of the button actor.
Note: Values are in pixels or percent.

Associated Capacities

Sensors
  • Is Clicked: this capacity is active when you click the UI actor.
  • Is Double Clicked: this capacity is active when you double-click the UI actor.
  • Is Entered: this capacity is active when the mouse enters the UI actor.
  • Is Exited: this capacity is active when the mouse exits the UI actor.
  • Is Hovered: this capacity is active when you place your pointer over the UI actor.
  • Is Pressed: this capacity is active when the UI actor appears pressed.
  • Is Released: this capacity is active when you release the UI actor.
  • Is Right Clicked: this capacity is active when you right-click the UI actor.
  • Is Enabled: this capacity is active when the UI actor's state looks active.
  • Is Visible: the capacity is visible when the UI actor is visible in the experience.