onLoad method

  1. @override
Future<void> onLoad()
override

Similarly to components, post processes can be loaded asynchronously.

Use this to load any resources needed for the post process. This is called when the post process is added to a CameraComponent or a PostProcessComponent.

See also:

Implementation

@override
Future<void> onLoad() async {
  for (final postProcess in postProcesses) {
    await postProcess.onLoad();
  }
}