UArNode.video constructor

UArNode.video({
  1. required String id,
  2. required UArSource source,
  3. double width = 0.6,
  4. double height = 0.3375,
  5. UArVideoOptions video = const UArVideoOptions(),
  6. String? anchorId,
  7. String? parentId,
  8. UArVector3 position = UArVector3.zero,
  9. UArQuaternion rotation = UArQuaternion.identity,
  10. UArBillboard billboard = UArBillboard.none,
})

Implementation

factory UArNode.video({
  required String id,
  required UArSource source,
  double width = 0.6,
  double height = 0.3375,
  UArVideoOptions video = const UArVideoOptions(),
  String? anchorId,
  String? parentId,
  UArVector3 position = UArVector3.zero,
  UArQuaternion rotation = UArQuaternion.identity,
  UArBillboard billboard = UArBillboard.none,
}) => UArNode(
  id: id,
  type: UArNodeType.video,
  source: source,
  width: width,
  height: height,
  video: video,
  anchorId: anchorId,
  parentId: parentId,
  position: position,
  rotation: rotation,
  billboard: billboard,
  material: const UArMaterial(unlit: true, doubleSided: true),
  castShadow: false,
);