@needle-tools/engine 2.52.0-pre → 2.54.2-pre

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/needle-engine.d.ts +3018 -2680
  3. package/dist/needle-engine.js +439 -439
  4. package/dist/needle-engine.js.map +4 -4
  5. package/dist/needle-engine.min.js +41 -41
  6. package/dist/needle-engine.min.js.map +4 -4
  7. package/dist/needle-engine.tsbuildinfo +1 -0
  8. package/lib/engine/codegen/register_types.d.ts +1 -0
  9. package/lib/engine/codegen/register_types.js +346 -0
  10. package/lib/engine/codegen/register_types.js.map +1 -0
  11. package/lib/engine/debug/debug.d.ts +1 -0
  12. package/lib/engine/debug/debug.js +4 -0
  13. package/lib/engine/debug/debug.js.map +1 -1
  14. package/lib/engine/debug/debug_console.js +2 -1
  15. package/lib/engine/debug/debug_console.js.map +1 -1
  16. package/lib/engine/debug/debug_overlay.js +3 -1
  17. package/lib/engine/debug/debug_overlay.js.map +1 -1
  18. package/lib/engine/engine_components.js +2 -2
  19. package/lib/engine/engine_components.js.map +1 -1
  20. package/lib/engine/engine_default_parameters.d.ts +2 -2
  21. package/lib/engine/engine_element.js +4 -2
  22. package/lib/engine/engine_element.js.map +1 -1
  23. package/lib/engine/engine_element_loading.d.ts +1 -0
  24. package/lib/engine/engine_element_loading.js +17 -6
  25. package/lib/engine/engine_element_loading.js.map +1 -1
  26. package/lib/engine/engine_element_overlay.js +4 -2
  27. package/lib/engine/engine_element_overlay.js.map +1 -1
  28. package/lib/engine/engine_fileloader.d.ts +3 -0
  29. package/lib/engine/engine_fileloader.js +8 -0
  30. package/lib/engine/engine_fileloader.js.map +1 -0
  31. package/lib/engine/engine_generic_utils.d.ts +1 -0
  32. package/lib/engine/engine_generic_utils.js +14 -0
  33. package/lib/engine/engine_generic_utils.js.map +1 -0
  34. package/lib/engine/engine_input.js +4 -0
  35. package/lib/engine/engine_input.js.map +1 -1
  36. package/lib/engine/engine_networking_instantiate.d.ts +1 -1
  37. package/lib/engine/engine_networking_instantiate.js +3 -0
  38. package/lib/engine/engine_networking_instantiate.js.map +1 -1
  39. package/lib/engine/engine_networking_websocket.d.ts +1 -0
  40. package/lib/engine/engine_networking_websocket.js +1 -1
  41. package/lib/engine/engine_networking_websocket.js.map +1 -1
  42. package/lib/engine/engine_serialization_builtin_serializer.d.ts +6 -0
  43. package/lib/engine/engine_serialization_builtin_serializer.js +35 -7
  44. package/lib/engine/engine_serialization_builtin_serializer.js.map +1 -1
  45. package/lib/engine/engine_serialization_core.d.ts +1 -0
  46. package/lib/engine/engine_serialization_core.js +6 -0
  47. package/lib/engine/engine_serialization_core.js.map +1 -1
  48. package/lib/engine/engine_setup.js +2 -2
  49. package/lib/engine/engine_setup.js.map +1 -1
  50. package/lib/engine/engine_texture.d.ts +3 -0
  51. package/lib/engine/engine_texture.js +4 -0
  52. package/lib/engine/engine_texture.js.map +1 -0
  53. package/lib/engine/engine_utils.d.ts +1 -1
  54. package/lib/engine/engine_utils.js +3 -0
  55. package/lib/engine/engine_utils.js.map +1 -1
  56. package/lib/engine/extensions/NEEDLE_components.d.ts +1 -1
  57. package/lib/engine/extensions/NEEDLE_progressive.d.ts +40 -0
  58. package/lib/engine/extensions/NEEDLE_progressive.js +322 -0
  59. package/lib/engine/extensions/NEEDLE_progressive.js.map +1 -0
  60. package/lib/engine/extensions/extensions.js +2 -2
  61. package/lib/engine/extensions/extensions.js.map +1 -1
  62. package/lib/engine-components/Camera.js +17 -2
  63. package/lib/engine-components/Camera.js.map +1 -1
  64. package/lib/engine-components/GroundProjection.d.ts +2 -1
  65. package/lib/engine-components/GroundProjection.js +19 -12
  66. package/lib/engine-components/GroundProjection.js.map +1 -1
  67. package/lib/engine-components/Light.js +1 -0
  68. package/lib/engine-components/Light.js.map +1 -1
  69. package/lib/engine-components/OrbitControls.js +6 -2
  70. package/lib/engine-components/OrbitControls.js.map +1 -1
  71. package/lib/engine-components/ParticleSystemModules.d.ts +1 -1
  72. package/lib/engine-components/ParticleSystemModules.js +48 -44
  73. package/lib/engine-components/ParticleSystemModules.js.map +1 -1
  74. package/lib/engine-components/ReflectionProbe.d.ts +1 -1
  75. package/lib/engine-components/Renderer.d.ts +1 -1
  76. package/lib/engine-components/Renderer.js +4 -9
  77. package/lib/engine-components/Renderer.js.map +1 -1
  78. package/lib/engine-components/Voip.js +13 -4
  79. package/lib/engine-components/Voip.js.map +1 -1
  80. package/lib/engine-components/Volume.js +8 -1
  81. package/lib/engine-components/Volume.js.map +1 -1
  82. package/lib/engine-components/WebXR.d.ts +2 -2
  83. package/lib/engine-components/WebXRAvatar.d.ts +1 -1
  84. package/lib/engine-components/codegen/components.d.ts +99 -95
  85. package/lib/engine-components/codegen/components.js +99 -95
  86. package/lib/engine-components/codegen/components.js.map +1 -1
  87. package/lib/engine-components/export/{GltfExport.d.ts → gltf/GltfExport.d.ts} +2 -2
  88. package/lib/engine-components/export/{GltfExport.js → gltf/GltfExport.js} +7 -7
  89. package/lib/engine-components/export/gltf/GltfExport.js.map +1 -0
  90. package/lib/engine-components/export/usdz/Extension.d.ts +9 -0
  91. package/lib/engine-components/export/usdz/Extension.js +2 -0
  92. package/lib/engine-components/export/usdz/Extension.js.map +1 -0
  93. package/lib/engine-components/export/usdz/USDZExporter.d.ts +26 -0
  94. package/lib/engine-components/export/usdz/USDZExporter.js +209 -0
  95. package/lib/engine-components/export/usdz/USDZExporter.js.map +1 -0
  96. package/lib/engine-components/export/usdz/extensions/Animation.d.ts +44 -0
  97. package/lib/engine-components/export/usdz/extensions/Animation.js +264 -0
  98. package/lib/engine-components/export/usdz/extensions/Animation.js.map +1 -0
  99. package/lib/engine-components/export/usdz/types.d.ts +34 -0
  100. package/lib/engine-components/export/usdz/types.js +2 -0
  101. package/lib/engine-components/export/usdz/types.js.map +1 -0
  102. package/lib/engine-components/export/usdz/utils/animationutils.d.ts +3 -0
  103. package/lib/engine-components/export/usdz/utils/animationutils.js +46 -0
  104. package/lib/engine-components/export/usdz/utils/animationutils.js.map +1 -0
  105. package/lib/engine-components/export/usdz/utils/quicklook.d.ts +2 -0
  106. package/lib/engine-components/export/usdz/utils/quicklook.js +36 -0
  107. package/lib/engine-components/export/usdz/utils/quicklook.js.map +1 -0
  108. package/lib/engine-components/export/usdz/utils/timeutils.d.ts +1 -0
  109. package/lib/engine-components/export/usdz/utils/timeutils.js +15 -0
  110. package/lib/engine-components/export/usdz/utils/timeutils.js.map +1 -0
  111. package/lib/engine-components/ui/Button.js +30 -0
  112. package/lib/engine-components/ui/Button.js.map +1 -1
  113. package/lib/engine-components/ui/Graphic.d.ts +2 -0
  114. package/lib/engine-components/ui/Graphic.js +15 -0
  115. package/lib/engine-components/ui/Graphic.js.map +1 -1
  116. package/lib/engine-components/ui/InputField.d.ts +2 -0
  117. package/lib/engine-components/ui/InputField.js +23 -1
  118. package/lib/engine-components/ui/InputField.js.map +1 -1
  119. package/lib/engine-components/ui/Utils.d.ts +4 -1
  120. package/lib/engine-components/ui/Utils.js +15 -12
  121. package/lib/engine-components/ui/Utils.js.map +1 -1
  122. package/lib/engine-components-experimental/Presentation.d.ts +6 -0
  123. package/lib/engine-components-experimental/Presentation.js +11 -0
  124. package/lib/engine-components-experimental/Presentation.js.map +1 -0
  125. package/lib/engine-components-experimental/annotation/LineDrawer.d.ts +18 -0
  126. package/lib/engine-components-experimental/annotation/LineDrawer.js +175 -0
  127. package/lib/engine-components-experimental/annotation/LineDrawer.js.map +1 -0
  128. package/lib/engine-components-experimental/annotation/LinesManager.d.ts +54 -0
  129. package/lib/engine-components-experimental/annotation/LinesManager.js +155 -0
  130. package/lib/engine-components-experimental/annotation/LinesManager.js.map +1 -0
  131. package/lib/engine-components-experimental/networking/PlayerSync.d.ts +26 -0
  132. package/lib/engine-components-experimental/networking/PlayerSync.js +121 -0
  133. package/lib/engine-components-experimental/networking/PlayerSync.js.map +1 -0
  134. package/lib/engine-schemes/vec2.d.ts +10 -0
  135. package/lib/engine-schemes/vec2.js +26 -0
  136. package/lib/engine-schemes/vec2.js.map +1 -0
  137. package/lib/include/three/ARButton.d.ts +3 -0
  138. package/lib/include/three/ARButton.js +158 -0
  139. package/lib/include/three/ARButton.js.map +1 -0
  140. package/lib/include/three/EXT_mesh_gpu_instancing_exporter.d.ts +6 -0
  141. package/lib/include/three/EXT_mesh_gpu_instancing_exporter.js +46 -0
  142. package/lib/include/three/EXT_mesh_gpu_instancing_exporter.js.map +1 -0
  143. package/lib/include/three/VRButton.d.ts +5 -0
  144. package/lib/include/three/VRButton.js +122 -0
  145. package/lib/include/three/VRButton.js.map +1 -0
  146. package/lib/tsconfig.tsbuildinfo +1 -0
  147. package/package.json +2 -2
  148. package/src/engine/codegen/register_types.js +212 -204
  149. package/src/engine/debug/debug.ts +5 -0
  150. package/src/engine/debug/debug_console.ts +3 -2
  151. package/src/engine/debug/debug_overlay.ts +3 -1
  152. package/src/engine/engine_components.ts +2 -2
  153. package/src/engine/engine_element.ts +4 -2
  154. package/src/engine/engine_element_loading.ts +13 -6
  155. package/src/engine/engine_element_overlay.ts +4 -2
  156. package/src/engine/engine_input.ts +4 -0
  157. package/src/engine/engine_networking_instantiate.ts +4 -1
  158. package/src/engine/engine_networking_websocket.ts +3 -1
  159. package/src/engine/engine_serialization_builtin_serializer.ts +39 -8
  160. package/src/engine/engine_serialization_core.ts +7 -1
  161. package/src/engine/engine_setup.ts +2 -2
  162. package/src/engine/engine_texture.ts +6 -0
  163. package/src/engine/engine_utils.ts +3 -1
  164. package/src/engine/extensions/NEEDLE_progressive.ts +357 -0
  165. package/src/engine/extensions/extensions.ts +2 -2
  166. package/src/engine-components/Camera.ts +17 -3
  167. package/src/engine-components/GroundProjection.ts +18 -12
  168. package/src/engine-components/Light.ts +3 -1
  169. package/src/engine-components/OrbitControls.ts +7 -3
  170. package/src/engine-components/ParticleSystemModules.ts +50 -47
  171. package/src/engine-components/Renderer.ts +6 -10
  172. package/src/engine-components/Voip.ts +14 -4
  173. package/src/engine-components/Volume.ts +8 -1
  174. package/src/engine-components/WebXR.ts +2 -2
  175. package/src/engine-components/codegen/components.ts +99 -95
  176. package/src/engine-components/export/{GltfExport.ts → gltf/GltfExport.ts} +7 -7
  177. package/src/engine-components/export/usdz/Extension.ts +12 -0
  178. package/src/engine-components/export/usdz/USDZExporter.ts +233 -0
  179. package/src/engine-components/export/usdz/extensions/Animation.ts +306 -0
  180. package/src/engine-components/export/usdz/types.ts +39 -0
  181. package/src/engine-components/export/usdz/utils/animationutils.ts +60 -0
  182. package/src/engine-components/export/usdz/utils/quicklook.ts +43 -0
  183. package/src/engine-components/export/usdz/utils/timeutils.ts +20 -0
  184. package/src/engine-components/ui/Button.ts +8 -8
  185. package/src/engine-components/ui/Graphic.ts +15 -1
  186. package/src/engine-components/ui/InputField.ts +25 -2
  187. package/src/engine-components/ui/Utils.ts +17 -14
  188. package/src/engine-components-experimental/annotation/LineDrawer.ts +10 -7
  189. package/src/engine-components-experimental/annotation/LinesManager.ts +6 -6
  190. package/src/engine-components-experimental/networking/PlayerSync.ts +1 -1
  191. package/lib/engine/engine_caching.d.ts +0 -0
  192. package/lib/engine/engine_caching.js +0 -2
  193. package/lib/engine/engine_caching.js.map +0 -1
  194. package/lib/engine/extensions/NEEDLE_deferred_texture.d.ts +0 -18
  195. package/lib/engine/extensions/NEEDLE_deferred_texture.js +0 -194
  196. package/lib/engine/extensions/NEEDLE_deferred_texture.js.map +0 -1
  197. package/lib/engine/tests/simulate_avatars.d.ts +0 -0
  198. package/lib/engine/tests/simulate_avatars.js +0 -3
  199. package/lib/engine/tests/simulate_avatars.js.map +0 -1
  200. package/lib/engine-components/NavMesh.d.ts +0 -0
  201. package/lib/engine-components/NavMesh.js +0 -101
  202. package/lib/engine-components/NavMesh.js.map +0 -1
  203. package/lib/engine-components/ParticleSystemBehaviours.d.ts +0 -0
  204. package/lib/engine-components/ParticleSystemBehaviours.js +0 -2
  205. package/lib/engine-components/ParticleSystemBehaviours.js.map +0 -1
  206. package/lib/engine-components/SpringJoint.d.ts +0 -0
  207. package/lib/engine-components/SpringJoint.js +0 -43
  208. package/lib/engine-components/SpringJoint.js.map +0 -1
  209. package/lib/engine-components/export/GltfExport.js.map +0 -1
  210. package/lib/engine-components/ui/CanvasScaler.d.ts +0 -0
  211. package/lib/engine-components/ui/CanvasScaler.js +0 -17
  212. package/lib/engine-components/ui/CanvasScaler.js.map +0 -1
  213. package/src/engine/dist/engine_three_utils.js +0 -279
  214. package/src/engine/engine_caching.ts +0 -0
  215. package/src/engine/extensions/NEEDLE_deferred_texture.ts +0 -217
  216. package/src/engine/tests/simulate_avatars.ts +0 -2
  217. package/src/engine-components/NavMesh.ts +0 -117
  218. package/src/engine-components/ParticleSystemBehaviours.ts +0 -0
  219. package/src/engine-components/SpringJoint.ts +0 -45
  220. package/src/engine-components/ui/CanvasScaler.ts +0 -21
@@ -1,339 +1,347 @@
1
1
  import { TypeStore } from "./../engine_typestore"
2
2
 
3
3
  // Import types
4
+ import { __Ignore } from "../../engine-components/codegen/components.ts";
4
5
  import { AlignmentConstraint } from "../../engine-components/AlignmentConstraint.ts";
5
6
  import { Animation } from "../../engine-components/Animation.ts";
6
7
  import { AnimationCurve } from "../../engine-components/AnimationCurve.ts";
8
+ import { AnimationExtension } from "../../engine-components/export/usdz/extensions/Animation.ts";
9
+ import { AnimationTrackHandler } from "../../engine-components/timeline/TimelineTracks.ts";
7
10
  import { Animator } from "../../engine-components/Animator.ts";
8
11
  import { AnimatorController } from "../../engine-components/AnimatorController.ts";
12
+ import { AttachedObject } from "../../engine-components/WebXRController.ts";
9
13
  import { AudioListener } from "../../engine-components/AudioListener.ts";
10
14
  import { AudioSource } from "../../engine-components/AudioSource.ts";
11
- import { AvatarModel } from "../../engine-components/AvatarLoader.ts";
15
+ import { AudioTrackHandler } from "../../engine-components/timeline/TimelineTracks.ts";
16
+ import { Avatar_Brain_LookAt } from "../../engine-components/avatar/Avatar_Brain_LookAt.ts";
17
+ import { Avatar_MouthShapes } from "../../engine-components/avatar/Avatar_MouthShapes.ts";
18
+ import { Avatar_MustacheShake } from "../../engine-components/avatar/Avatar_MustacheShake.ts";
19
+ import { Avatar_POI } from "../../engine-components/avatar/Avatar_Brain_LookAt.ts";
20
+ import { AvatarBlink_Simple } from "../../engine-components/avatar/AvatarBlink_Simple.ts";
21
+ import { AvatarEyeLook_Rotation } from "../../engine-components/avatar/AvatarEyeLook_Rotation.ts";
12
22
  import { AvatarLoader } from "../../engine-components/AvatarLoader.ts";
23
+ import { AvatarMarker } from "../../engine-components/WebXRAvatar.ts";
24
+ import { AvatarModel } from "../../engine-components/AvatarLoader.ts";
13
25
  import { AxesHelper } from "../../engine-components/AxesHelper.ts";
26
+ import { BaseUIComponent } from "../../engine-components/ui/BaseUIComponent.ts";
14
27
  import { BasicIKConstraint } from "../../engine-components/BasicIKConstraint.ts";
28
+ import { BoxCollider } from "../../engine-components/Collider.ts";
29
+ import { BoxGizmo } from "../../engine-components/Gizmos.ts";
15
30
  import { BoxHelperComponent } from "../../engine-components/BoxHelperComponent.ts";
31
+ import { Button } from "../../engine-components/ui/Button.ts";
32
+ import { CallInfo } from "../../engine-components/EventList.ts";
16
33
  import { Camera } from "../../engine-components/Camera.ts";
34
+ import { Canvas } from "../../engine-components/ui/Canvas.ts";
35
+ import { CanvasGroup } from "../../engine-components/ui/CanvasGroup.ts";
36
+ import { CapsuleCollider } from "../../engine-components/Collider.ts";
17
37
  import { CharacterController } from "../../engine-components/CharacterController.ts";
18
38
  import { CharacterControllerInput } from "../../engine-components/CharacterController.ts";
19
39
  import { Collider } from "../../engine-components/Collider.ts";
20
- import { SphereCollider } from "../../engine-components/Collider.ts";
21
- import { BoxCollider } from "../../engine-components/Collider.ts";
22
- import { MeshCollider } from "../../engine-components/Collider.ts";
23
- import { CapsuleCollider } from "../../engine-components/Collider.ts";
24
- import { DeleteBox } from "../../engine-components/DeleteBox.ts";
40
+ import { ColorAdjustments } from "../../engine-components/Volume.ts";
41
+ import { ColorBySpeedModule } from "../../engine-components/ParticleSystemModules.ts";
42
+ import { ColorOverLifetimeModule } from "../../engine-components/ParticleSystemModules.ts";
43
+ import { ControlTrackHandler } from "../../engine-components/timeline/TimelineTracks.ts";
25
44
  import { Deletable } from "../../engine-components/DeleteBox.ts";
45
+ import { DeleteBox } from "../../engine-components/DeleteBox.ts";
26
46
  import { DeviceFlag } from "../../engine-components/DeviceFlag.ts";
27
47
  import { DragControls } from "../../engine-components/DragControls.ts";
28
48
  import { DropListener } from "../../engine-components/DropListener.ts";
29
49
  import { Duplicatable } from "../../engine-components/Duplicatable.ts";
30
- import { CallInfo } from "../../engine-components/EventList.ts";
31
- import { EventListEvent } from "../../engine-components/EventList.ts";
50
+ import { EmissionModule } from "../../engine-components/ParticleSystemModules.ts";
32
51
  import { EventList } from "../../engine-components/EventList.ts";
52
+ import { EventListEvent } from "../../engine-components/EventList.ts";
53
+ import { EventSystem } from "../../engine-components/ui/EventSystem.ts";
33
54
  import { EventTrigger } from "../../engine-components/EventTrigger.ts";
55
+ import { FieldWithDefault } from "../../engine-components/Renderer.ts";
56
+ import { FixedJoint } from "../../engine-components/Joints.ts";
34
57
  import { FlyControls } from "../../engine-components/FlyControls.ts";
35
- import { BoxGizmo } from "../../engine-components/Gizmos.ts";
58
+ import { GltfExport } from "../../engine-components/export/gltf/GltfExport.ts";
59
+ import { GltfExportBox } from "../../engine-components/export/gltf/GltfExport.ts";
60
+ import { Gradient } from "../../engine-components/ParticleSystemModules.ts";
61
+ import { Graphic } from "../../engine-components/ui/Graphic.ts";
62
+ import { GraphicRaycaster } from "../../engine-components/ui/Raycaster.ts";
36
63
  import { GridHelper } from "../../engine-components/GridHelper.ts";
64
+ import { GridLayoutGroup } from "../../engine-components/ui/Layout.ts";
37
65
  import { GroundProjectedEnv } from "../../engine-components/GroundProjection.ts";
38
- import { Interactable } from "../../engine-components/Interactable.ts";
39
- import { UsageMarker } from "../../engine-components/Interactable.ts";
40
- import { FixedJoint } from "../../engine-components/Joints.ts";
41
66
  import { HingeJoint } from "../../engine-components/Joints.ts";
67
+ import { HorizontalLayoutGroup } from "../../engine-components/ui/Layout.ts";
68
+ import { Image } from "../../engine-components/ui/Image.ts";
69
+ import { InheritVelocityModule } from "../../engine-components/ParticleSystemModules.ts";
70
+ import { InputField } from "../../engine-components/ui/InputField.ts";
71
+ import { Interactable } from "../../engine-components/Interactable.ts";
72
+ import { Keyboard } from "../../engine-components/ui/Keyboard.ts";
73
+ import { LayoutGroup } from "../../engine-components/ui/Layout.ts";
42
74
  import { Light } from "../../engine-components/Light.ts";
43
- import { LODModel } from "../../engine-components/LODGroup.ts";
75
+ import { LimitVelocityOverLifetimeModule } from "../../engine-components/ParticleSystemModules.ts";
76
+ import { LineInstanceHandler } from "../../engine-components-experimental/annotation/LinesManager.ts";
77
+ import { LinesDrawer } from "../../engine-components-experimental/annotation/LineDrawer.ts";
78
+ import { LinesManager } from "../../engine-components-experimental/annotation/LinesManager.ts";
44
79
  import { LODGroup } from "../../engine-components/LODGroup.ts";
80
+ import { LODModel } from "../../engine-components/LODGroup.ts";
81
+ import { LogStats } from "../../engine-components/debug/LogStats.ts";
45
82
  import { LookAtConstraint } from "../../engine-components/LookAtConstraint.ts";
83
+ import { MainModule } from "../../engine-components/ParticleSystemModules.ts";
84
+ import { MaskableGraphic } from "../../engine-components/ui/Graphic.ts";
85
+ import { MeshCollider } from "../../engine-components/Collider.ts";
86
+ import { MeshRenderer } from "../../engine-components/Renderer.ts";
87
+ import { MinMaxCurve } from "../../engine-components/ParticleSystemModules.ts";
88
+ import { MinMaxGradient } from "../../engine-components/ParticleSystemModules.ts";
46
89
  import { NestedGltf } from "../../engine-components/NestedGltf.ts";
47
90
  import { Networking } from "../../engine-components/Networking.ts";
91
+ import { NoiseModule } from "../../engine-components/ParticleSystemModules.ts";
92
+ import { ObjectRaycaster } from "../../engine-components/ui/Raycaster.ts";
48
93
  import { OffsetConstraint } from "../../engine-components/OffsetConstraint.ts";
49
94
  import { OrbitControls } from "../../engine-components/OrbitControls.ts";
50
- import { SubEmitterSystem } from "../../engine-components/ParticleSystem.ts";
51
- import { ParticleSystemRenderer } from "../../engine-components/ParticleSystem.ts";
52
- import { ParticleSystem } from "../../engine-components/ParticleSystem.ts";
53
- import { Gradient } from "../../engine-components/ParticleSystemModules.ts";
54
- import { MinMaxCurve } from "../../engine-components/ParticleSystemModules.ts";
55
- import { MinMaxGradient } from "../../engine-components/ParticleSystemModules.ts";
56
- import { MainModule } from "../../engine-components/ParticleSystemModules.ts";
57
95
  import { ParticleBurst } from "../../engine-components/ParticleSystemModules.ts";
58
- import { EmissionModule } from "../../engine-components/ParticleSystemModules.ts";
59
- import { ColorOverLifetimeModule } from "../../engine-components/ParticleSystemModules.ts";
60
- import { SizeOverLifetimeModule } from "../../engine-components/ParticleSystemModules.ts";
61
- import { ShapeModule } from "../../engine-components/ParticleSystemModules.ts";
62
- import { NoiseModule } from "../../engine-components/ParticleSystemModules.ts";
63
- import { TrailModule } from "../../engine-components/ParticleSystemModules.ts";
64
- import { VelocityOverLifetimeModule } from "../../engine-components/ParticleSystemModules.ts";
65
- import { TextureSheetAnimationModule } from "../../engine-components/ParticleSystemModules.ts";
66
- import { RotationOverLifetimeModule } from "../../engine-components/ParticleSystemModules.ts";
67
- import { RotationBySpeedModule } from "../../engine-components/ParticleSystemModules.ts";
68
- import { LimitVelocityOverLifetimeModule } from "../../engine-components/ParticleSystemModules.ts";
69
- import { InheritVelocityModule } from "../../engine-components/ParticleSystemModules.ts";
70
- import { SizeBySpeedModule } from "../../engine-components/ParticleSystemModules.ts";
71
- import { ColorBySpeedModule } from "../../engine-components/ParticleSystemModules.ts";
72
96
  import { ParticleSubEmitter } from "../../engine-components/ParticleSystemSubEmitter.ts";
97
+ import { ParticleSystem } from "../../engine-components/ParticleSystem.ts";
98
+ import { ParticleSystemRenderer } from "../../engine-components/ParticleSystem.ts";
99
+ import { PlayableDirector } from "../../engine-components/timeline/PlayableDirector.ts";
73
100
  import { PlayerColor } from "../../engine-components/PlayerColor.ts";
101
+ import { PlayerState } from "../../engine-components-experimental/networking/PlayerSync.ts";
102
+ import { PlayerSync } from "../../engine-components-experimental/networking/PlayerSync.ts";
103
+ import { PointerEventData } from "../../engine-components/ui/PointerEvents.ts";
104
+ import { PresentationMode } from "../../engine-components-experimental/Presentation.ts";
105
+ import { RawImage } from "../../engine-components/ui/Image.ts";
106
+ import { Raycaster } from "../../engine-components/ui/Raycaster.ts";
107
+ import { Rect } from "../../engine-components/ui/RectTransform.ts";
108
+ import { RectTransform } from "../../engine-components/ui/RectTransform.ts";
74
109
  import { ReflectionProbe } from "../../engine-components/ReflectionProbe.ts";
75
- import { FieldWithDefault } from "../../engine-components/Renderer.ts";
110
+ import { RegisteredAnimationInfo } from "../../engine-components/export/usdz/extensions/Animation.ts";
111
+ import { RemoteSkybox } from "../../engine-components/Skybox.ts";
76
112
  import { Renderer } from "../../engine-components/Renderer.ts";
77
- import { MeshRenderer } from "../../engine-components/Renderer.ts";
78
- import { SkinnedMeshRenderer } from "../../engine-components/Renderer.ts";
79
113
  import { RendererLightmap } from "../../engine-components/RendererLightmap.ts";
114
+ import { RGBAColor } from "../../engine-components/js-extensions/RGBAColor.ts";
80
115
  import { Rigidbody } from "../../engine-components/RigidBody.ts";
116
+ import { RotationBySpeedModule } from "../../engine-components/ParticleSystemModules.ts";
117
+ import { RotationOverLifetimeModule } from "../../engine-components/ParticleSystemModules.ts";
81
118
  import { ScreenCapture } from "../../engine-components/ScreenCapture.ts";
82
119
  import { ShadowCatcher } from "../../engine-components/ShadowCatcher.ts";
83
- import { RemoteSkybox } from "../../engine-components/Skybox.ts";
120
+ import { ShapeModule } from "../../engine-components/ParticleSystemModules.ts";
121
+ import { SignalAsset } from "../../engine-components/timeline/SignalAsset.ts";
122
+ import { SignalReceiver } from "../../engine-components/timeline/SignalAsset.ts";
123
+ import { SignalReceiverEvent } from "../../engine-components/timeline/SignalAsset.ts";
124
+ import { SignalTrackHandler } from "../../engine-components/timeline/TimelineTracks.ts";
125
+ import { Size } from "../../engine-components/ui/RectTransform.ts";
126
+ import { SizeBySpeedModule } from "../../engine-components/ParticleSystemModules.ts";
127
+ import { SizeOverLifetimeModule } from "../../engine-components/ParticleSystemModules.ts";
128
+ import { SkinnedMeshRenderer } from "../../engine-components/Renderer.ts";
84
129
  import { SmoothFollow } from "../../engine-components/SmoothFollow.ts";
85
- import { SpatialTriggerReceiver } from "../../engine-components/SpatialTrigger.ts";
130
+ import { SpatialHtml } from "../../engine-components/ui/SpatialHtml.ts";
86
131
  import { SpatialTrigger } from "../../engine-components/SpatialTrigger.ts";
132
+ import { SpatialTriggerReceiver } from "../../engine-components/SpatialTrigger.ts";
87
133
  import { SpectatorCamera } from "../../engine-components/SpectatorCamera.ts";
134
+ import { SphereCollider } from "../../engine-components/Collider.ts";
88
135
  import { Sprite } from "../../engine-components/SpriteRenderer.ts";
89
- import { SpriteSheet } from "../../engine-components/SpriteRenderer.ts";
90
136
  import { SpriteRenderer } from "../../engine-components/SpriteRenderer.ts";
137
+ import { SpriteSheet } from "../../engine-components/SpriteRenderer.ts";
138
+ import { SubEmitterSystem } from "../../engine-components/ParticleSystem.ts";
91
139
  import { SyncedCamera } from "../../engine-components/SyncedCamera.ts";
92
140
  import { SyncedRoom } from "../../engine-components/SyncedRoom.ts";
93
141
  import { SyncedTransform } from "../../engine-components/SyncedTransform.ts";
142
+ import { TeleportTarget } from "../../engine-components/WebXRController.ts";
94
143
  import { TestRunner } from "../../engine-components/TestRunner.ts";
95
144
  import { TestSimulateUserData } from "../../engine-components/TestRunner.ts";
145
+ import { Text } from "../../engine-components/ui/Text.ts";
146
+ import { TextureSheetAnimationModule } from "../../engine-components/ParticleSystemModules.ts";
147
+ import { ToneMapping } from "../../engine-components/Volume.ts";
148
+ import { TrailModule } from "../../engine-components/ParticleSystemModules.ts";
149
+ import { TransformData } from "../../engine-components/export/usdz/extensions/Animation.ts";
96
150
  import { TransformGizmo } from "../../engine-components/TransformGizmo.ts";
151
+ import { UIRaycastUtils } from "../../engine-components/ui/RaycastUtils.ts";
152
+ import { UIRootComponent } from "../../engine-components/ui/BaseUIComponent.ts";
153
+ import { UsageMarker } from "../../engine-components/Interactable.ts";
154
+ import { USDZExporter } from "../../engine-components/export/usdz/USDZExporter.ts";
155
+ import { VelocityOverLifetimeModule } from "../../engine-components/ParticleSystemModules.ts";
156
+ import { VerticalLayoutGroup } from "../../engine-components/ui/Layout.ts";
97
157
  import { VideoPlayer } from "../../engine-components/VideoPlayer.ts";
98
158
  import { Voip } from "../../engine-components/Voip.ts";
99
- import { VolumeParameter } from "../../engine-components/Volume.ts";
159
+ import { Volume } from "../../engine-components/Volume.ts";
100
160
  import { VolumeComponent } from "../../engine-components/Volume.ts";
101
- import { ToneMapping } from "../../engine-components/Volume.ts";
102
- import { ColorAdjustments } from "../../engine-components/Volume.ts";
161
+ import { VolumeParameter } from "../../engine-components/Volume.ts";
103
162
  import { VolumeProfile } from "../../engine-components/Volume.ts";
104
- import { Volume } from "../../engine-components/Volume.ts";
163
+ import { VRUserState } from "../../engine-components/WebXRSync.ts";
164
+ import { WebAR } from "../../engine-components/WebXR.ts";
105
165
  import { WebARSessionRoot } from "../../engine-components/WebARSessionRoot.ts";
106
166
  import { WebXR } from "../../engine-components/WebXR.ts";
107
- import { WebAR } from "../../engine-components/WebXR.ts";
108
- import { AvatarMarker } from "../../engine-components/WebXRAvatar.ts";
109
167
  import { WebXRAvatar } from "../../engine-components/WebXRAvatar.ts";
110
- import { TeleportTarget } from "../../engine-components/WebXRController.ts";
111
168
  import { WebXRController } from "../../engine-components/WebXRController.ts";
112
- import { AttachedObject } from "../../engine-components/WebXRController.ts";
169
+ import { WebXRSync } from "../../engine-components/WebXRSync.ts";
170
+ import { XRFlag } from "../../engine-components/XRFlag.ts";
113
171
  import { XRGrabModel } from "../../engine-components/WebXRGrabRendering.ts";
114
172
  import { XRGrabRendering } from "../../engine-components/WebXRGrabRendering.ts";
115
173
  import { XRRig } from "../../engine-components/WebXRRig.ts";
116
- import { VRUserState } from "../../engine-components/WebXRSync.ts";
117
- import { WebXRSync } from "../../engine-components/WebXRSync.ts";
118
174
  import { XRState } from "../../engine-components/XRFlag.ts";
119
- import { XRFlag } from "../../engine-components/XRFlag.ts";
120
- import { AvatarBlink_Simple } from "../../engine-components/avatar/AvatarBlink_Simple.ts";
121
- import { AvatarEyeLook_Rotation } from "../../engine-components/avatar/AvatarEyeLook_Rotation.ts";
122
- import { Avatar_POI } from "../../engine-components/avatar/Avatar_Brain_LookAt.ts";
123
- import { Avatar_Brain_LookAt } from "../../engine-components/avatar/Avatar_Brain_LookAt.ts";
124
- import { Avatar_MouthShapes } from "../../engine-components/avatar/Avatar_MouthShapes.ts";
125
- import { Avatar_MustacheShake } from "../../engine-components/avatar/Avatar_MustacheShake.ts";
126
- import { __Ignore } from "../../engine-components/codegen/components.ts";
127
- import { LogStats } from "../../engine-components/debug/LogStats.ts";
128
- import { GltfExportBox } from "../../engine-components/export/GltfExport.ts";
129
- import { GltfExport } from "../../engine-components/export/GltfExport.ts";
130
- import { RGBAColor } from "../../engine-components/js-extensions/RGBAColor.ts";
131
- import { PlayableDirector } from "../../engine-components/timeline/PlayableDirector.ts";
132
- import { SignalAsset } from "../../engine-components/timeline/SignalAsset.ts";
133
- import { SignalReceiverEvent } from "../../engine-components/timeline/SignalAsset.ts";
134
- import { SignalReceiver } from "../../engine-components/timeline/SignalAsset.ts";
135
- import { AnimationTrackHandler } from "../../engine-components/timeline/TimelineTracks.ts";
136
- import { AudioTrackHandler } from "../../engine-components/timeline/TimelineTracks.ts";
137
- import { SignalTrackHandler } from "../../engine-components/timeline/TimelineTracks.ts";
138
- import { ControlTrackHandler } from "../../engine-components/timeline/TimelineTracks.ts";
139
- import { BaseUIComponent } from "../../engine-components/ui/BaseUIComponent.ts";
140
- import { UIRootComponent } from "../../engine-components/ui/BaseUIComponent.ts";
141
- import { Button } from "../../engine-components/ui/Button.ts";
142
- import { Canvas } from "../../engine-components/ui/Canvas.ts";
143
- import { CanvasGroup } from "../../engine-components/ui/CanvasGroup.ts";
144
- import { EventSystem } from "../../engine-components/ui/EventSystem.ts";
145
- import { Graphic } from "../../engine-components/ui/Graphic.ts";
146
- import { MaskableGraphic } from "../../engine-components/ui/Graphic.ts";
147
- import { Image } from "../../engine-components/ui/Image.ts";
148
- import { RawImage } from "../../engine-components/ui/Image.ts";
149
- import { InputField } from "../../engine-components/ui/InputField.ts";
150
- import { Keyboard } from "../../engine-components/ui/Keyboard.ts";
151
- import { LayoutGroup } from "../../engine-components/ui/Layout.ts";
152
- import { VerticalLayoutGroup } from "../../engine-components/ui/Layout.ts";
153
- import { HorizontalLayoutGroup } from "../../engine-components/ui/Layout.ts";
154
- import { GridLayoutGroup } from "../../engine-components/ui/Layout.ts";
155
- import { PointerEventData } from "../../engine-components/ui/PointerEvents.ts";
156
- import { Raycaster } from "../../engine-components/ui/Raycaster.ts";
157
- import { ObjectRaycaster } from "../../engine-components/ui/Raycaster.ts";
158
- import { GraphicRaycaster } from "../../engine-components/ui/Raycaster.ts";
159
- import { UIRaycastUtils } from "../../engine-components/ui/RaycastUtils.ts";
160
- import { Size } from "../../engine-components/ui/RectTransform.ts";
161
- import { Rect } from "../../engine-components/ui/RectTransform.ts";
162
- import { RectTransform } from "../../engine-components/ui/RectTransform.ts";
163
- import { SpatialHtml } from "../../engine-components/ui/SpatialHtml.ts";
164
- import { Text } from "../../engine-components/ui/Text.ts";
165
- import { PresentationMode } from "../../engine-components-experimental/Presentation.ts";
166
- import { LinesDrawer } from "../../engine-components-experimental/annotation/LineDrawer.ts";
167
- import { LineInstanceHandler } from "../../engine-components-experimental/annotation/LinesManager.ts";
168
- import { LinesManager } from "../../engine-components-experimental/annotation/LinesManager.ts";
169
- import { PlayerSync } from "../../engine-components-experimental/networking/PlayerSync.ts";
170
- import { PlayerState } from "../../engine-components-experimental/networking/PlayerSync.ts";
171
175
 
172
176
  // Register types
177
+ TypeStore.add("__Ignore", __Ignore);
173
178
  TypeStore.add("AlignmentConstraint", AlignmentConstraint);
174
179
  TypeStore.add("Animation", Animation);
175
180
  TypeStore.add("AnimationCurve", AnimationCurve);
181
+ TypeStore.add("AnimationExtension", AnimationExtension);
182
+ TypeStore.add("AnimationTrackHandler", AnimationTrackHandler);
176
183
  TypeStore.add("Animator", Animator);
177
184
  TypeStore.add("AnimatorController", AnimatorController);
185
+ TypeStore.add("AttachedObject", AttachedObject);
178
186
  TypeStore.add("AudioListener", AudioListener);
179
187
  TypeStore.add("AudioSource", AudioSource);
180
- TypeStore.add("AvatarModel", AvatarModel);
188
+ TypeStore.add("AudioTrackHandler", AudioTrackHandler);
189
+ TypeStore.add("Avatar_Brain_LookAt", Avatar_Brain_LookAt);
190
+ TypeStore.add("Avatar_MouthShapes", Avatar_MouthShapes);
191
+ TypeStore.add("Avatar_MustacheShake", Avatar_MustacheShake);
192
+ TypeStore.add("Avatar_POI", Avatar_POI);
193
+ TypeStore.add("AvatarBlink_Simple", AvatarBlink_Simple);
194
+ TypeStore.add("AvatarEyeLook_Rotation", AvatarEyeLook_Rotation);
181
195
  TypeStore.add("AvatarLoader", AvatarLoader);
196
+ TypeStore.add("AvatarMarker", AvatarMarker);
197
+ TypeStore.add("AvatarModel", AvatarModel);
182
198
  TypeStore.add("AxesHelper", AxesHelper);
199
+ TypeStore.add("BaseUIComponent", BaseUIComponent);
183
200
  TypeStore.add("BasicIKConstraint", BasicIKConstraint);
201
+ TypeStore.add("BoxCollider", BoxCollider);
202
+ TypeStore.add("BoxGizmo", BoxGizmo);
184
203
  TypeStore.add("BoxHelperComponent", BoxHelperComponent);
204
+ TypeStore.add("Button", Button);
205
+ TypeStore.add("CallInfo", CallInfo);
185
206
  TypeStore.add("Camera", Camera);
207
+ TypeStore.add("Canvas", Canvas);
208
+ TypeStore.add("CanvasGroup", CanvasGroup);
209
+ TypeStore.add("CapsuleCollider", CapsuleCollider);
186
210
  TypeStore.add("CharacterController", CharacterController);
187
211
  TypeStore.add("CharacterControllerInput", CharacterControllerInput);
188
212
  TypeStore.add("Collider", Collider);
189
- TypeStore.add("SphereCollider", SphereCollider);
190
- TypeStore.add("BoxCollider", BoxCollider);
191
- TypeStore.add("MeshCollider", MeshCollider);
192
- TypeStore.add("CapsuleCollider", CapsuleCollider);
193
- TypeStore.add("DeleteBox", DeleteBox);
213
+ TypeStore.add("ColorAdjustments", ColorAdjustments);
214
+ TypeStore.add("ColorBySpeedModule", ColorBySpeedModule);
215
+ TypeStore.add("ColorOverLifetimeModule", ColorOverLifetimeModule);
216
+ TypeStore.add("ControlTrackHandler", ControlTrackHandler);
194
217
  TypeStore.add("Deletable", Deletable);
218
+ TypeStore.add("DeleteBox", DeleteBox);
195
219
  TypeStore.add("DeviceFlag", DeviceFlag);
196
220
  TypeStore.add("DragControls", DragControls);
197
221
  TypeStore.add("DropListener", DropListener);
198
222
  TypeStore.add("Duplicatable", Duplicatable);
199
- TypeStore.add("CallInfo", CallInfo);
200
- TypeStore.add("EventListEvent", EventListEvent);
223
+ TypeStore.add("EmissionModule", EmissionModule);
201
224
  TypeStore.add("EventList", EventList);
225
+ TypeStore.add("EventListEvent", EventListEvent);
226
+ TypeStore.add("EventSystem", EventSystem);
202
227
  TypeStore.add("EventTrigger", EventTrigger);
228
+ TypeStore.add("FieldWithDefault", FieldWithDefault);
229
+ TypeStore.add("FixedJoint", FixedJoint);
203
230
  TypeStore.add("FlyControls", FlyControls);
204
- TypeStore.add("BoxGizmo", BoxGizmo);
231
+ TypeStore.add("GltfExport", GltfExport);
232
+ TypeStore.add("GltfExportBox", GltfExportBox);
233
+ TypeStore.add("Gradient", Gradient);
234
+ TypeStore.add("Graphic", Graphic);
235
+ TypeStore.add("GraphicRaycaster", GraphicRaycaster);
205
236
  TypeStore.add("GridHelper", GridHelper);
237
+ TypeStore.add("GridLayoutGroup", GridLayoutGroup);
206
238
  TypeStore.add("GroundProjectedEnv", GroundProjectedEnv);
207
- TypeStore.add("Interactable", Interactable);
208
- TypeStore.add("UsageMarker", UsageMarker);
209
- TypeStore.add("FixedJoint", FixedJoint);
210
239
  TypeStore.add("HingeJoint", HingeJoint);
240
+ TypeStore.add("HorizontalLayoutGroup", HorizontalLayoutGroup);
241
+ TypeStore.add("Image", Image);
242
+ TypeStore.add("InheritVelocityModule", InheritVelocityModule);
243
+ TypeStore.add("InputField", InputField);
244
+ TypeStore.add("Interactable", Interactable);
245
+ TypeStore.add("Keyboard", Keyboard);
246
+ TypeStore.add("LayoutGroup", LayoutGroup);
211
247
  TypeStore.add("Light", Light);
212
- TypeStore.add("LODModel", LODModel);
248
+ TypeStore.add("LimitVelocityOverLifetimeModule", LimitVelocityOverLifetimeModule);
249
+ TypeStore.add("LineInstanceHandler", LineInstanceHandler);
250
+ TypeStore.add("LinesDrawer", LinesDrawer);
251
+ TypeStore.add("LinesManager", LinesManager);
213
252
  TypeStore.add("LODGroup", LODGroup);
253
+ TypeStore.add("LODModel", LODModel);
254
+ TypeStore.add("LogStats", LogStats);
214
255
  TypeStore.add("LookAtConstraint", LookAtConstraint);
256
+ TypeStore.add("MainModule", MainModule);
257
+ TypeStore.add("MaskableGraphic", MaskableGraphic);
258
+ TypeStore.add("MeshCollider", MeshCollider);
259
+ TypeStore.add("MeshRenderer", MeshRenderer);
260
+ TypeStore.add("MinMaxCurve", MinMaxCurve);
261
+ TypeStore.add("MinMaxGradient", MinMaxGradient);
215
262
  TypeStore.add("NestedGltf", NestedGltf);
216
263
  TypeStore.add("Networking", Networking);
264
+ TypeStore.add("NoiseModule", NoiseModule);
265
+ TypeStore.add("ObjectRaycaster", ObjectRaycaster);
217
266
  TypeStore.add("OffsetConstraint", OffsetConstraint);
218
267
  TypeStore.add("OrbitControls", OrbitControls);
219
- TypeStore.add("SubEmitterSystem", SubEmitterSystem);
220
- TypeStore.add("ParticleSystemRenderer", ParticleSystemRenderer);
221
- TypeStore.add("ParticleSystem", ParticleSystem);
222
- TypeStore.add("Gradient", Gradient);
223
- TypeStore.add("MinMaxCurve", MinMaxCurve);
224
- TypeStore.add("MinMaxGradient", MinMaxGradient);
225
- TypeStore.add("MainModule", MainModule);
226
268
  TypeStore.add("ParticleBurst", ParticleBurst);
227
- TypeStore.add("EmissionModule", EmissionModule);
228
- TypeStore.add("ColorOverLifetimeModule", ColorOverLifetimeModule);
229
- TypeStore.add("SizeOverLifetimeModule", SizeOverLifetimeModule);
230
- TypeStore.add("ShapeModule", ShapeModule);
231
- TypeStore.add("NoiseModule", NoiseModule);
232
- TypeStore.add("TrailModule", TrailModule);
233
- TypeStore.add("VelocityOverLifetimeModule", VelocityOverLifetimeModule);
234
- TypeStore.add("TextureSheetAnimationModule", TextureSheetAnimationModule);
235
- TypeStore.add("RotationOverLifetimeModule", RotationOverLifetimeModule);
236
- TypeStore.add("RotationBySpeedModule", RotationBySpeedModule);
237
- TypeStore.add("LimitVelocityOverLifetimeModule", LimitVelocityOverLifetimeModule);
238
- TypeStore.add("InheritVelocityModule", InheritVelocityModule);
239
- TypeStore.add("SizeBySpeedModule", SizeBySpeedModule);
240
- TypeStore.add("ColorBySpeedModule", ColorBySpeedModule);
241
269
  TypeStore.add("ParticleSubEmitter", ParticleSubEmitter);
270
+ TypeStore.add("ParticleSystem", ParticleSystem);
271
+ TypeStore.add("ParticleSystemRenderer", ParticleSystemRenderer);
272
+ TypeStore.add("PlayableDirector", PlayableDirector);
242
273
  TypeStore.add("PlayerColor", PlayerColor);
274
+ TypeStore.add("PlayerState", PlayerState);
275
+ TypeStore.add("PlayerSync", PlayerSync);
276
+ TypeStore.add("PointerEventData", PointerEventData);
277
+ TypeStore.add("PresentationMode", PresentationMode);
278
+ TypeStore.add("RawImage", RawImage);
279
+ TypeStore.add("Raycaster", Raycaster);
280
+ TypeStore.add("Rect", Rect);
281
+ TypeStore.add("RectTransform", RectTransform);
243
282
  TypeStore.add("ReflectionProbe", ReflectionProbe);
244
- TypeStore.add("FieldWithDefault", FieldWithDefault);
283
+ TypeStore.add("RegisteredAnimationInfo", RegisteredAnimationInfo);
284
+ TypeStore.add("RemoteSkybox", RemoteSkybox);
245
285
  TypeStore.add("Renderer", Renderer);
246
- TypeStore.add("MeshRenderer", MeshRenderer);
247
- TypeStore.add("SkinnedMeshRenderer", SkinnedMeshRenderer);
248
286
  TypeStore.add("RendererLightmap", RendererLightmap);
287
+ TypeStore.add("RGBAColor", RGBAColor);
249
288
  TypeStore.add("Rigidbody", Rigidbody);
289
+ TypeStore.add("RotationBySpeedModule", RotationBySpeedModule);
290
+ TypeStore.add("RotationOverLifetimeModule", RotationOverLifetimeModule);
250
291
  TypeStore.add("ScreenCapture", ScreenCapture);
251
292
  TypeStore.add("ShadowCatcher", ShadowCatcher);
252
- TypeStore.add("RemoteSkybox", RemoteSkybox);
293
+ TypeStore.add("ShapeModule", ShapeModule);
294
+ TypeStore.add("SignalAsset", SignalAsset);
295
+ TypeStore.add("SignalReceiver", SignalReceiver);
296
+ TypeStore.add("SignalReceiverEvent", SignalReceiverEvent);
297
+ TypeStore.add("SignalTrackHandler", SignalTrackHandler);
298
+ TypeStore.add("Size", Size);
299
+ TypeStore.add("SizeBySpeedModule", SizeBySpeedModule);
300
+ TypeStore.add("SizeOverLifetimeModule", SizeOverLifetimeModule);
301
+ TypeStore.add("SkinnedMeshRenderer", SkinnedMeshRenderer);
253
302
  TypeStore.add("SmoothFollow", SmoothFollow);
254
- TypeStore.add("SpatialTriggerReceiver", SpatialTriggerReceiver);
303
+ TypeStore.add("SpatialHtml", SpatialHtml);
255
304
  TypeStore.add("SpatialTrigger", SpatialTrigger);
305
+ TypeStore.add("SpatialTriggerReceiver", SpatialTriggerReceiver);
256
306
  TypeStore.add("SpectatorCamera", SpectatorCamera);
307
+ TypeStore.add("SphereCollider", SphereCollider);
257
308
  TypeStore.add("Sprite", Sprite);
258
- TypeStore.add("SpriteSheet", SpriteSheet);
259
309
  TypeStore.add("SpriteRenderer", SpriteRenderer);
310
+ TypeStore.add("SpriteSheet", SpriteSheet);
311
+ TypeStore.add("SubEmitterSystem", SubEmitterSystem);
260
312
  TypeStore.add("SyncedCamera", SyncedCamera);
261
313
  TypeStore.add("SyncedRoom", SyncedRoom);
262
314
  TypeStore.add("SyncedTransform", SyncedTransform);
315
+ TypeStore.add("TeleportTarget", TeleportTarget);
263
316
  TypeStore.add("TestRunner", TestRunner);
264
317
  TypeStore.add("TestSimulateUserData", TestSimulateUserData);
318
+ TypeStore.add("Text", Text);
319
+ TypeStore.add("TextureSheetAnimationModule", TextureSheetAnimationModule);
320
+ TypeStore.add("ToneMapping", ToneMapping);
321
+ TypeStore.add("TrailModule", TrailModule);
322
+ TypeStore.add("TransformData", TransformData);
265
323
  TypeStore.add("TransformGizmo", TransformGizmo);
324
+ TypeStore.add("UIRaycastUtils", UIRaycastUtils);
325
+ TypeStore.add("UIRootComponent", UIRootComponent);
326
+ TypeStore.add("UsageMarker", UsageMarker);
327
+ TypeStore.add("USDZExporter", USDZExporter);
328
+ TypeStore.add("VelocityOverLifetimeModule", VelocityOverLifetimeModule);
329
+ TypeStore.add("VerticalLayoutGroup", VerticalLayoutGroup);
266
330
  TypeStore.add("VideoPlayer", VideoPlayer);
267
331
  TypeStore.add("Voip", Voip);
268
- TypeStore.add("VolumeParameter", VolumeParameter);
332
+ TypeStore.add("Volume", Volume);
269
333
  TypeStore.add("VolumeComponent", VolumeComponent);
270
- TypeStore.add("ToneMapping", ToneMapping);
271
- TypeStore.add("ColorAdjustments", ColorAdjustments);
334
+ TypeStore.add("VolumeParameter", VolumeParameter);
272
335
  TypeStore.add("VolumeProfile", VolumeProfile);
273
- TypeStore.add("Volume", Volume);
336
+ TypeStore.add("VRUserState", VRUserState);
337
+ TypeStore.add("WebAR", WebAR);
274
338
  TypeStore.add("WebARSessionRoot", WebARSessionRoot);
275
339
  TypeStore.add("WebXR", WebXR);
276
- TypeStore.add("WebAR", WebAR);
277
- TypeStore.add("AvatarMarker", AvatarMarker);
278
340
  TypeStore.add("WebXRAvatar", WebXRAvatar);
279
- TypeStore.add("TeleportTarget", TeleportTarget);
280
341
  TypeStore.add("WebXRController", WebXRController);
281
- TypeStore.add("AttachedObject", AttachedObject);
342
+ TypeStore.add("WebXRSync", WebXRSync);
343
+ TypeStore.add("XRFlag", XRFlag);
282
344
  TypeStore.add("XRGrabModel", XRGrabModel);
283
345
  TypeStore.add("XRGrabRendering", XRGrabRendering);
284
346
  TypeStore.add("XRRig", XRRig);
285
- TypeStore.add("VRUserState", VRUserState);
286
- TypeStore.add("WebXRSync", WebXRSync);
287
347
  TypeStore.add("XRState", XRState);
288
- TypeStore.add("XRFlag", XRFlag);
289
- TypeStore.add("AvatarBlink_Simple", AvatarBlink_Simple);
290
- TypeStore.add("AvatarEyeLook_Rotation", AvatarEyeLook_Rotation);
291
- TypeStore.add("Avatar_POI", Avatar_POI);
292
- TypeStore.add("Avatar_Brain_LookAt", Avatar_Brain_LookAt);
293
- TypeStore.add("Avatar_MouthShapes", Avatar_MouthShapes);
294
- TypeStore.add("Avatar_MustacheShake", Avatar_MustacheShake);
295
- TypeStore.add("__Ignore", __Ignore);
296
- TypeStore.add("LogStats", LogStats);
297
- TypeStore.add("GltfExportBox", GltfExportBox);
298
- TypeStore.add("GltfExport", GltfExport);
299
- TypeStore.add("RGBAColor", RGBAColor);
300
- TypeStore.add("PlayableDirector", PlayableDirector);
301
- TypeStore.add("SignalAsset", SignalAsset);
302
- TypeStore.add("SignalReceiverEvent", SignalReceiverEvent);
303
- TypeStore.add("SignalReceiver", SignalReceiver);
304
- TypeStore.add("AnimationTrackHandler", AnimationTrackHandler);
305
- TypeStore.add("AudioTrackHandler", AudioTrackHandler);
306
- TypeStore.add("SignalTrackHandler", SignalTrackHandler);
307
- TypeStore.add("ControlTrackHandler", ControlTrackHandler);
308
- TypeStore.add("BaseUIComponent", BaseUIComponent);
309
- TypeStore.add("UIRootComponent", UIRootComponent);
310
- TypeStore.add("Button", Button);
311
- TypeStore.add("Canvas", Canvas);
312
- TypeStore.add("CanvasGroup", CanvasGroup);
313
- TypeStore.add("EventSystem", EventSystem);
314
- TypeStore.add("Graphic", Graphic);
315
- TypeStore.add("MaskableGraphic", MaskableGraphic);
316
- TypeStore.add("Image", Image);
317
- TypeStore.add("RawImage", RawImage);
318
- TypeStore.add("InputField", InputField);
319
- TypeStore.add("Keyboard", Keyboard);
320
- TypeStore.add("LayoutGroup", LayoutGroup);
321
- TypeStore.add("VerticalLayoutGroup", VerticalLayoutGroup);
322
- TypeStore.add("HorizontalLayoutGroup", HorizontalLayoutGroup);
323
- TypeStore.add("GridLayoutGroup", GridLayoutGroup);
324
- TypeStore.add("PointerEventData", PointerEventData);
325
- TypeStore.add("Raycaster", Raycaster);
326
- TypeStore.add("ObjectRaycaster", ObjectRaycaster);
327
- TypeStore.add("GraphicRaycaster", GraphicRaycaster);
328
- TypeStore.add("UIRaycastUtils", UIRaycastUtils);
329
- TypeStore.add("Size", Size);
330
- TypeStore.add("Rect", Rect);
331
- TypeStore.add("RectTransform", RectTransform);
332
- TypeStore.add("SpatialHtml", SpatialHtml);
333
- TypeStore.add("Text", Text);
334
- TypeStore.add("PresentationMode", PresentationMode);
335
- TypeStore.add("LinesDrawer", LinesDrawer);
336
- TypeStore.add("LineInstanceHandler", LineInstanceHandler);
337
- TypeStore.add("LinesManager", LinesManager);
338
- TypeStore.add("PlayerSync", PlayerSync);
339
- TypeStore.add("PlayerState", PlayerState);
@@ -1,5 +1,6 @@
1
1
  import { addLog, LogType } from "./debug_overlay";
2
2
  import { showDebugConsole } from "./debug_console";
3
+ import { isLocalNetwork } from "../engine_networking_utils";
3
4
 
4
5
  export { showDebugConsole }
5
6
 
@@ -13,4 +14,8 @@ export function showBalloonMessage(text: string, logType: LogType = LogType.Log)
13
14
 
14
15
  export function showBalloonWarning(text: string) {
15
16
  showBalloonMessage(text, LogType.Warn);
17
+ }
18
+
19
+ export function isDevEnvironment(){
20
+ return isLocalNetwork();
16
21
  }
@@ -17,9 +17,10 @@ if (showConsole) {
17
17
  }
18
18
 
19
19
  if (!suppressConsole && (showConsole || isLocalNetwork())) {
20
- console.log("Add the ?console query parameter to the url to show the debug console (on mobile it will automatically open for local development when your get errors)");
20
+ if (isLocalNetwork())
21
+ console.log("Add the ?console query parameter to the url to show the debug console (on mobile it will automatically open for local development when your get errors)");
21
22
  const isMobile = isMobileDevice();
22
- if(isMobile){
23
+ if (isMobile) {
23
24
  beginWatchingLogs();
24
25
  createConsole(true);
25
26
  if (isMobile) {
@@ -186,7 +186,9 @@ function getMessageContainer(type: LogType, msg: string): HTMLElement {
186
186
  if (containerCache.has(type)) {
187
187
  const containers = containerCache.get(type)!;
188
188
  if (containers.length > 0) {
189
- return containers.pop()!;
189
+ const container = containers.pop()!;
190
+ container.innerHTML = msg;
191
+ return container;
190
192
  }
191
193
  }
192
194
  const element = document.createElement("div");
@@ -102,7 +102,7 @@ function onGetComponent<T>(obj: Object3D | null | undefined, componentType: Cons
102
102
  if (typeof componentType === "string") {
103
103
  if (!didWarnAboutComponentAccess) {
104
104
  didWarnAboutComponentAccess = true;
105
- console.warn(`Accessing components by name is not supported.\nPlease use the component type instead. This may keep working in local development but it will fail when bundling your application.\n\nYou can import other modules your main module to get access to types\nor if you use npmdefs you can make types available globally using globalThis:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis`);
105
+ console.warn(`Accessing components by name is not supported.\nPlease use the component type instead. This may keep working in local development but it will fail when bundling your application.\n\nYou can import other modules your main module to get access to types\nor if you use npmdefs you can make types available globally using globalThis:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis`, componentType);
106
106
  }
107
107
  }
108
108
  if (debug)
@@ -146,7 +146,7 @@ export function getComponents<T>(obj: Object3D, componentType: Constructor<T>, a
146
146
 
147
147
  export function getComponentInChildren<T>(obj: Object3D, componentType: Constructor<T>, includeInactive?: boolean) {
148
148
  const res = getComponent(obj, componentType);
149
- if (includeInactive === false && res.enabled === false) return null;
149
+ if (includeInactive === false && res?.enabled === false) return null;
150
150
  if (res) return res;
151
151
  for (let i = 0; i < obj?.children?.length; i++) {
152
152
  const res = getComponentInChildren(obj.children[i], componentType);