renderFromCamera method

void renderFromCamera(
  1. Canvas canvas
)

The rendering method invoked by the CameraComponent.

If you want to do changes to the rendering of the world, this is the method that you want to override, not renderTree.

Implementation

void renderFromCamera(Canvas canvas) {
  assert(CameraComponent.currentCamera != null);
  super.renderTree(canvas);
}