@resetState cause UI Image disapear

The engine is not working as expected? Documentation is wrong or out of date? Let us know here!
Forum rules
We are not providing support via this forum; it's community-driven. For official support see https://naninovel.com/support/#naninovel-support
Post Reply
nikkihime
Posts: 2
Joined: 17 Jun 2021 18:56

@resetState cause UI Image disapear

Post by nikkihime »

version: 1.16
I have a sprite used in naninovel background(@back Lemu) and Unity built-in uGUI Image(Soure Image: Lemu)
when execute @resetState, the uGUI Image will disapear

video Link:
https://i.imgur.com/707RA5h
Image

Elringus
admin
Posts: 521
Joined: 11 May 2020 18:03

Re: @resetState cause UI Image disapear

Post by Elringus »

This is by design. Naninovel is not aware that you're using the texture assigned as background in a UI and unloads it to prevent memory leaks. It's generally unusual to share textures between backgound actors and UIs; even if the texture has similar content, you'll usually want to resize/edit it a bit. If you still want to use the same texture, check the guide on how to notify Naninovel, so it won't unload the asset: https://naninovel.com/guide/resource-pr ... -resources

Post Reply