How to Update Cached Images at Runtime

User Question :

If we modify an image (png) file underneath storyboard – does storyboard refresh its cached image? Can we force this?

Answer :

Cached images are not automatically refreshed, however they can be refreshed by dumping the current resource and reloading it, using gre.dump_resource and gre.load_image. If the image is on the current screen, it will not change until the screen is refreshed or the image is reset manually using gre.set_value.

Dump Resource:

Load Image:




Please sign in to leave a comment.

Didn't find what you were looking for?

New post