rive-unity
rive-unity copied to clipboard
UI Renders White Screen With Domain Reloading Turned Off
How to reproduce:
- Open the rive-unity-examples project
- Turn off domain reloading (Project Settings -> Enter Play Mode Settings: Enable "Enter Play Mode Options" and leave "Reload Domain" unchecked)
- Enter and exit play mode
- Enter play mode again
Expected results: The Rive Unity UI is visible Actual results: The screen is white
NullReferenceException: Object reference not set to an instance of an object
Rive.Components.SimpleRenderTargetStrategy.HandlePanelDrawing (Rive.Components.IRivePanel panel) (at ./Library/PackageCache/app.rive.rive-unity@063bb896e7/Runtime/Components/Public/RenderTargetStategies/SimpleRenderTargetStrategy.cs:213)
Rive.Components.SimpleRenderTargetStrategy.LateUpdate () (at ./Library/PackageCache/app.rive.rive-unity@063bb896e7/Runtime/Components/Public/RenderTargetStategies/SimpleRenderTargetStrategy.cs:239)
Rive 0.3.2-canary.0 Reproducible with: Unity 6000.0.44f1, 2022.3.60f1 Reproducible on: Windows 11 24H2
Thanks for reporting this. I believe it's related to this issue.
Right now, if you're using the components (RivePanel and RiveWidget) you'll need to have domain+scene reloading enabled.
We're looking into potential workarounds for a future update.
This issue should be addressed from this canary version upwards: v0.3.8-canary.2
And will be included in the next official release (v0.3.8).