About UI Actors Responsiveness

The R2026x FD03 release introduces a new system that eases and improves the responsiveness of your UI actors containing texts and icons.

Responsiveness corresponds to the adaptability of a piece of content to its container.

This page discusses:

See Also
Working with 2D UI Actors
Working with 3D UI Actors
2D UI Actor Properties
3D UI Actor Properties

Purpose and Benefits

UI actors help you convey information or add interactivity to your experience, in both the Authoring and Play modes. You can position, resize, or configure UI actors extensively.

Some types of UI actors, such as UI texts or UI buttons, have a text or icon component that can affect the overall responsiveness of the UI actor.

Before R2026x FD03, you had to manually define the dimensions and position of the text or icon components of UI actors. This often prevented UI actors from resizing correctly and affect their overall responsiveness.

From R2026x FD03, the content of UI actors can now dynamically adapt to the dimensions of their container without lengthy manual adjustments.

The improved responsiveness applies to the 2D and 3D versions of UI text and UI button actors in the following contexts:

  • On desktop, in the Authoring and Play modes
  • On the web
  • On Apple Vision Pro (AVP)
  • In the JavaScript (JS) API

Understanding Responsiveness States

From R2026x FD03, UI actors can have two different states that define their responsiveness behavior:

  • The initial state
  • The fixed width state

Note: The initial and fixed width states do not have any concrete UI representation or visual indication. They are conceptual, virtual states that define the behaviors of UI actors in relation to responsiveness.

Initial State (Default Behavior)

In the initial state:

  • The font size results from the height of the UI actor.
  • The dimensions of the container fit the text.

The initial state is similar to the legacy behavior of UI texts and UI buttons before R2026x FD03. The legacy behavior entails that the dimensions of the container result from the content itself. Therefore, the container grows dynamically when the text gets concatenated.

The initial state introduces two differences compared with this legacy behavior:

  • The container can shrink when the text length decreases.
  • The font size can adapt to the height of the UI actor.

The initial state enables a smooth transition from the legacy behavior to the new fixed width state.

Fixed Width State (Controlled Layout)

In the fixed width state:

  • The height of the UI actor determines the font size.
  • The height of the container fits the text.
  • The width of the container stays fixed. Therefore, the container does not fit the text.
  • UI texts and UI buttons have their own characteristics.

The fixed width state introduces new behaviors for the text components, such as text wrapping and text cropping.

  • Text wrapping automatically adjusts the layout of a text to fit the width of its container by adding new lines, if required.
  • Text cropping automatically adjusts the layout of a text to fit the width of its container by cutting off overflowing text, if required.

For these behaviors to work, the width of UI actors has to stay fixed. Therefore, the width of UI actors does not result from their content but from their physical model value instead.

A UI actor can switch only from the initial state to the fixed width state, but not the other way around. The switch occurs when you manually modify the width of a UI actor. For example, when you modify the width in the Properties panel or in the JavaScript API.

Behavior by UI Actor Type

The following table details the behavior and specificities resulting from the new responsiveness system introduced in R2026x FD03 for the different types of impacted UI actors:

UI Actors Modalities
3D UI actors in general The unit for the font size property of 3D UI actors changes from pixels (px) to millimeters (mm).
UI texts
  • The maximum font size of 2D texts is now 50 pixels.
  • UI texts can wrap.
  • 3D texts do not have a maximum font size but instead rely on content scaling, if required.
  • You can write and edit multiple lines of text for the Text property of UI text actors using an enlarged field in the Properties panel.
UI buttons
  • UI buttons can get cropped.
  • The dimension of the UI button icon is no longer fixed but resized dynamically.
  • The height of the icon results from the height of its container or text while preserving the aspect ratio of the icon.
  • The icon might get resized to ensure that its width represents at most 10% of the UI button width. Therefore, you can no longer configure the width of the icon in the Properties panel.

R2026x FD03: Transition to the New Responsiveness

When opening an experience created before R2026x FD03, the UI actors of this experience migrate to the new responsiveness system with the following effects:

  • UI actors keep their font size.
  • The dimensions of icons might change.
  • UI actors transition to the new fixed width state. UI actors keep their current width but it stays fixed. The height of UI actors fits the text and you can modify this height.

The models of your UI actors change automatically to adapt to the new responsiveness system.