onFrame
Invoked when an frame is processed.
Registers a callback to be invoked when a valid Frame is processing.
The callback to be invoked once per frame **immediately before the scene is updated.
The callback will only be invoked if the Frame is considered as valid.