From da338c3e65815e0a690d14dbc46f06e65fdadd9f Mon Sep 17 00:00:00 2001 From: luigi-rosso Date: Mon, 13 Nov 2023 18:46:49 +0000 Subject: [PATCH] Unity 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) --- .rive_head | 2 +- wasm/submodules/rive-cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.rive_head b/.rive_head index a5ecfc81..08fea997 100644 --- a/.rive_head +++ b/.rive_head @@ -1 +1 @@ -18ae3210288344019381946136b5dc0474c3eb35 +faba3ff515e612f2fbc8e65dff11095f9a0dbbe2 diff --git a/wasm/submodules/rive-cpp b/wasm/submodules/rive-cpp index 464b2740..6dcdb976 160000 --- a/wasm/submodules/rive-cpp +++ b/wasm/submodules/rive-cpp @@ -1 +1 @@ -Subproject commit 464b2740c4d8cc5ddf995de8d79cf42a052125af +Subproject commit 6dcdb9760252c717316a764aaf473e2fe39cb243