UArOverlay constructor

const UArOverlay({
  1. required String id,
  2. required Widget builder(
    1. BuildContext context,
    2. UArProjection projection
    ),
  3. String? nodeId,
  4. String? anchorId,
  5. UArVector3 offset = UArVector3.zero,
  6. Alignment alignment = Alignment.bottomCenter,
  7. bool scaleWithDistance = true,
  8. double referenceDistance = 1.5,
  9. double minScale = 0.45,
  10. double maxScale = 1.25,
  11. double? maxDistance,
  12. bool hideWhenOffscreen = true,
  13. VoidCallback? onTap,
})

Implementation

const UArOverlay({
  required this.id,
  required this.builder,
  this.nodeId,
  this.anchorId,
  this.offset = UArVector3.zero,
  this.alignment = Alignment.bottomCenter,
  this.scaleWithDistance = true,
  this.referenceDistance = 1.5,
  this.minScale = 0.45,
  this.maxScale = 1.25,
  this.maxDistance,
  this.hideWhenOffscreen = true,
  this.onTap,
});