onLoad method

Future<void> onLoad()

Optional asynchronous setup, such as loading an asset.

Runs once, the first time the owning node enters a live scene. update is deferred until the returned future completes.

Implementation

Future<void> onLoad() async {}