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) Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
diff --git a/.rive_head b/.rive_head index a5ecfc8..08fea99 100644 --- a/.rive_head +++ b/.rive_head
@@ -1 +1 @@ -18ae3210288344019381946136b5dc0474c3eb35 +faba3ff515e612f2fbc8e65dff11095f9a0dbbe2
diff --git a/src/shapes/path.cpp b/src/shapes/path.cpp index 0f35eb1..ae7d0ab 100644 --- a/src/shapes/path.cpp +++ b/src/shapes/path.cpp
@@ -64,7 +64,6 @@ void Path::buildPath(CommandPath& commandPath) const { - const bool isClosed = isPathClosed(); const std::vector<PathVertex*>& vertices = m_Vertices; @@ -244,8 +243,7 @@ { Super::update(value); - assert(m_CommandPath != nullptr); - if (hasDirt(value, ComponentDirt::Path)) + if (m_CommandPath != nullptr && hasDirt(value, ComponentDirt::Path)) { if (m_Shape->canDeferPathUpdate()) {