Skip to content

Commit

Permalink
Unity
Browse files Browse the repository at this point in the history
The technical preview for Unity!

Supports:
- Metal on Mac and iOS
- DX11 on Windows
- OpenGL on Windows

Features:
- Drag and drop .riv files to your Assets folder in Unity
- Preview the riv file by selecting it in Assets.
- Use [Rive.File](https://github.com/rive-app/rive/blob/f9567617cea631612ec29b98e047cbfeb597b7c3/packages/runtime_unity/public/package/Runtime/RiveFile.cs#L16) for loading Rive assets at runtime.
  - Iterate artboards
  - Load artboard by index or name
- File.loadArtboard calls return [Rive.Artboard](https://github.com/rive-app/rive/blob/f9567617cea631612ec29b98e047cbfeb597b7c3/packages/runtime_unity/public/package/Runtime/Artboard.cs#L13) objects.
  - Lists state machines
  - Load by name or index
  - Convert screen coordinates to artboard local
- Artboard.stateMachine calls load [Rive.StateMachine](https://github.com/rive-app/rive/blob/f9567617cea631612ec29b98e047cbfeb597b7c3/packages/runtime_unity/public/package/Runtime/StateMachine.cs)
  - Set pointerDown/Up/Move on StateMachine.

Upcoming Features:
- Get and set inputs on state machines.
- Get events from Artboards.
- Procedural rendering: use Rive's Renderer from C#!

Diffs=
faba3ff51 Unity (#6173)
  • Loading branch information
luigi-rosso committed Nov 13, 2023
1 parent f6e5255 commit da338c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18ae3210288344019381946136b5dc0474c3eb35
faba3ff515e612f2fbc8e65dff11095f9a0dbbe2
2 changes: 1 addition & 1 deletion wasm/submodules/rive-cpp

0 comments on commit da338c3

Please sign in to comment.