Skip to content

Resizing Game View Disables Curvature Transformation #3

@seylorx1

Description

@seylorx1

Hey! I love this plugin, but I noticed a bug with the curvature of text resetting. Sometimes I work with just one monitor due to working from a laptop, hence I resize the editor views very frequently. I tried to make my own fix by detected screen size changes. While the changes in size were detected, I attempted to set m_forceUpdate to true in the Update function in the TextProOnACurve script but this didn't seem to work.

It should be notice I couldn't replicate the bug when switching the Game view to a Simulator view and changing the screen orientation of a simulated device, so it *seems* this is an issue only in the editor. However, I'm unsure if this bug persists in a working build.

Expected Result

Changing the editor game size keeps curve transformation.

Actual Result

Curvature resets on editor game size change.

Steps to Reproduce

  1. Create a TMP game object on an Overlay UI canvas.
  2. Create a custom TMP font asset and update the TMP game object to use the custom font asset. (Unsure if this is relevant, just reflecting my working environment..)
  3. Apply the TextProOnACircle script on the TMP game object.
  4. With the Game view selected and open in the editor, resize the Game view.

Working Environment

Unity 2021.1.18f1
Unity UI 1.0.0 (August 18 2021 Release)

Gif

You might need to download the gif to view it...
Bug GIF

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions