rive-unity icon indicating copy to clipboard operation
rive-unity copied to clipboard

Object reference not set to an instance of an object.

Open ErsoTerso opened this issue 9 months ago • 5 comments

Sometimes I get an error like this. What is it, and is there anything I should do? Thx!

Image

ErsoTerso avatar Apr 16 '25 09:04 ErsoTerso

We have a fix for this coming up soon. Thanks for reporting it.

damzobridge avatar Apr 16 '25 15:04 damzobridge

This should be fixed in v0.3.6. Let us know if you're still seeing the issue!

damzobridge avatar May 04 '25 20:05 damzobridge

Yes, it's fixed — I've been using version 3.6 for a few days now and I haven't encountered that issue anymore. However, some code that worked in the previous version stopped working. I got the following error (I don’t know programming, so I use GitHub Copilot):

"Cannot activate Rive animation: Input 'call' of type Boolean is not available"

Copilot somehow refreshed the code and fixed it. It gave the following explanation, though I'm not sure if it's correct:

"In Rive 0.3.6, input names must now be accessed with the full hierarchy path (like StateMachine/inputName)."

Also, for texture-based visuals, I noticed there’s now a transparent halo (or something similar) around them in 3.6 — this didn’t happen in 3.5. I’m using a material on the Rive Panel to achieve a feather effect — maybe that’s wrong? What kind of material should I use?

Image

my material

Image

ErsoTerso avatar May 05 '25 13:05 ErsoTerso

Thanks for getting back to us @ErsoTerso .

However, some code that worked in the previous version stopped working. I got the following error (I don’t know programming, so I use GitHub Copilot):

We'll need to see the line of code you're using. We haven't updated the code for inputs, so nothing should have changed.

Also, for texture-based visuals, I noticed there’s now a transparent halo (or something similar) around them in 3.6 — this didn’t happen in 3.5.

Does the halo still show up if you remove the material?

damzobridge avatar May 05 '25 16:05 damzobridge

When I remove the material, it looks normal, but if the feathering effect is on a transparent area, there’s some darkening.

ErsoTerso avatar May 05 '25 16:05 ErsoTerso