Engine API Reference - v2.7.3
    Preparing search index...

    Type Alias ResourceLoaderCallback

    ResourceLoaderCallback: (err: string | null, resource?: any) => void

    Callback used by ResourceLoader#load when a resource is loaded (or an error occurs).

    Type declaration

      • (err: string | null, resource?: any): void
      • Parameters

        • err: string | null

          The error message in the case where the load fails.

        • Optionalresource: any

          The resource that has been successfully loaded.

        Returns void