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

Animating the size of an artboard does not render properly #69

Closed
trdroid opened this issue Sep 5, 2024 · 2 comments
Closed

Animating the size of an artboard does not render properly #69

trdroid opened this issue Sep 5, 2024 · 2 comments

Comments

@trdroid
Copy link

trdroid commented Sep 5, 2024

Hi,

I have a Rive Asset that animates the position of a shape in an Artboard while also increasing the size of the Artboard. When I render this asset to the screen in Unity, the shape disappears few moments into the Animation. I tried all the Fit options but nothing seems to work.

Attached to this work item are:

The Rive Asset
animatingartboardsize.zip

The Unity Project (please look at the DrawToCameraScene)
getting-started.zip

@trdroid
Copy link
Author

trdroid commented Sep 5, 2024

I guess I should probably keep the size of the artboard constant and play with the size of its content.

If I have content that spans, let's say, four times the size of an Artboard, how can I deal with scrolling along the the Artboard to reveal the content?

@damzobridge
Copy link
Contributor

Changing an artboard's size at runtime is not supported at the moment. With our upcoming layout feature, you'll be able to achieve what you're trying to do completely in Rive.

In the meantime, if you're using Rive with Canvas, you can use a regular scroll view element to hold the Rive visual and have the Rive content set to the expected full size of the artboard.

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

2 participants