@dcl/playground-assets 7.20.4-22621752364.commit-d72981b → 7.20.4-22623908379.commit-46ce898

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/dist/beta.d.ts CHANGED
@@ -115,61 +115,6 @@ export declare const assetLoadLoadingStateSystem: AssetLoadLoadingStateSystem;
115
115
  */
116
116
  export declare type AssetLoadLoadingStateSystemCallback = (event: DeepReadonlyObject<PBAssetLoadLoadingState>) => void;
117
117
 
118
- export declare const AudioAnalysis: AudioAnalysisComponentDefinitionExtended;
119
-
120
- export declare interface AudioAnalysisComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBAudioAnalysis> {
121
- /**
122
- * Reads the component data of `entity` into the provided `out` view.
123
- *
124
- * @throws Error if the entity does not have an AudioAnalysis component.
125
- * @param entity - The entity whose AudioAnalysis data will be read.
126
- * @param out - An existing AudioAnalysisView to populate with the latest values.
127
- */
128
- readIntoView(entity: Entity, out: AudioAnalysisView): void;
129
- /**
130
- * Attempts to read the component data of `entity` into the provided `out` view.
131
- *
132
- * @returns `true` if the component exists and data was written into `out`,
133
- * `false` if the entity does not have an AudioAnalysis component.
134
- * @param entity - The entity whose AudioAnalysis data will be read.
135
- * @param out - An existing AudioAnalysisView to populate.
136
- */
137
- tryReadIntoView(entity: Entity, out: AudioAnalysisView): boolean;
138
- /**
139
- * Creates an AudioAnalysis component for the given `entity`.
140
- *
141
- * If a component already exists on the entity, this call fails (does not replace).
142
- *
143
- * @param entity - The entity to attach the component to.
144
- * @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
145
- * @param amplitudeGain - Optional amplitude gain multiplier.
146
- * @param bandsGain - Optional gain multiplier applied to all frequency bands.
147
- */
148
- createAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
149
- amplitudeGain?: number, bandsGain?: number): void;
150
- /**
151
- * Creates the AudioAnalysis component if missing, or replaces the existing one.
152
- *
153
- * @param entity - The target entity.
154
- * @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
155
- * @param amplitudeGain - Optional amplitude gain multiplier.
156
- * @param bandsGain - Optional gain multiplier applied to the frequency bands.
157
- */
158
- createOrReplaceAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
159
- amplitudeGain?: number, bandsGain?: number): void;
160
- }
161
-
162
- /**
163
- * A read-only JavaScript-friendly view of AudioAnalysis ECS data.
164
- *
165
- * `amplitude` represents the aggregated signal strength.
166
- * `bands` represents the processed frequency bands.
167
- */
168
- export declare type AudioAnalysisView = {
169
- amplitude: number;
170
- bands: number[];
171
- };
172
-
173
118
  /** @public */
174
119
  export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
175
120
 
@@ -264,9 +209,6 @@ export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBA
264
209
  /** @public */
265
210
  export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
266
211
 
267
- /** @public */
268
- export declare const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
269
-
270
212
  /** @public */
271
213
  export declare const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
272
214
 
@@ -1379,7 +1321,6 @@ export declare const componentDefinitionByName: {
1379
1321
  "core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
1380
1322
  "core::AssetLoad": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
1381
1323
  "core::AssetLoadLoadingState": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
1382
- "core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
1383
1324
  "core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
1384
1325
  "core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
1385
1326
  "core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
@@ -1387,7 +1328,6 @@ export declare const componentDefinitionByName: {
1387
1328
  "core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
1388
1329
  "core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
1389
1330
  "core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
1390
- "core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
1391
1331
  "core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
1392
1332
  "core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
1393
1333
  "core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
@@ -2092,7 +2032,6 @@ export declare type EventSystemOptions = {
2092
2032
  showFeedback?: boolean;
2093
2033
  showHighlight?: boolean;
2094
2034
  maxPlayerDistance?: number;
2095
- priority?: number;
2096
2035
  };
2097
2036
 
2098
2037
  /**
@@ -2737,8 +2676,7 @@ export declare const enum InputAction {
2737
2676
  IA_ACTION_3 = 10,
2738
2677
  IA_ACTION_4 = 11,
2739
2678
  IA_ACTION_5 = 12,
2740
- IA_ACTION_6 = 13,
2741
- IA_MODIFIER = 14
2679
+ IA_ACTION_6 = 13
2742
2680
  }
2743
2681
 
2744
2682
  export declare const InputModifier: InputModifierComponentDefinitionExtended;
@@ -2786,14 +2724,6 @@ export declare type InstanceCompositeOptions = {
2786
2724
  alreadyRequestedSrc?: Set<string>;
2787
2725
  };
2788
2726
 
2789
- /**
2790
- * @public
2791
- */
2792
- export declare const enum InteractionType {
2793
- CURSOR = 0,
2794
- PROXIMITY = 1
2795
- }
2796
-
2797
2727
  /**
2798
2728
  * @public
2799
2729
  */
@@ -3961,88 +3891,6 @@ export declare namespace MoveContinuous {
3961
3891
  export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveContinuous;
3962
3892
  }
3963
3893
 
3964
- /**
3965
- * @public
3966
- */
3967
- export declare interface MoveRotateScale {
3968
- positionStart: PBVector3 | undefined;
3969
- positionEnd: PBVector3 | undefined;
3970
- rotationStart: PBQuaternion | undefined;
3971
- rotationEnd: PBQuaternion | undefined;
3972
- scaleStart: PBVector3 | undefined;
3973
- scaleEnd: PBVector3 | undefined;
3974
- }
3975
-
3976
- /**
3977
- * @public
3978
- */
3979
- export declare namespace MoveRotateScale {
3980
- export function encode(message: MoveRotateScale, writer?: _m0.Writer): _m0.Writer;
3981
- export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveRotateScale;
3982
- }
3983
-
3984
- /**
3985
- * @public
3986
- */
3987
- export declare interface MoveRotateScaleContinuous {
3988
- positionDirection: PBVector3 | undefined;
3989
- rotationDirection: PBQuaternion | undefined;
3990
- scaleDirection: PBVector3 | undefined;
3991
- speed: number;
3992
- }
3993
-
3994
- /**
3995
- * @public
3996
- */
3997
- export declare namespace MoveRotateScaleContinuous {
3998
- export function encode(message: MoveRotateScaleContinuous, writer?: _m0.Writer): _m0.Writer;
3999
- export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveRotateScaleContinuous;
4000
- }
4001
-
4002
- /**
4003
- * @public
4004
- * Partial params for Tween.Mode.MoveRotateScaleContinuous(). At least one of position, rotation, or scale must be provided.
4005
- */
4006
- export declare interface MoveRotateScaleContinuousModeParams {
4007
- /** Position direction for continuous movement. Optional. */
4008
- position?: {
4009
- direction: PBVector3;
4010
- };
4011
- /** Rotation direction for continuous rotation. Optional. */
4012
- rotation?: {
4013
- direction: PBQuaternion;
4014
- };
4015
- /** Scale direction for continuous scale change. Optional. */
4016
- scale?: {
4017
- direction: PBVector3;
4018
- };
4019
- /** Speed of the animation per second. */
4020
- speed: number;
4021
- }
4022
-
4023
- /**
4024
- * @public
4025
- * Partial params for Tween.Mode.MoveRotateScale(). At least one of position, rotation, or scale must be provided.
4026
- * Use this when building a mode for Tween.createOrReplace() or TweenSequence (e.g. only positionStart/positionEnd).
4027
- */
4028
- export declare interface MoveRotateScaleModeParams {
4029
- /** Position tween (start → end). Optional. */
4030
- position?: {
4031
- start: PBVector3;
4032
- end: PBVector3;
4033
- };
4034
- /** Rotation tween (start → end). Optional. */
4035
- rotation?: {
4036
- start: PBQuaternion;
4037
- end: PBQuaternion;
4038
- };
4039
- /** Scale tween (start → end). Optional. */
4040
- scale?: {
4041
- start: PBVector3;
4042
- end: PBVector3;
4043
- };
4044
- }
4045
-
4046
3894
  export declare const Name: NameComponent;
4047
3895
 
4048
3896
  export declare type NameComponent = LastWriteWinElementSetComponentDefinition<NameType>;
@@ -4513,45 +4361,6 @@ export declare namespace PBAssetLoadLoadingState {
4513
4361
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAssetLoadLoadingState;
4514
4362
  }
4515
4363
 
4516
- /**
4517
- * @public
4518
- */
4519
- export declare interface PBAudioAnalysis {
4520
- /** Parameters section */
4521
- mode: PBAudioAnalysisMode;
4522
- /** Used only when mode == MODE_LOGARITHMIC */
4523
- amplitudeGain?: number | undefined;
4524
- /** End when mode == MODE_LOGARITHMIC */
4525
- bandsGain?: number | undefined;
4526
- /** Result section */
4527
- amplitude: number;
4528
- /** Protobuf doesn't support fixed arrays -> 8 band fields */
4529
- band0: number;
4530
- band1: number;
4531
- band2: number;
4532
- band3: number;
4533
- band4: number;
4534
- band5: number;
4535
- band6: number;
4536
- band7: number;
4537
- }
4538
-
4539
- /**
4540
- * @public
4541
- */
4542
- export declare namespace PBAudioAnalysis {
4543
- export function encode(message: PBAudioAnalysis, writer?: _m0.Writer): _m0.Writer;
4544
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioAnalysis;
4545
- }
4546
-
4547
- /**
4548
- * @public
4549
- */
4550
- export declare const enum PBAudioAnalysisMode {
4551
- MODE_RAW = 0,
4552
- MODE_LOGARITHMIC = 1
4553
- }
4554
-
4555
4364
  /**
4556
4365
  * @public
4557
4366
  */
@@ -4741,36 +4550,6 @@ export declare namespace PBAvatarEquippedData {
4741
4550
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEquippedData;
4742
4551
  }
4743
4552
 
4744
- /**
4745
- * The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
4746
- * as the avatar movement speed, jump height etc.
4747
- */
4748
- /**
4749
- * @public
4750
- */
4751
- export declare interface PBAvatarLocomotionSettings {
4752
- /** Maximum speed when walking (in meters per second) */
4753
- walkSpeed?: number | undefined;
4754
- /** Maximum speed when jogging (in meters per second) */
4755
- jogSpeed?: number | undefined;
4756
- /** Maximum speed when running (in meters per second) */
4757
- runSpeed?: number | undefined;
4758
- /** Height of a regular jump (in meters) */
4759
- jumpHeight?: number | undefined;
4760
- /** Height of a jump while running (in meters) */
4761
- runJumpHeight?: number | undefined;
4762
- /** Cooldown time after a hard landing before the avatar can move again (in seconds) */
4763
- hardLandingCooldown?: number | undefined;
4764
- }
4765
-
4766
- /**
4767
- * @public
4768
- */
4769
- export declare namespace PBAvatarLocomotionSettings {
4770
- export function encode(message: PBAvatarLocomotionSettings, writer?: _m0.Writer): _m0.Writer;
4771
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings;
4772
- }
4773
-
4774
4553
  /**
4775
4554
  * The AvatarModifierArea component can be attached to an Entity to define a region of space where
4776
4555
  * avatar behavior changes.
@@ -5623,8 +5402,6 @@ export declare interface PBPointerEvents_Entry {
5623
5402
  eventType: PointerEventType;
5624
5403
  /** additional configuration for this detection */
5625
5404
  eventInfo: PBPointerEvents_Info | undefined;
5626
- /** the type of interaction source (default 0 == CURSOR) */
5627
- interactionType?: InteractionType | undefined;
5628
5405
  }
5629
5406
 
5630
5407
  /**
@@ -5651,8 +5428,6 @@ export declare interface PBPointerEvents_Info {
5651
5428
  showHighlight?: boolean | undefined;
5652
5429
  /** range of interaction from the avatar's position (default 0) */
5653
5430
  maxPlayerDistance?: number | undefined;
5654
- /** resolution order when multiple events overlap, higher wins (default 0) */
5655
- priority?: number | undefined;
5656
5431
  }
5657
5432
 
5658
5433
  /**
@@ -6089,12 +5864,6 @@ export declare interface PBTween {
6089
5864
  } | {
6090
5865
  $case: "textureMoveContinuous";
6091
5866
  textureMoveContinuous: TextureMoveContinuous;
6092
- } | {
6093
- $case: "moveRotateScale";
6094
- moveRotateScale: MoveRotateScale;
6095
- } | {
6096
- $case: "moveRotateScaleContinuous";
6097
- moveRotateScaleContinuous: MoveRotateScaleContinuous;
6098
5867
  } | undefined;
6099
5868
  /** default true (pause or running) */
6100
5869
  playing?: boolean | undefined;
@@ -6532,7 +6301,6 @@ export declare namespace PBVideoPlayer {
6532
6301
  * an 'instant' transition (like using speed/time = 0)
6533
6302
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
6534
6303
  * the holding entity transform).
6535
- * * The fov defines the Field of View of the virtual camera
6536
6304
  */
6537
6305
  /**
6538
6306
  * @public
@@ -6540,8 +6308,6 @@ export declare namespace PBVideoPlayer {
6540
6308
  export declare interface PBVirtualCamera {
6541
6309
  defaultTransition?: CameraTransition | undefined;
6542
6310
  lookAtEntity?: number | undefined;
6543
- /** default: 60 */
6544
- fov?: number | undefined;
6545
6311
  }
6546
6312
 
6547
6313
  /**
@@ -6731,30 +6497,6 @@ export declare interface PointerEventsSystem {
6731
6497
  * @param entity - Entity where the callback was attached
6732
6498
  */
6733
6499
  removeOnPointerHoverLeave(entity: Entity): void;
6734
- /**
6735
- * @public
6736
- * Remove the callback for onProximityDown event
6737
- * @param entity - Entity where the callback was attached
6738
- */
6739
- removeOnProximityDown(entity: Entity): void;
6740
- /**
6741
- * @public
6742
- * Remove the callback for onProximityUp event
6743
- * @param entity - Entity where the callback was attached
6744
- */
6745
- removeOnProximityUp(entity: Entity): void;
6746
- /**
6747
- * @public
6748
- * Remove the callback for onProximityEnter event
6749
- * @param entity - Entity where the callback was attached
6750
- */
6751
- removeOnProximityEnter(entity: Entity): void;
6752
- /**
6753
- * @public
6754
- * Remove the callback for onProximityLeave event
6755
- * @param entity - Entity where the callback was attached
6756
- */
6757
- removeOnProximityLeave(entity: Entity): void;
6758
6500
  /**
6759
6501
  * @public
6760
6502
  * Execute callback when the user press the InputButton pointing at the entity
@@ -6809,46 +6551,6 @@ export declare interface PointerEventsSystem {
6809
6551
  entity: Entity;
6810
6552
  opts?: Partial<EventSystemOptions>;
6811
6553
  }, cb: EventSystemCallback): void;
6812
- /**
6813
- * @public
6814
- * Execute callback when the user presses the proximity button on the entity
6815
- * @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
6816
- * @param cb - Function to execute when click fires
6817
- */
6818
- onProximityDown(pointerData: {
6819
- entity: Entity;
6820
- opts?: Partial<EventSystemOptions>;
6821
- }, cb: EventSystemCallback): void;
6822
- /**
6823
- * @public
6824
- * Execute callback when the user releases the proximity button on the entity
6825
- * @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
6826
- * @param cb - Function to execute when event fires
6827
- */
6828
- onProximityUp(pointerData: {
6829
- entity: Entity;
6830
- opts?: Partial<EventSystemOptions>;
6831
- }, cb: EventSystemCallback): void;
6832
- /**
6833
- * @public
6834
- * Execute callback when the entity enters the proximity zone of the user
6835
- * @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
6836
- * @param cb - Function to execute when event fires
6837
- */
6838
- onProximityEnter(pointerData: {
6839
- entity: Entity;
6840
- opts?: Partial<EventSystemOptions>;
6841
- }, cb: EventSystemCallback): void;
6842
- /**
6843
- * @public
6844
- * Execute callback when the entity leaves the proximity zone of the user
6845
- * @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
6846
- * @param cb - Function to execute when event fires
6847
- */
6848
- onProximityLeave(pointerData: {
6849
- entity: Entity;
6850
- opts?: Partial<EventSystemOptions>;
6851
- }, cb: EventSystemCallback): void;
6852
6554
  }
6853
6555
 
6854
6556
  /**
@@ -6865,9 +6567,7 @@ export declare const enum PointerEventType {
6865
6567
  PET_UP = 0,
6866
6568
  PET_DOWN = 1,
6867
6569
  PET_HOVER_ENTER = 2,
6868
- PET_HOVER_LEAVE = 3,
6869
- PET_PROXIMITY_ENTER = 4,
6870
- PET_PROXIMITY_LEAVE = 5
6570
+ PET_HOVER_LEAVE = 3
6871
6571
  }
6872
6572
 
6873
6573
  /**
@@ -8084,26 +7784,6 @@ export declare namespace Schemas {
8084
7784
  }) => void;
8085
7785
  }
8086
7786
 
8087
- /**
8088
- * @public
8089
- * Parameters for setMoveRotateScaleContinuous. At least one of position, rotation, or scale must be provided.
8090
- */
8091
- export declare interface SetMoveRotateScaleContinuousParams extends MoveRotateScaleContinuousModeParams {
8092
- /** Duration in milliseconds (defaults to 0 for infinite). */
8093
- duration?: number;
8094
- }
8095
-
8096
- /**
8097
- * @public
8098
- * Parameters for setMoveRotateScale. At least one of position, rotation, or scale must be provided.
8099
- */
8100
- export declare interface SetMoveRotateScaleParams extends MoveRotateScaleModeParams {
8101
- /** Duration of the tween in milliseconds. */
8102
- duration: number;
8103
- /** Easing function (defaults to EF_LINEAR). */
8104
- easingFunction?: EasingFunction;
8105
- }
8106
-
8107
7787
  /** @public */
8108
7788
  export declare const SkyboxTime: LastWriteWinElementSetComponentDefinition<PBSkyboxTime>;
8109
7789
 
@@ -8700,26 +8380,6 @@ export declare interface TweenComponentDefinitionExtended extends LastWriteWinEl
8700
8380
  * @param duration - duration of the tween in milliseconds (defaults to 0 for infinite)
8701
8381
  */
8702
8382
  setTextureMoveContinuous(entity: Entity, direction: PBVector2, speed: number, movementType?: TextureMovementType, duration?: number): void;
8703
- /**
8704
- * @public
8705
- *
8706
- * Creates or replaces a move-rotate-scale tween component that simultaneously animates
8707
- * an entity's position, rotation, and/or scale from start to end. Provide only the
8708
- * properties you need (at least one of position, rotation, or scale).
8709
- * @param entity - entity to apply the tween to
8710
- * @param params - object with optional position, rotation, scale (each with start/end), duration, and optional easingFunction
8711
- */
8712
- setMoveRotateScale(entity: Entity, params: SetMoveRotateScaleParams): void;
8713
- /**
8714
- * @public
8715
- *
8716
- * Creates or replaces a continuous move-rotate-scale tween component that simultaneously
8717
- * moves, rotates, and/or scales an entity continuously. Provide only the properties
8718
- * you need (at least one of position, rotation, or scale).
8719
- * @param entity - entity to apply the tween to
8720
- * @param params - object with optional position, rotation, scale (each with direction), speed, and optional duration
8721
- */
8722
- setMoveRotateScaleContinuous(entity: Entity, params: SetMoveRotateScaleContinuousParams): void;
8723
8383
  }
8724
8384
 
8725
8385
  /**
@@ -8754,16 +8414,6 @@ export declare interface TweenHelper {
8754
8414
  * @returns a texture-move-continuous mode tween
8755
8415
  */
8756
8416
  TextureMoveContinuous: (textureMove: TextureMoveContinuous) => PBTween['mode'];
8757
- /**
8758
- * @returns a move-rotate-scale mode tween
8759
- * @param params - partial transform (at least one of position, rotation, scale); omit axes you don't need
8760
- */
8761
- MoveRotateScale: (params: MoveRotateScaleModeParams) => PBTween['mode'];
8762
- /**
8763
- * @returns a move-rotate-scale-continuous mode tween
8764
- * @param params - partial transform (at least one of position, rotation, scale) + speed; omit axes you don't need
8765
- */
8766
- MoveRotateScaleContinuous: (params: MoveRotateScaleContinuousModeParams) => PBTween['mode'];
8767
8417
  }
8768
8418
 
8769
8419
  /**