Skip to content

How to use preload? #400

Closed
Closed
@paytonrules

Description

@paytonrules

Going through my own code, I've been replacing uses of GDScript's preload with a call to the ResourceLoader and using the load function in the _ready hook.

I recently discovered that there is a ResourcePreloader - which is used by the preload function available in godot-rust, but I can't find any examples of it being used. Is this a case where the ResourcePreloader isn't actually useful in GDNative? Or could I actually use it and take advantage of pre-loading?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions