rive-app / rive-unity

MIT License
103 stars 11 forks source link

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

Open trdroid opened 2 months ago

trdroid commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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.