UArOverlay constructor
const
UArOverlay({
- required String id,
- required Widget builder(
- BuildContext context,
- UArProjection projection
- String? nodeId,
- String? anchorId,
- UArVector3 offset = UArVector3.zero,
- Alignment alignment = Alignment.bottomCenter,
- bool scaleWithDistance = true,
- double referenceDistance = 1.5,
- double minScale = 0.45,
- double maxScale = 1.25,
- double? maxDistance,
- bool hideWhenOffscreen = true,
- 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,
});