Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Artboard resize on timeline not updated at runtime #38

Open
BitBarrel opened this issue Apr 10, 2024 · 0 comments
Open

Artboard resize on timeline not updated at runtime #38

BitBarrel opened this issue Apr 10, 2024 · 0 comments

Comments

@BitBarrel
Copy link

When an artboard is resized via a timeline, the new artboard size is not accessible at runtime.

This functionality is needed for UI re-arrangement for different aspect ratio screens.

To reproduce with the repo below:

Open the artboard_bug.rev file (in Assets folder) in the Rive editor.
Play the state machine.
Change the aspect ratio input value. The change-over point is 0.6
Notice how the artboard size changes and the square is re-positioned.
Open the Unity project.
Open the Artboard bug scene.
Press Play.
Resize the Game window.
Notice how the square is re-positioned but the arboard size stays the same.
Doing a re-init on the artboard-related code doesn't help.
The aspect ratio input is set in the SetDisplay.cs script.

Repo:
Artboard bug.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant