Skip to main content
P
4mo ago

Edit Image in Runtime in Unity

In Rive docs on Unity, I saw there is PNG images feature support, but I cannot find how to use them within Unity.

Can I edit Images within Rive in Unity? Similar to TextRun?
artboard.SetTextRun("textRunName", "newValue")

5 replies
J
P
J
4mo ago

You can replace images. Look at the Loading Assets section in the documentation:

https://rive.app/community/doc/loading-assets/doc1etuJJdEC

P
4mo ago

I'm sorry, but I'm too dumb to understand.

Do I need to make them Referenced - then I need to change them within Unity script, let's say in Resource folder?
Okay, but how could I Access them directly in case, if I have multiple PlaceHolder Images, and I want to replace each one of them with specific images?

Or am I wrong? I don't really understand the "Loading Assets" page.

4mo ago

Hi, updating image assets at runtime is not available in Unity at the moment. However, it will be available in an update soon!

P
4mo ago

Hi, but what about PNG images within Unity, it says supported, but what does it supports, just Assets?

4mo ago

That means you can use png, jpeg, and webp images in your Rive files, and they will show up in Unity.