@needle-tools/engine 2.26.0-pre → 2.27.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.
- package/CHANGELOG.md +13 -0
- package/dist/needle-engine.d.ts +2 -8
- package/dist/needle-engine.js +37 -37
- package/dist/needle-engine.js.map +3 -3
- package/dist/needle-engine.min.js +9 -9
- package/dist/needle-engine.min.js.map +3 -3
- package/lib/engine/engine_serialization_builtin_serializer.js +15 -4
- package/lib/engine/engine_serialization_builtin_serializer.js.map +1 -1
- package/lib/engine/extensions/NEEDLE_techniques_webgl.js +1 -1
- package/lib/engine/extensions/NEEDLE_techniques_webgl.js.map +1 -1
- package/lib/engine/extensions/extension_utils.js +6 -6
- package/lib/engine/extensions/extension_utils.js.map +1 -1
- package/lib/engine-components/AvatarLoader.d.ts +0 -3
- package/lib/engine-components/AvatarLoader.js +24 -53
- package/lib/engine-components/AvatarLoader.js.map +1 -1
- package/lib/engine-components/Component.js +10 -0
- package/lib/engine-components/Component.js.map +1 -1
- package/lib/engine-components/Renderer.d.ts +0 -2
- package/lib/engine-components/Renderer.js +0 -9
- package/lib/engine-components/Renderer.js.map +1 -1
- package/lib/engine-components/SmoothFollow.js +1 -1
- package/lib/engine-components/SmoothFollow.js.map +1 -1
- package/lib/engine-components/SpectatorCamera.d.ts +2 -3
- package/lib/engine-components/SpectatorCamera.js +50 -43
- package/lib/engine-components/SpectatorCamera.js.map +1 -1
- package/lib/engine-components/WebXRController.js +1 -0
- package/lib/engine-components/WebXRController.js.map +1 -1
- package/lib/engine-components/ui/BaseUIComponent.js +8 -5
- package/lib/engine-components/ui/BaseUIComponent.js.map +1 -1
- package/lib/engine-components/ui/Image.js +4 -0
- package/lib/engine-components/ui/Image.js.map +1 -1
- package/lib/engine-components/ui/RectTransform.js +1 -1
- package/lib/engine-components/ui/RectTransform.js.map +1 -1
- package/package.json +1 -1
- package/src/engine/engine_serialization_builtin_serializer.ts +15 -3
- package/src/engine/extensions/NEEDLE_techniques_webgl.ts +1 -1
- package/src/engine/extensions/extension_utils.ts +6 -6
- package/src/engine-components/AvatarLoader.ts +24 -59
- package/src/engine-components/Component.ts +14 -3
- package/src/engine-components/Renderer.ts +0 -11
- package/src/engine-components/SmoothFollow.ts +1 -1
- package/src/engine-components/SpectatorCamera.ts +62 -48
- package/src/engine-components/WebXRController.ts +1 -0
- package/src/engine-components/ui/BaseUIComponent.ts +12 -5
- package/src/engine-components/ui/Image.ts +4 -0
- package/src/engine-components/ui/RectTransform.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,19 @@ All notable changes to this package will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [2.27.0-pre] - 2022-10-06
|
|
8
|
+
- Fix: EventList failing to find target when targeting a Object3D without any components
|
|
9
|
+
- Fix: text now showing up when disabling and enabling again after the underlying three-mesh-ui components have been created
|
|
10
|
+
- Fix: Builtin sprites not rendering correctly in production builds
|
|
11
|
+
- Change: Bump needle glTF transform extensions version
|
|
12
|
+
- Change: json pointers now have correct format (e.g. ``/textures/0`` instead ``textures/0``)
|
|
13
|
+
- Change: Bump UnityGLTF version
|
|
14
|
+
|
|
15
|
+
## [2.26.1-pre] - 2022-10-05
|
|
16
|
+
- Fix animating ``activeSelf`` on GameObject in canvas hierarchy
|
|
17
|
+
- Fix SpectatorCam component
|
|
18
|
+
- Fix WebXRController raycast line being rendered as huge line before first world hit
|
|
19
|
+
|
|
7
20
|
## [2.26.0-pre] - 2022-10-05
|
|
8
21
|
- Add: experimental AlignmentConstraint and OffsetConstraint
|
|
9
22
|
- Remove: MeshCollider script since it is not supported yet
|
package/dist/needle-engine.d.ts
CHANGED
|
@@ -896,8 +896,6 @@ declare module "engine-components/Renderer" {
|
|
|
896
896
|
get lightmap(): Texture | null;
|
|
897
897
|
set lightmap(tex: Texture | null | undefined);
|
|
898
898
|
get hasLightmap(): boolean;
|
|
899
|
-
get activeSelf(): boolean;
|
|
900
|
-
set activeSelf(val: boolean | number);
|
|
901
899
|
awake(): void;
|
|
902
900
|
private _isInstancingEnabled;
|
|
903
901
|
private handles;
|
|
@@ -1912,18 +1910,15 @@ declare module "engine-components/AvatarLoader" {
|
|
|
1912
1910
|
rigthHand: THREE.Object3D | null;
|
|
1913
1911
|
get isValid(): boolean;
|
|
1914
1912
|
constructor(root: THREE.Object3D, head: THREE.Object3D, leftHand: THREE.Object3D | null, rigthHand: THREE.Object3D | null);
|
|
1915
|
-
assignRandomColors(): void;
|
|
1916
1913
|
}
|
|
1917
1914
|
export class AvatarLoader {
|
|
1918
1915
|
private readonly avatarRegistryUrl;
|
|
1919
|
-
private avatarModelCache;
|
|
1920
1916
|
getOrCreateNewAvatarInstance(context: Context, avatarId: string | THREE.Object3D): Promise<AvatarModel | null>;
|
|
1921
1917
|
private loadAvatar;
|
|
1922
1918
|
private cacheModel;
|
|
1923
1919
|
private findAvatar;
|
|
1924
1920
|
private findAvatarPart;
|
|
1925
1921
|
private handleCustomAvatarErrors;
|
|
1926
|
-
static assignRandomPlayerColors(model: AvatarModel): void;
|
|
1927
1922
|
}
|
|
1928
1923
|
}
|
|
1929
1924
|
declare module "engine/engine_addressables" {
|
|
@@ -3869,13 +3864,12 @@ declare module "engine-components/SpectatorCamera" {
|
|
|
3869
3864
|
cam: Camera | null;
|
|
3870
3865
|
private _firstPersonMode;
|
|
3871
3866
|
get firstPersonMode(): boolean;
|
|
3872
|
-
set firstPersonMode(
|
|
3867
|
+
set firstPersonMode(val: boolean);
|
|
3873
3868
|
enableFirstPersonMode(): void;
|
|
3874
3869
|
enableThirdPersonMode(): void;
|
|
3875
3870
|
private orbit;
|
|
3876
3871
|
private firstPersonFollow;
|
|
3877
3872
|
private spectatorUIDomElement;
|
|
3878
|
-
private _avatar;
|
|
3879
3873
|
private eventSub_WebXRRequestStartEvent;
|
|
3880
3874
|
private eventSub_WebXRStartEvent;
|
|
3881
3875
|
private eventSub_WebXREndEvent;
|
|
@@ -3888,7 +3882,6 @@ declare module "engine-components/SpectatorCamera" {
|
|
|
3888
3882
|
private onXRSessionStart;
|
|
3889
3883
|
private onXRSessionEnded;
|
|
3890
3884
|
private _sessionHasStarted;
|
|
3891
|
-
private _isFirstStart;
|
|
3892
3885
|
private _firstPersonIsSetup;
|
|
3893
3886
|
private _orbitStartPos;
|
|
3894
3887
|
private _orbitStartRot;
|
|
@@ -3896,6 +3889,7 @@ declare module "engine-components/SpectatorCamera" {
|
|
|
3896
3889
|
private _orbitStartRot2;
|
|
3897
3890
|
onAfterRender(): void;
|
|
3898
3891
|
private setupFollowMode;
|
|
3892
|
+
private updateFollowSettings;
|
|
3899
3893
|
private setAvatarFlagsBeforeRender;
|
|
3900
3894
|
private resetAvatarFlags;
|
|
3901
3895
|
}
|