Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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