onReady

abstract fun onReady(context: ZContext, done: () -> Unit)(source)

Called when the scene or the system is ready to start interacting or rendering. This method is typically used to perform initialization tasks specific to the scene state.

Uses the callback to specify the end of this operation.

Parameters

context

The context of the current scene, encapsulating information such as the active camera, rendering context, and scene state.

done

Callback to specify the end of this operation