Skip to content

Should AssetRegistery#add also load assets if marked as preload? #3107

@yaustar

Description

@yaustar

https://github.com/playcanvas/engine/blob/main/src/framework/asset/asset-registry.js#L244

This means that on the launch of an application, when the assets are added via Application#configure (using _parseAssets), they are already loading despite Applications#preload not being called yet.

Preload function doesn't actually start any loading in our case, just sets up the events.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions