How to get post processing initialized callback

How do I get a callback for when the composer is initialized as it seems to sometimes initialize a little bit after the context is created and I would like to add effects to it at runtime after it is initialized.

I was using ```NeedleEngine.addContextCreatedCallback(evt => {...```

Hi, postprocessing is loaded async (which means it’s loaded when it’s needed for the first time and not when it’s never used)

You can await it like so:

import { NEEDLE_ENGINE_MODULES } from "@needle-tools/engine"

NEEDLE_ENGINE_MODULES.POSTPROCESSING.ready().then(()=> {
   console.log("POSTPROCESSING MODULE READY");
});

OR

await NEEDLE_ENGINE_MODULES.POSTPROCESSING.ready();

This topic was automatically closed 13 days after the last reply. New replies are no longer allowed.