@needle-tools/engine 2.66.1-pre → 2.67.0-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 (230) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/needle-engine.js +34306 -26230
  3. package/dist/needle-engine.umd.cjs +743 -298
  4. package/lib/engine/api.d.ts +4 -0
  5. package/lib/engine/api.js +10 -0
  6. package/lib/engine/api.js.map +1 -1
  7. package/lib/engine/codegen/register_types.js +23 -7
  8. package/lib/engine/codegen/register_types.js.map +1 -1
  9. package/lib/engine/debug/debug_overlay.js +7 -1
  10. package/lib/engine/debug/debug_overlay.js.map +1 -1
  11. package/lib/engine/engine_addressables.js +2 -2
  12. package/lib/engine/engine_addressables.js.map +1 -1
  13. package/lib/engine/engine_assetdatabase.d.ts +17 -51
  14. package/lib/engine/engine_assetdatabase.js +252 -126
  15. package/lib/engine/engine_assetdatabase.js.map +1 -1
  16. package/lib/engine/engine_components.js +13 -1
  17. package/lib/engine/engine_components.js.map +1 -1
  18. package/lib/engine/engine_components_internal.d.ts +8 -0
  19. package/lib/engine/engine_components_internal.js +29 -0
  20. package/lib/engine/engine_components_internal.js.map +1 -0
  21. package/lib/engine/engine_constants.d.ts +1 -0
  22. package/lib/engine/engine_constants.js +1 -0
  23. package/lib/engine/engine_constants.js.map +1 -1
  24. package/lib/engine/engine_context_registry.d.ts +2 -0
  25. package/lib/engine/engine_context_registry.js +6 -0
  26. package/lib/engine/engine_context_registry.js.map +1 -1
  27. package/lib/engine/engine_editor-sync.d.ts +9 -0
  28. package/lib/engine/engine_editor-sync.js +8 -0
  29. package/lib/engine/engine_editor-sync.js.map +1 -0
  30. package/lib/engine/engine_element_loading.js +1 -1
  31. package/lib/engine/engine_element_loading.js.map +1 -1
  32. package/lib/engine/engine_gameobject.js +15 -20
  33. package/lib/engine/engine_gameobject.js.map +1 -1
  34. package/lib/engine/engine_gltf_builtin_components.d.ts +2 -3
  35. package/lib/engine/engine_gltf_builtin_components.js +23 -6
  36. package/lib/engine/engine_gltf_builtin_components.js.map +1 -1
  37. package/lib/engine/engine_networking_auto.d.ts +1 -0
  38. package/lib/engine/engine_networking_auto.js +42 -9
  39. package/lib/engine/engine_networking_auto.js.map +1 -1
  40. package/lib/engine/engine_patcher.d.ts +8 -0
  41. package/lib/engine/engine_patcher.js +98 -0
  42. package/lib/engine/engine_patcher.js.map +1 -0
  43. package/lib/engine/engine_physics.d.ts +5 -1
  44. package/lib/engine/engine_physics.js +11 -1
  45. package/lib/engine/engine_physics.js.map +1 -1
  46. package/lib/engine/engine_scenetools.js +0 -1
  47. package/lib/engine/engine_scenetools.js.map +1 -1
  48. package/lib/engine/engine_serialization_core.js +4 -0
  49. package/lib/engine/engine_serialization_core.js.map +1 -1
  50. package/lib/engine/engine_setup.d.ts +1 -1
  51. package/lib/engine/engine_setup.js +9 -5
  52. package/lib/engine/engine_setup.js.map +1 -1
  53. package/lib/engine/engine_texture.d.ts +6 -1
  54. package/lib/engine/engine_texture.js +39 -1
  55. package/lib/engine/engine_texture.js.map +1 -1
  56. package/lib/engine/engine_types.d.ts +4 -0
  57. package/lib/engine/engine_types.js.map +1 -1
  58. package/lib/engine/engine_utils.js +3 -2
  59. package/lib/engine/engine_utils.js.map +1 -1
  60. package/lib/engine/extensions/NEEDLE_progressive.d.ts +0 -1
  61. package/lib/engine/extensions/NEEDLE_progressive.js +24 -26
  62. package/lib/engine/extensions/NEEDLE_progressive.js.map +1 -1
  63. package/lib/engine/extensions/extensions.d.ts +4 -1
  64. package/lib/engine/extensions/extensions.js +16 -0
  65. package/lib/engine/extensions/extensions.js.map +1 -1
  66. package/lib/engine/extensions/usage_tracker.d.ts +12 -0
  67. package/lib/engine/extensions/usage_tracker.js +59 -0
  68. package/lib/engine/extensions/usage_tracker.js.map +1 -0
  69. package/lib/engine-components/AnimatorController.js +4 -0
  70. package/lib/engine-components/AnimatorController.js.map +1 -1
  71. package/lib/engine-components/AudioSource.js +2 -1
  72. package/lib/engine-components/AudioSource.js.map +1 -1
  73. package/lib/engine-components/Camera.d.ts +6 -0
  74. package/lib/engine-components/Camera.js +70 -31
  75. package/lib/engine-components/Camera.js.map +1 -1
  76. package/lib/engine-components/Component.d.ts +52 -0
  77. package/lib/engine-components/Component.js +55 -14
  78. package/lib/engine-components/Component.js.map +1 -1
  79. package/lib/engine-components/Networking.js +19 -0
  80. package/lib/engine-components/Networking.js.map +1 -1
  81. package/lib/engine-components/OrbitControls.d.ts +2 -0
  82. package/lib/engine-components/OrbitControls.js +9 -0
  83. package/lib/engine-components/OrbitControls.js.map +1 -1
  84. package/lib/engine-components/ParticleSystem.js +11 -1
  85. package/lib/engine-components/ParticleSystem.js.map +1 -1
  86. package/lib/engine-components/ReflectionProbe.js +18 -6
  87. package/lib/engine-components/ReflectionProbe.js.map +1 -1
  88. package/lib/engine-components/Renderer.d.ts +1 -1
  89. package/lib/engine-components/Renderer.js +24 -6
  90. package/lib/engine-components/Renderer.js.map +1 -1
  91. package/lib/engine-components/Skybox.js +2 -0
  92. package/lib/engine-components/Skybox.js.map +1 -1
  93. package/lib/engine-components/SmoothFollow.js +1 -2
  94. package/lib/engine-components/SmoothFollow.js.map +1 -1
  95. package/lib/engine-components/WebARCameraBackground.d.ts +19 -0
  96. package/lib/engine-components/WebARCameraBackground.js +185 -0
  97. package/lib/engine-components/WebARCameraBackground.js.map +1 -0
  98. package/lib/engine-components/WebXR.d.ts +4 -0
  99. package/lib/engine-components/WebXR.js +11 -8
  100. package/lib/engine-components/WebXR.js.map +1 -1
  101. package/lib/engine-components/WebXRAvatar.js +1 -0
  102. package/lib/engine-components/WebXRAvatar.js.map +1 -1
  103. package/lib/engine-components/codegen/components.d.ts +14 -6
  104. package/lib/engine-components/codegen/components.js +14 -6
  105. package/lib/engine-components/codegen/components.js.map +1 -1
  106. package/lib/engine-components/js-extensions/Object3D.js +4 -1
  107. package/lib/engine-components/js-extensions/Object3D.js.map +1 -1
  108. package/lib/engine-components/postprocessing/Effects/Antialiasing.d.ts +13 -0
  109. package/lib/engine-components/postprocessing/Effects/Antialiasing.js +46 -0
  110. package/lib/engine-components/postprocessing/Effects/Antialiasing.js.map +1 -0
  111. package/lib/engine-components/postprocessing/Effects/Bloom.d.ts +12 -0
  112. package/lib/engine-components/postprocessing/Effects/Bloom.js +76 -0
  113. package/lib/engine-components/postprocessing/Effects/Bloom.js.map +1 -0
  114. package/lib/engine-components/postprocessing/Effects/ChromaticAberration.d.ts +8 -0
  115. package/lib/engine-components/postprocessing/Effects/ChromaticAberration.js +39 -0
  116. package/lib/engine-components/postprocessing/Effects/ChromaticAberration.js.map +1 -0
  117. package/lib/engine-components/postprocessing/Effects/ColorAdjustments.d.ts +12 -0
  118. package/lib/engine-components/postprocessing/Effects/ColorAdjustments.js +96 -0
  119. package/lib/engine-components/postprocessing/Effects/ColorAdjustments.js.map +1 -0
  120. package/lib/engine-components/postprocessing/Effects/DepthOfField.d.ts +21 -0
  121. package/lib/engine-components/postprocessing/Effects/DepthOfField.js +87 -0
  122. package/lib/engine-components/postprocessing/Effects/DepthOfField.js.map +1 -0
  123. package/lib/engine-components/postprocessing/Effects/Pixelation.d.ts +7 -0
  124. package/lib/engine-components/postprocessing/Effects/Pixelation.js +30 -0
  125. package/lib/engine-components/postprocessing/Effects/Pixelation.js.map +1 -0
  126. package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusion.d.ts +11 -0
  127. package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusion.js +70 -0
  128. package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusion.js.map +1 -0
  129. package/lib/engine-components/postprocessing/Effects/Tonemapping.d.ts +16 -0
  130. package/lib/engine-components/postprocessing/Effects/Tonemapping.js +52 -0
  131. package/lib/engine-components/postprocessing/Effects/Tonemapping.js.map +1 -0
  132. package/lib/engine-components/postprocessing/Effects/Vignette.d.ts +11 -0
  133. package/lib/engine-components/postprocessing/Effects/Vignette.js +57 -0
  134. package/lib/engine-components/postprocessing/Effects/Vignette.js.map +1 -0
  135. package/lib/engine-components/postprocessing/PostProcessingEffect.d.ts +29 -0
  136. package/lib/engine-components/postprocessing/PostProcessingEffect.js +89 -0
  137. package/lib/engine-components/postprocessing/PostProcessingEffect.js.map +1 -0
  138. package/lib/engine-components/postprocessing/PostProcessingHandler.d.ts +13 -0
  139. package/lib/engine-components/postprocessing/PostProcessingHandler.js +119 -0
  140. package/lib/engine-components/postprocessing/PostProcessingHandler.js.map +1 -0
  141. package/lib/engine-components/postprocessing/Volume.d.ts +23 -0
  142. package/lib/engine-components/postprocessing/Volume.js +176 -0
  143. package/lib/engine-components/postprocessing/Volume.js.map +1 -0
  144. package/lib/engine-components/postprocessing/VolumeParameter.d.ts +21 -0
  145. package/lib/engine-components/postprocessing/VolumeParameter.js +75 -0
  146. package/lib/engine-components/postprocessing/VolumeParameter.js.map +1 -0
  147. package/lib/engine-components/postprocessing/VolumeProfile.d.ts +7 -0
  148. package/lib/engine-components/postprocessing/VolumeProfile.js +42 -0
  149. package/lib/engine-components/postprocessing/VolumeProfile.js.map +1 -0
  150. package/lib/engine-components/timeline/TimelineTracks.js +14 -15
  151. package/lib/engine-components/timeline/TimelineTracks.js.map +1 -1
  152. package/lib/engine-components/ui/Text.js +28 -170
  153. package/lib/engine-components/ui/Text.js.map +1 -1
  154. package/lib/engine-components-experimental/networking/PlayerSync.d.ts +18 -0
  155. package/lib/engine-components-experimental/networking/PlayerSync.js +61 -7
  156. package/lib/engine-components-experimental/networking/PlayerSync.js.map +1 -1
  157. package/lib/include/three/ARButton.d.ts +1 -1
  158. package/lib/include/three/ARButton.js +11 -19
  159. package/lib/include/three/ARButton.js.map +1 -1
  160. package/lib/include/three/VRButton.js +1 -4
  161. package/lib/include/three/VRButton.js.map +1 -1
  162. package/package.json +3 -2
  163. package/plugins/vite/drop-client.js +77 -0
  164. package/plugins/vite/drop.js +81 -0
  165. package/plugins/vite/editor-connection.js +121 -0
  166. package/plugins/vite/index.js +9 -4
  167. package/src/engine/api.ts +30 -1
  168. package/src/engine/codegen/register_types.js +25 -9
  169. package/src/engine/debug/debug_overlay.ts +7 -1
  170. package/src/engine/engine_addressables.ts +2 -2
  171. package/src/engine/engine_assetdatabase.ts +291 -184
  172. package/src/engine/engine_components.ts +20 -1
  173. package/src/engine/engine_components_internal.ts +30 -0
  174. package/src/engine/engine_constants.ts +4 -1
  175. package/src/engine/engine_context_registry.ts +7 -0
  176. package/src/engine/engine_editor-sync.ts +21 -0
  177. package/src/engine/engine_element_loading.ts +1 -1
  178. package/src/engine/engine_gameobject.ts +16 -21
  179. package/src/engine/engine_gltf_builtin_components.ts +30 -15
  180. package/src/engine/engine_networking_auto.ts +48 -11
  181. package/src/engine/engine_patcher.ts +113 -0
  182. package/src/engine/engine_physics.ts +15 -2
  183. package/src/engine/engine_scenetools.ts +0 -1
  184. package/src/engine/engine_serialization_core.ts +6 -0
  185. package/src/engine/engine_setup.ts +11 -5
  186. package/src/engine/engine_texture.ts +54 -5
  187. package/src/engine/engine_types.ts +6 -1
  188. package/src/engine/engine_utils.ts +6 -5
  189. package/src/engine/extensions/NEEDLE_progressive.ts +32 -32
  190. package/src/engine/extensions/extensions.ts +22 -1
  191. package/src/engine/extensions/usage_tracker.ts +91 -0
  192. package/src/engine-components/AnimatorController.ts +2 -0
  193. package/src/engine-components/AudioSource.ts +1 -1
  194. package/src/engine-components/Camera.ts +77 -37
  195. package/src/engine-components/Component.ts +74 -30
  196. package/src/engine-components/Networking.ts +9 -1
  197. package/src/engine-components/OrbitControls.ts +11 -2
  198. package/src/engine-components/ParticleSystem.ts +9 -1
  199. package/src/engine-components/ReflectionProbe.ts +17 -7
  200. package/src/engine-components/Renderer.ts +22 -5
  201. package/src/engine-components/Skybox.ts +2 -0
  202. package/src/engine-components/SmoothFollow.ts +4 -4
  203. package/src/engine-components/WebARCameraBackground.ts +215 -0
  204. package/src/engine-components/WebXR.ts +12 -8
  205. package/src/engine-components/WebXRAvatar.ts +1 -0
  206. package/src/engine-components/codegen/components.ts +14 -6
  207. package/src/engine-components/js-extensions/Object3D.ts +6 -1
  208. package/src/engine-components/postprocessing/Effects/Antialiasing.ts +52 -0
  209. package/src/engine-components/postprocessing/Effects/Bloom.ts +75 -0
  210. package/src/engine-components/postprocessing/Effects/ChromaticAberration.ts +36 -0
  211. package/src/engine-components/postprocessing/Effects/ColorAdjustments.ts +114 -0
  212. package/src/engine-components/postprocessing/Effects/DepthOfField.ts +90 -0
  213. package/src/engine-components/postprocessing/Effects/Pixelation.ts +28 -0
  214. package/src/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusion.ts +71 -0
  215. package/src/engine-components/postprocessing/Effects/Tonemapping.ts +55 -0
  216. package/src/engine-components/postprocessing/Effects/Vignette.ts +55 -0
  217. package/src/engine-components/postprocessing/PostProcessingEffect.ts +112 -0
  218. package/src/engine-components/postprocessing/PostProcessingHandler.ts +148 -0
  219. package/src/engine-components/postprocessing/Volume.ts +194 -0
  220. package/src/engine-components/postprocessing/VolumeParameter.ts +85 -0
  221. package/src/engine-components/postprocessing/VolumeProfile.ts +40 -0
  222. package/src/engine-components/timeline/TimelineTracks.ts +16 -17
  223. package/src/engine-components/ui/Text.ts +37 -174
  224. package/src/engine-components-experimental/networking/PlayerSync.ts +68 -7
  225. package/src/include/three/ARButton.js +13 -24
  226. package/src/include/three/VRButton.js +1 -7
  227. package/lib/engine-components/Volume.d.ts +0 -34
  228. package/lib/engine-components/Volume.js +0 -140
  229. package/lib/engine-components/Volume.js.map +0 -1
  230. package/src/engine-components/Volume.ts +0 -141
@@ -1,5 +1,5 @@
1
1
  import { TypeStore } from "./../engine_typestore"
2
-
2
+
3
3
  // Import types
4
4
  import { __Ignore } from "../../engine-components/codegen/components";
5
5
  import { AlignmentConstraint } from "../../engine-components/AlignmentConstraint";
@@ -9,6 +9,7 @@ import { AnimationExtension } from "../../engine-components/export/usdz/extensio
9
9
  import { AnimationTrackHandler } from "../../engine-components/timeline/TimelineTracks";
10
10
  import { Animator } from "../../engine-components/Animator";
11
11
  import { AnimatorController } from "../../engine-components/AnimatorController";
12
+ import { Antialiasing } from "../../engine-components/postprocessing/Effects/Antialiasing";
12
13
  import { AttachedObject } from "../../engine-components/WebXRController";
13
14
  import { AudioListener } from "../../engine-components/AudioListener";
14
15
  import { AudioSource } from "../../engine-components/AudioSource";
@@ -25,6 +26,7 @@ import { AvatarModel } from "../../engine-components/AvatarLoader";
25
26
  import { AxesHelper } from "../../engine-components/AxesHelper";
26
27
  import { BaseUIComponent } from "../../engine-components/ui/BaseUIComponent";
27
28
  import { BasicIKConstraint } from "../../engine-components/BasicIKConstraint";
29
+ import { Bloom } from "../../engine-components/postprocessing/Effects/Bloom";
28
30
  import { BoxCollider } from "../../engine-components/Collider";
29
31
  import { BoxGizmo } from "../../engine-components/Gizmos";
30
32
  import { BoxHelperComponent } from "../../engine-components/BoxHelperComponent";
@@ -36,13 +38,15 @@ import { CanvasGroup } from "../../engine-components/ui/CanvasGroup";
36
38
  import { CapsuleCollider } from "../../engine-components/Collider";
37
39
  import { CharacterController } from "../../engine-components/CharacterController";
38
40
  import { CharacterControllerInput } from "../../engine-components/CharacterController";
41
+ import { ChromaticAberration } from "../../engine-components/postprocessing/Effects/ChromaticAberration";
39
42
  import { Collider } from "../../engine-components/Collider";
40
- import { ColorAdjustments } from "../../engine-components/Volume";
43
+ import { ColorAdjustments } from "../../engine-components/postprocessing/Effects/ColorAdjustments";
41
44
  import { ColorBySpeedModule } from "../../engine-components/ParticleSystemModules";
42
45
  import { ColorOverLifetimeModule } from "../../engine-components/ParticleSystemModules";
43
46
  import { ControlTrackHandler } from "../../engine-components/timeline/TimelineTracks";
44
47
  import { Deletable } from "../../engine-components/DeleteBox";
45
48
  import { DeleteBox } from "../../engine-components/DeleteBox";
49
+ import { DepthOfField } from "../../engine-components/postprocessing/Effects/DepthOfField";
46
50
  import { DeviceFlag } from "../../engine-components/DeviceFlag";
47
51
  import { DragControls } from "../../engine-components/DragControls";
48
52
  import { DropListener } from "../../engine-components/DropListener";
@@ -94,11 +98,13 @@ import { ParticleBurst } from "../../engine-components/ParticleSystemModules";
94
98
  import { ParticleSubEmitter } from "../../engine-components/ParticleSystemSubEmitter";
95
99
  import { ParticleSystem } from "../../engine-components/ParticleSystem";
96
100
  import { ParticleSystemRenderer } from "../../engine-components/ParticleSystem";
101
+ import { PixelationEffect } from "../../engine-components/postprocessing/Effects/Pixelation";
97
102
  import { PlayableDirector } from "../../engine-components/timeline/PlayableDirector";
98
103
  import { PlayerColor } from "../../engine-components/PlayerColor";
99
104
  import { PlayerState } from "../../engine-components-experimental/networking/PlayerSync";
100
105
  import { PlayerSync } from "../../engine-components-experimental/networking/PlayerSync";
101
106
  import { PointerEventData } from "../../engine-components/ui/PointerEvents";
107
+ import { PostProcessingHandler } from "../../engine-components/postprocessing/PostProcessingHandler";
102
108
  import { PresentationMode } from "../../engine-components-experimental/Presentation";
103
109
  import { RawImage } from "../../engine-components/ui/Image";
104
110
  import { Raycaster } from "../../engine-components/ui/Raycaster";
@@ -114,6 +120,7 @@ import { Rigidbody } from "../../engine-components/RigidBody";
114
120
  import { RotationBySpeedModule } from "../../engine-components/ParticleSystemModules";
115
121
  import { RotationOverLifetimeModule } from "../../engine-components/ParticleSystemModules";
116
122
  import { ScreenCapture } from "../../engine-components/ScreenCapture";
123
+ import { ScreenSpaceAmbientOcclusion } from "../../engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusion";
117
124
  import { ShadowCatcher } from "../../engine-components/ShadowCatcher";
118
125
  import { ShapeModule } from "../../engine-components/ParticleSystemModules";
119
126
  import { SignalAsset } from "../../engine-components/timeline/SignalAsset";
@@ -142,7 +149,7 @@ import { TestRunner } from "../../engine-components/TestRunner";
142
149
  import { TestSimulateUserData } from "../../engine-components/TestRunner";
143
150
  import { Text } from "../../engine-components/ui/Text";
144
151
  import { TextureSheetAnimationModule } from "../../engine-components/ParticleSystemModules";
145
- import { ToneMapping } from "../../engine-components/Volume";
152
+ import { ToneMapping } from "../../engine-components/postprocessing/Effects/Tonemapping";
146
153
  import { TrailModule } from "../../engine-components/ParticleSystemModules";
147
154
  import { TransformData } from "../../engine-components/export/usdz/extensions/Animation";
148
155
  import { TransformGizmo } from "../../engine-components/TransformGizmo";
@@ -153,13 +160,14 @@ import { USDZExporter } from "../../engine-components/export/usdz/USDZExporter";
153
160
  import { VelocityOverLifetimeModule } from "../../engine-components/ParticleSystemModules";
154
161
  import { VerticalLayoutGroup } from "../../engine-components/ui/Layout";
155
162
  import { VideoPlayer } from "../../engine-components/VideoPlayer";
163
+ import { Vignette } from "../../engine-components/postprocessing/Effects/Vignette";
156
164
  import { Voip } from "../../engine-components/Voip";
157
- import { Volume } from "../../engine-components/Volume";
158
- import { VolumeComponent } from "../../engine-components/Volume";
159
- import { VolumeParameter } from "../../engine-components/Volume";
160
- import { VolumeProfile } from "../../engine-components/Volume";
165
+ import { Volume } from "../../engine-components/postprocessing/Volume";
166
+ import { VolumeParameter } from "../../engine-components/postprocessing/VolumeParameter";
167
+ import { VolumeProfile } from "../../engine-components/postprocessing/VolumeProfile";
161
168
  import { VRUserState } from "../../engine-components/WebXRSync";
162
169
  import { WebAR } from "../../engine-components/WebXR";
170
+ import { WebARCameraBackground } from "../../engine-components/WebARCameraBackground";
163
171
  import { WebARSessionRoot } from "../../engine-components/WebARSessionRoot";
164
172
  import { WebXR } from "../../engine-components/WebXR";
165
173
  import { WebXRAvatar } from "../../engine-components/WebXRAvatar";
@@ -170,7 +178,7 @@ import { XRGrabModel } from "../../engine-components/WebXRGrabRendering";
170
178
  import { XRGrabRendering } from "../../engine-components/WebXRGrabRendering";
171
179
  import { XRRig } from "../../engine-components/WebXRRig";
172
180
  import { XRState } from "../../engine-components/XRFlag";
173
-
181
+
174
182
  // Register types
175
183
  TypeStore.add("__Ignore", __Ignore);
176
184
  TypeStore.add("AlignmentConstraint", AlignmentConstraint);
@@ -180,6 +188,7 @@ TypeStore.add("AnimationExtension", AnimationExtension);
180
188
  TypeStore.add("AnimationTrackHandler", AnimationTrackHandler);
181
189
  TypeStore.add("Animator", Animator);
182
190
  TypeStore.add("AnimatorController", AnimatorController);
191
+ TypeStore.add("Antialiasing", Antialiasing);
183
192
  TypeStore.add("AttachedObject", AttachedObject);
184
193
  TypeStore.add("AudioListener", AudioListener);
185
194
  TypeStore.add("AudioSource", AudioSource);
@@ -196,6 +205,7 @@ TypeStore.add("AvatarModel", AvatarModel);
196
205
  TypeStore.add("AxesHelper", AxesHelper);
197
206
  TypeStore.add("BaseUIComponent", BaseUIComponent);
198
207
  TypeStore.add("BasicIKConstraint", BasicIKConstraint);
208
+ TypeStore.add("Bloom", Bloom);
199
209
  TypeStore.add("BoxCollider", BoxCollider);
200
210
  TypeStore.add("BoxGizmo", BoxGizmo);
201
211
  TypeStore.add("BoxHelperComponent", BoxHelperComponent);
@@ -207,6 +217,7 @@ TypeStore.add("CanvasGroup", CanvasGroup);
207
217
  TypeStore.add("CapsuleCollider", CapsuleCollider);
208
218
  TypeStore.add("CharacterController", CharacterController);
209
219
  TypeStore.add("CharacterControllerInput", CharacterControllerInput);
220
+ TypeStore.add("ChromaticAberration", ChromaticAberration);
210
221
  TypeStore.add("Collider", Collider);
211
222
  TypeStore.add("ColorAdjustments", ColorAdjustments);
212
223
  TypeStore.add("ColorBySpeedModule", ColorBySpeedModule);
@@ -214,6 +225,7 @@ TypeStore.add("ColorOverLifetimeModule", ColorOverLifetimeModule);
214
225
  TypeStore.add("ControlTrackHandler", ControlTrackHandler);
215
226
  TypeStore.add("Deletable", Deletable);
216
227
  TypeStore.add("DeleteBox", DeleteBox);
228
+ TypeStore.add("DepthOfField", DepthOfField);
217
229
  TypeStore.add("DeviceFlag", DeviceFlag);
218
230
  TypeStore.add("DragControls", DragControls);
219
231
  TypeStore.add("DropListener", DropListener);
@@ -265,11 +277,13 @@ TypeStore.add("ParticleBurst", ParticleBurst);
265
277
  TypeStore.add("ParticleSubEmitter", ParticleSubEmitter);
266
278
  TypeStore.add("ParticleSystem", ParticleSystem);
267
279
  TypeStore.add("ParticleSystemRenderer", ParticleSystemRenderer);
280
+ TypeStore.add("PixelationEffect", PixelationEffect);
268
281
  TypeStore.add("PlayableDirector", PlayableDirector);
269
282
  TypeStore.add("PlayerColor", PlayerColor);
270
283
  TypeStore.add("PlayerState", PlayerState);
271
284
  TypeStore.add("PlayerSync", PlayerSync);
272
285
  TypeStore.add("PointerEventData", PointerEventData);
286
+ TypeStore.add("PostProcessingHandler", PostProcessingHandler);
273
287
  TypeStore.add("PresentationMode", PresentationMode);
274
288
  TypeStore.add("RawImage", RawImage);
275
289
  TypeStore.add("Raycaster", Raycaster);
@@ -285,6 +299,7 @@ TypeStore.add("Rigidbody", Rigidbody);
285
299
  TypeStore.add("RotationBySpeedModule", RotationBySpeedModule);
286
300
  TypeStore.add("RotationOverLifetimeModule", RotationOverLifetimeModule);
287
301
  TypeStore.add("ScreenCapture", ScreenCapture);
302
+ TypeStore.add("ScreenSpaceAmbientOcclusion", ScreenSpaceAmbientOcclusion);
288
303
  TypeStore.add("ShadowCatcher", ShadowCatcher);
289
304
  TypeStore.add("ShapeModule", ShapeModule);
290
305
  TypeStore.add("SignalAsset", SignalAsset);
@@ -324,13 +339,14 @@ TypeStore.add("USDZExporter", USDZExporter);
324
339
  TypeStore.add("VelocityOverLifetimeModule", VelocityOverLifetimeModule);
325
340
  TypeStore.add("VerticalLayoutGroup", VerticalLayoutGroup);
326
341
  TypeStore.add("VideoPlayer", VideoPlayer);
342
+ TypeStore.add("Vignette", Vignette);
327
343
  TypeStore.add("Voip", Voip);
328
344
  TypeStore.add("Volume", Volume);
329
- TypeStore.add("VolumeComponent", VolumeComponent);
330
345
  TypeStore.add("VolumeParameter", VolumeParameter);
331
346
  TypeStore.add("VolumeProfile", VolumeProfile);
332
347
  TypeStore.add("VRUserState", VRUserState);
333
348
  TypeStore.add("WebAR", WebAR);
349
+ TypeStore.add("WebARCameraBackground", WebARCameraBackground);
334
350
  TypeStore.add("WebARSessionRoot", WebARSessionRoot);
335
351
  TypeStore.add("WebXR", WebXR);
336
352
  TypeStore.add("WebXRAvatar", WebXRAvatar);
@@ -36,7 +36,13 @@ export function makeErrorsVisibleForDevelopment() {
36
36
  };
37
37
  window.addEventListener("error", (event) => {
38
38
  if (!event) return;
39
- addLog(LogType.Error, event.error, event.filename, event.lineno);
39
+ let message = event.error;
40
+ if (message === undefined) {
41
+ if (isLocalNetwork())
42
+ console.warn("Received unknown error", event, event.target);
43
+ return;
44
+ }
45
+ addLog(LogType.Error, message, event.filename, event.lineno);
40
46
  onReceivedError();
41
47
  }, true);
42
48
  window.addEventListener("unhandledrejection", (event) => {
@@ -121,8 +121,8 @@ export class AssetReference {
121
121
  if (debug) console.log("Unload", this.asset);
122
122
  // TODO: we need a way to remove objects from the context (including components) without actually "destroying" them
123
123
  if (this.asset.scene)
124
- destroy(this.asset.scene, true);
125
- else destroy(this.asset, true);
124
+ destroy(this.asset.scene, true, true);
125
+ else destroy(this.asset, true, true);
126
126
  }
127
127
  this.asset = null;
128
128
  this._rawBinary = undefined;