rive-app / rive-unity-examples

A collection of examples using Rive Unity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rive Unity Examples

rive x unity

A collection of games and examples using the Rive Unity package.

Documentation

For more docs and guidance on how to use Rive Unity, see our docs in the help center for step-by-step guidance on integrating the package.

Running locally

Clone/download this repository. In Unity Hub add the project you'd like to play selecting Add project from disk

CleanShot 2023-11-14 at 14 13 07@2x

See the getting-started project. This project contains multiple scenes that demonstrate various samples.

  • DrawToCameraScene - Draws a Rive animation to the camera. Demonstrates passing mouse input to an artboard (listeners) and accessing reported events.
  • DrawToCubeScene - Draws a Rive animation to a texture and renders to a cube. Demonstrates how to enable listeners in a 3D space by using a Raycast.
  • EventsScene - Demonstrates how to listen to Rive events.
  • StateMachineInputScene - Demonstrates how to access and manipulate Rive state machine inputs. Enter play mode to see available inputs in the inspector on the Main Camera.

For the other projects be sure to select a scene if nothing is rendering.

About

A collection of examples using Rive Unity


Languages

Language:C# 79.6%Language:Mathematica 20.4%