@resetState cause UI Image disapear

Posted: 11 Aug 2021 07:32
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


Re: @resetState cause UI Image disapear

Posted: 11 Aug 2021 13:38
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