UArNode.video constructor
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,
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,
);