Function onLoading(action: (progress: number) => void): void Register an event that runs every frame when assets are initially loading. Can be used to draw a custom loading screen. param action - The function to run when the event is triggered.returns The event controller.since v3000.0group Events