UArNode constructor

const UArNode({
  1. required String id,
  2. required UArNodeType type,
  3. UArSource? source,
  4. UArSource? iosSource,
  5. String? anchorId,
  6. String? parentId,
  7. UArVector3 position = UArVector3.zero,
  8. UArQuaternion rotation = UArQuaternion.identity,
  9. UArVector3 scale = UArVector3.one,
  10. double width = 0.1,
  11. double height = 0.1,
  12. double depth = 0.1,
  13. double radius = 0.05,
  14. UArMaterial material = const UArMaterial(),
  15. UArBillboard billboard = UArBillboard.none,
  16. bool visible = true,
  17. bool castShadow = true,
  18. bool hittable = true,
  19. UArAnimation? animation,
  20. UArVideoOptions video = const UArVideoOptions(),
  21. double? fitSize,
  22. UArPivot pivot = UArPivot.original,
  23. 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?>{},
});