Rive Guide
Ask or search…
K
Comment on page

Layout

Control the layout of your Rive animation in Unity
For more information on Rive Layout see the runtime documentation.

Fit and Alignment

The fit and alignment can be controlled on the RenderQueue align method:
public Fit fit = Fit.contain;
public Alignment alignment = Alignment.center;
public RenderTexture renderTexture;
...
m_renderQueue = new RenderQueue(renderTexture);
...
if (m_artboard != null && renderTexture != null)
{
m_renderQueue.align(fit, alignment, m_artboard);
m_renderQueue.draw(m_artboard);
}
Last modified 20d ago