World3D constructor

World3D({
  1. Iterable<Component>? children,
  2. int? priority = -0x7fffffff,
  3. Color clearColor = const Color(0x00000000),
})

The root component for all 3D world elements.

The primary feature of this component is that it allows Component3Ds to render directly to a GraphicsDevice instead of the regular rendering.

Implementation

World3D({
  super.children,
  super.priority,
  Color clearColor = const Color(0x00000000),
}) : device = GraphicsDevice(clearValue: clearColor) {
  children.register<LightComponent>();
}