UArNode constructor
const
UArNode({
- required String id,
- required UArNodeType type,
- UArSource? source,
- UArSource? iosSource,
- String? anchorId,
- String? parentId,
- UArVector3 position = UArVector3.zero,
- UArQuaternion rotation = UArQuaternion.identity,
- UArVector3 scale = UArVector3.one,
- double width = 0.1,
- double height = 0.1,
- double depth = 0.1,
- double radius = 0.05,
- UArMaterial material = const UArMaterial(),
- UArBillboard billboard = UArBillboard.none,
- bool visible = true,
- bool castShadow = true,
- bool hittable = true,
- UArAnimation? animation,
- UArVideoOptions video = const UArVideoOptions(),
- double? fitSize,
- UArPivot pivot = UArPivot.original,
- Map<
String, Object?> data = const <String, Object?>{},
Implementation
const UArNode({
required this.id,
required this.type,
this.source,
this.iosSource,
this.anchorId,
this.parentId,
this.position = UArVector3.zero,
this.rotation = UArQuaternion.identity,
this.scale = UArVector3.one,
this.width = 0.1,
this.height = 0.1,
this.depth = 0.1,
this.radius = 0.05,
this.material = const UArMaterial(),
this.billboard = UArBillboard.none,
this.visible = true,
this.castShadow = true,
this.hittable = true,
this.animation,
this.video = const UArVideoOptions(),
this.fitSize,
this.pivot = UArPivot.original,
this.data = const <String, Object?>{},
});