Skip to content
简体中文

Manage resources between scenes ​

Have the scene owner acquire resources with AcquireAsync<T>. If the next scene needs the same resource, call Retain() for its own lease before transitioning. Release the old lease on exit and release the remaining lease when the new scene exits.

Check the loader call count, lease state after cancellation, and final unload. See Core resource leases for setup and Godot resources for indexing project assets.

Apache License 2.0