SpatialPanel constructor

SpatialPanel({
  1. String name = 'panel',
  2. required CameraRig cameraRig,
  3. double panelWidth = 1.0,
  4. double panelHeight = 0.6,
  5. Color backgroundColor = const Color(0xE0161B22),
  6. Color borderColor = const Color(0xFF30363D),
  7. double borderWidth = 1,
  8. double cornerRadius = 8,
  9. double opacity = 1.0,
  10. void onRenderContent(
    1. Canvas canvas,
    2. Size panelSize
    )?,
  11. bool lockY = true,
})

Implementation

SpatialPanel({
  super.name = 'panel',
  required super.cameraRig,
  this.panelWidth = 1.0,
  this.panelHeight = 0.6,
  this.backgroundColor = const Color(0xE0161B22),
  this.borderColor = const Color(0xFF30363D),
  this.borderWidth = 1,
  this.cornerRadius = 8,
  this.opacity = 1.0,
  this.onRenderContent,
  super.lockY = true,
});