Skip to content

The animated_ui example should interpolate the text entity's UiTransform, not its font size #22647

@ickshonpe

Description

@ickshonpe

Problem

The animated_ui example interpolates the font size of the animated text entity, which rapidly generates gigabytes of font atlase images.

Even with #22646, it's not good practice.

Solution

The animated_ui example should spawn the text with its font size set to the maximum value from the old animation curve. Then scale the text by interpolating the UiTransform::scale field, instead of the font size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AnimationMake things move and change over timeA-UIGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behaviorC-ExamplesAn addition or correction to our examplesD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!X-UncontroversialThis work is generally agreed upon

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions