@dcl/playground-assets 7.20.5-22674879735.commit-6a30e67 → 7.20.5-22683934262.commit-8314528
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/alpha.d.ts +2 -220
- package/dist/beta.d.ts +2 -220
- package/dist/index.bundled.d.ts +2 -220
- package/dist/index.js +7 -7
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground/snippets/pointer-events.ts +7 -14
- package/dist/playground-assets.d.ts +2 -220
- package/etc/playground-assets.api.json +62 -2277
- package/etc/playground-assets.api.md +0 -129
- package/package.json +4 -4
package/dist/alpha.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>>;
|
|
@@ -2094,7 +2034,6 @@ export declare type EventSystemOptions = {
|
|
|
2094
2034
|
showFeedback?: boolean;
|
|
2095
2035
|
showHighlight?: boolean;
|
|
2096
2036
|
maxPlayerDistance?: number;
|
|
2097
|
-
priority?: number;
|
|
2098
2037
|
};
|
|
2099
2038
|
|
|
2100
2039
|
/**
|
|
@@ -2748,8 +2687,7 @@ export declare const enum InputAction {
|
|
|
2748
2687
|
IA_ACTION_3 = 10,
|
|
2749
2688
|
IA_ACTION_4 = 11,
|
|
2750
2689
|
IA_ACTION_5 = 12,
|
|
2751
|
-
IA_ACTION_6 = 13
|
|
2752
|
-
IA_MODIFIER = 14
|
|
2690
|
+
IA_ACTION_6 = 13
|
|
2753
2691
|
}
|
|
2754
2692
|
|
|
2755
2693
|
export declare const InputModifier: InputModifierComponentDefinitionExtended;
|
|
@@ -2797,14 +2735,6 @@ export declare type InstanceCompositeOptions = {
|
|
|
2797
2735
|
alreadyRequestedSrc?: Set<string>;
|
|
2798
2736
|
};
|
|
2799
2737
|
|
|
2800
|
-
/**
|
|
2801
|
-
* @public
|
|
2802
|
-
*/
|
|
2803
|
-
export declare const enum InteractionType {
|
|
2804
|
-
CURSOR = 0,
|
|
2805
|
-
PROXIMITY = 1
|
|
2806
|
-
}
|
|
2807
|
-
|
|
2808
2738
|
/**
|
|
2809
2739
|
* @public
|
|
2810
2740
|
*/
|
|
@@ -4504,45 +4434,6 @@ export declare namespace PBAssetLoadLoadingState {
|
|
|
4504
4434
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAssetLoadLoadingState;
|
|
4505
4435
|
}
|
|
4506
4436
|
|
|
4507
|
-
/**
|
|
4508
|
-
* @public
|
|
4509
|
-
*/
|
|
4510
|
-
export declare interface PBAudioAnalysis {
|
|
4511
|
-
/** Parameters section */
|
|
4512
|
-
mode: PBAudioAnalysisMode;
|
|
4513
|
-
/** Used only when mode == MODE_LOGARITHMIC */
|
|
4514
|
-
amplitudeGain?: number | undefined;
|
|
4515
|
-
/** End when mode == MODE_LOGARITHMIC */
|
|
4516
|
-
bandsGain?: number | undefined;
|
|
4517
|
-
/** Result section */
|
|
4518
|
-
amplitude: number;
|
|
4519
|
-
/** Protobuf doesn't support fixed arrays -> 8 band fields */
|
|
4520
|
-
band0: number;
|
|
4521
|
-
band1: number;
|
|
4522
|
-
band2: number;
|
|
4523
|
-
band3: number;
|
|
4524
|
-
band4: number;
|
|
4525
|
-
band5: number;
|
|
4526
|
-
band6: number;
|
|
4527
|
-
band7: number;
|
|
4528
|
-
}
|
|
4529
|
-
|
|
4530
|
-
/**
|
|
4531
|
-
* @public
|
|
4532
|
-
*/
|
|
4533
|
-
export declare namespace PBAudioAnalysis {
|
|
4534
|
-
export function encode(message: PBAudioAnalysis, writer?: _m0.Writer): _m0.Writer;
|
|
4535
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioAnalysis;
|
|
4536
|
-
}
|
|
4537
|
-
|
|
4538
|
-
/**
|
|
4539
|
-
* @public
|
|
4540
|
-
*/
|
|
4541
|
-
export declare const enum PBAudioAnalysisMode {
|
|
4542
|
-
MODE_RAW = 0,
|
|
4543
|
-
MODE_LOGARITHMIC = 1
|
|
4544
|
-
}
|
|
4545
|
-
|
|
4546
4437
|
/**
|
|
4547
4438
|
* @public
|
|
4548
4439
|
*/
|
|
@@ -4732,42 +4623,6 @@ export declare namespace PBAvatarEquippedData {
|
|
|
4732
4623
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEquippedData;
|
|
4733
4624
|
}
|
|
4734
4625
|
|
|
4735
|
-
/**
|
|
4736
|
-
* The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
|
|
4737
|
-
* as the avatar movement speed, jump height etc.
|
|
4738
|
-
*/
|
|
4739
|
-
/**
|
|
4740
|
-
* @public
|
|
4741
|
-
*/
|
|
4742
|
-
export declare interface PBAvatarLocomotionSettings {
|
|
4743
|
-
/** Maximum speed when walking (in meters per second) */
|
|
4744
|
-
walkSpeed?: number | undefined;
|
|
4745
|
-
/** Maximum speed when jogging (in meters per second) */
|
|
4746
|
-
jogSpeed?: number | undefined;
|
|
4747
|
-
/** Maximum speed when running (in meters per second) */
|
|
4748
|
-
runSpeed?: number | undefined;
|
|
4749
|
-
/** Height of a regular jump (in meters) */
|
|
4750
|
-
jumpHeight?: number | undefined;
|
|
4751
|
-
/** Height of a jump while running (in meters) */
|
|
4752
|
-
runJumpHeight?: number | undefined;
|
|
4753
|
-
/** Cooldown time after a hard landing before the avatar can move again (in seconds) */
|
|
4754
|
-
hardLandingCooldown?: number | undefined;
|
|
4755
|
-
/** Height of the double jump (in meters) */
|
|
4756
|
-
doubleJumpHeight?: number | undefined;
|
|
4757
|
-
/** Maximum speed when gliding (in meters per second) */
|
|
4758
|
-
glidingSpeed?: number | undefined;
|
|
4759
|
-
/** Maximum falling speed when gliding (in meters per second) */
|
|
4760
|
-
glidingFallingSpeed?: number | undefined;
|
|
4761
|
-
}
|
|
4762
|
-
|
|
4763
|
-
/**
|
|
4764
|
-
* @public
|
|
4765
|
-
*/
|
|
4766
|
-
export declare namespace PBAvatarLocomotionSettings {
|
|
4767
|
-
export function encode(message: PBAvatarLocomotionSettings, writer?: _m0.Writer): _m0.Writer;
|
|
4768
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings;
|
|
4769
|
-
}
|
|
4770
|
-
|
|
4771
4626
|
/**
|
|
4772
4627
|
* The AvatarModifierArea component can be attached to an Entity to define a region of space where
|
|
4773
4628
|
* avatar behavior changes.
|
|
@@ -5675,8 +5530,6 @@ export declare interface PBPointerEvents_Entry {
|
|
|
5675
5530
|
eventType: PointerEventType;
|
|
5676
5531
|
/** additional configuration for this detection */
|
|
5677
5532
|
eventInfo: PBPointerEvents_Info | undefined;
|
|
5678
|
-
/** the type of interaction source (default 0 == CURSOR) */
|
|
5679
|
-
interactionType?: InteractionType | undefined;
|
|
5680
5533
|
}
|
|
5681
5534
|
|
|
5682
5535
|
/**
|
|
@@ -5703,8 +5556,6 @@ export declare interface PBPointerEvents_Info {
|
|
|
5703
5556
|
showHighlight?: boolean | undefined;
|
|
5704
5557
|
/** range of interaction from the avatar's position (default 0) */
|
|
5705
5558
|
maxPlayerDistance?: number | undefined;
|
|
5706
|
-
/** resolution order when multiple events overlap, higher wins (default 0) */
|
|
5707
|
-
priority?: number | undefined;
|
|
5708
5559
|
}
|
|
5709
5560
|
|
|
5710
5561
|
/**
|
|
@@ -6581,7 +6432,6 @@ export declare namespace PBVideoPlayer {
|
|
|
6581
6432
|
* an 'instant' transition (like using speed/time = 0)
|
|
6582
6433
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
|
6583
6434
|
* the holding entity transform).
|
|
6584
|
-
* * The fov defines the Field of View of the virtual camera
|
|
6585
6435
|
*/
|
|
6586
6436
|
/**
|
|
6587
6437
|
* @public
|
|
@@ -6589,8 +6439,6 @@ export declare namespace PBVideoPlayer {
|
|
|
6589
6439
|
export declare interface PBVirtualCamera {
|
|
6590
6440
|
defaultTransition?: CameraTransition | undefined;
|
|
6591
6441
|
lookAtEntity?: number | undefined;
|
|
6592
|
-
/** default: 60 */
|
|
6593
|
-
fov?: number | undefined;
|
|
6594
6442
|
}
|
|
6595
6443
|
|
|
6596
6444
|
/**
|
|
@@ -6786,30 +6634,6 @@ export declare interface PointerEventsSystem {
|
|
|
6786
6634
|
* @param entity - Entity where the callback was attached
|
|
6787
6635
|
*/
|
|
6788
6636
|
removeOnPointerHoverLeave(entity: Entity): void;
|
|
6789
|
-
/**
|
|
6790
|
-
* @public
|
|
6791
|
-
* Remove the callback for onProximityDown event
|
|
6792
|
-
* @param entity - Entity where the callback was attached
|
|
6793
|
-
*/
|
|
6794
|
-
removeOnProximityDown(entity: Entity): void;
|
|
6795
|
-
/**
|
|
6796
|
-
* @public
|
|
6797
|
-
* Remove the callback for onProximityUp event
|
|
6798
|
-
* @param entity - Entity where the callback was attached
|
|
6799
|
-
*/
|
|
6800
|
-
removeOnProximityUp(entity: Entity): void;
|
|
6801
|
-
/**
|
|
6802
|
-
* @public
|
|
6803
|
-
* Remove the callback for onProximityEnter event
|
|
6804
|
-
* @param entity - Entity where the callback was attached
|
|
6805
|
-
*/
|
|
6806
|
-
removeOnProximityEnter(entity: Entity): void;
|
|
6807
|
-
/**
|
|
6808
|
-
* @public
|
|
6809
|
-
* Remove the callback for onProximityLeave event
|
|
6810
|
-
* @param entity - Entity where the callback was attached
|
|
6811
|
-
*/
|
|
6812
|
-
removeOnProximityLeave(entity: Entity): void;
|
|
6813
6637
|
/**
|
|
6814
6638
|
* @public
|
|
6815
6639
|
* Execute callback when the user press the InputButton pointing at the entity
|
|
@@ -6864,46 +6688,6 @@ export declare interface PointerEventsSystem {
|
|
|
6864
6688
|
entity: Entity;
|
|
6865
6689
|
opts?: Partial<EventSystemOptions>;
|
|
6866
6690
|
}, cb: EventSystemCallback): void;
|
|
6867
|
-
/**
|
|
6868
|
-
* @public
|
|
6869
|
-
* Execute callback when the user presses the proximity button on the entity
|
|
6870
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
|
6871
|
-
* @param cb - Function to execute when click fires
|
|
6872
|
-
*/
|
|
6873
|
-
onProximityDown(pointerData: {
|
|
6874
|
-
entity: Entity;
|
|
6875
|
-
opts?: Partial<EventSystemOptions>;
|
|
6876
|
-
}, cb: EventSystemCallback): void;
|
|
6877
|
-
/**
|
|
6878
|
-
* @public
|
|
6879
|
-
* Execute callback when the user releases the proximity button on the entity
|
|
6880
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
|
6881
|
-
* @param cb - Function to execute when event fires
|
|
6882
|
-
*/
|
|
6883
|
-
onProximityUp(pointerData: {
|
|
6884
|
-
entity: Entity;
|
|
6885
|
-
opts?: Partial<EventSystemOptions>;
|
|
6886
|
-
}, cb: EventSystemCallback): void;
|
|
6887
|
-
/**
|
|
6888
|
-
* @public
|
|
6889
|
-
* Execute callback when the entity enters the proximity zone of the user
|
|
6890
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
|
6891
|
-
* @param cb - Function to execute when event fires
|
|
6892
|
-
*/
|
|
6893
|
-
onProximityEnter(pointerData: {
|
|
6894
|
-
entity: Entity;
|
|
6895
|
-
opts?: Partial<EventSystemOptions>;
|
|
6896
|
-
}, cb: EventSystemCallback): void;
|
|
6897
|
-
/**
|
|
6898
|
-
* @public
|
|
6899
|
-
* Execute callback when the entity leaves the proximity zone of the user
|
|
6900
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
|
6901
|
-
* @param cb - Function to execute when event fires
|
|
6902
|
-
*/
|
|
6903
|
-
onProximityLeave(pointerData: {
|
|
6904
|
-
entity: Entity;
|
|
6905
|
-
opts?: Partial<EventSystemOptions>;
|
|
6906
|
-
}, cb: EventSystemCallback): void;
|
|
6907
6691
|
}
|
|
6908
6692
|
|
|
6909
6693
|
/**
|
|
@@ -6920,9 +6704,7 @@ export declare const enum PointerEventType {
|
|
|
6920
6704
|
PET_UP = 0,
|
|
6921
6705
|
PET_DOWN = 1,
|
|
6922
6706
|
PET_HOVER_ENTER = 2,
|
|
6923
|
-
PET_HOVER_LEAVE = 3
|
|
6924
|
-
PET_PROXIMITY_ENTER = 4,
|
|
6925
|
-
PET_PROXIMITY_LEAVE = 5
|
|
6707
|
+
PET_HOVER_LEAVE = 3
|
|
6926
6708
|
}
|
|
6927
6709
|
|
|
6928
6710
|
/**
|
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>>;
|
|
@@ -2094,7 +2034,6 @@ export declare type EventSystemOptions = {
|
|
|
2094
2034
|
showFeedback?: boolean;
|
|
2095
2035
|
showHighlight?: boolean;
|
|
2096
2036
|
maxPlayerDistance?: number;
|
|
2097
|
-
priority?: number;
|
|
2098
2037
|
};
|
|
2099
2038
|
|
|
2100
2039
|
/**
|
|
@@ -2739,8 +2678,7 @@ export declare const enum InputAction {
|
|
|
2739
2678
|
IA_ACTION_3 = 10,
|
|
2740
2679
|
IA_ACTION_4 = 11,
|
|
2741
2680
|
IA_ACTION_5 = 12,
|
|
2742
|
-
IA_ACTION_6 = 13
|
|
2743
|
-
IA_MODIFIER = 14
|
|
2681
|
+
IA_ACTION_6 = 13
|
|
2744
2682
|
}
|
|
2745
2683
|
|
|
2746
2684
|
export declare const InputModifier: InputModifierComponentDefinitionExtended;
|
|
@@ -2788,14 +2726,6 @@ export declare type InstanceCompositeOptions = {
|
|
|
2788
2726
|
alreadyRequestedSrc?: Set<string>;
|
|
2789
2727
|
};
|
|
2790
2728
|
|
|
2791
|
-
/**
|
|
2792
|
-
* @public
|
|
2793
|
-
*/
|
|
2794
|
-
export declare const enum InteractionType {
|
|
2795
|
-
CURSOR = 0,
|
|
2796
|
-
PROXIMITY = 1
|
|
2797
|
-
}
|
|
2798
|
-
|
|
2799
2729
|
/**
|
|
2800
2730
|
* @public
|
|
2801
2731
|
*/
|
|
@@ -4476,45 +4406,6 @@ export declare namespace PBAssetLoadLoadingState {
|
|
|
4476
4406
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAssetLoadLoadingState;
|
|
4477
4407
|
}
|
|
4478
4408
|
|
|
4479
|
-
/**
|
|
4480
|
-
* @public
|
|
4481
|
-
*/
|
|
4482
|
-
export declare interface PBAudioAnalysis {
|
|
4483
|
-
/** Parameters section */
|
|
4484
|
-
mode: PBAudioAnalysisMode;
|
|
4485
|
-
/** Used only when mode == MODE_LOGARITHMIC */
|
|
4486
|
-
amplitudeGain?: number | undefined;
|
|
4487
|
-
/** End when mode == MODE_LOGARITHMIC */
|
|
4488
|
-
bandsGain?: number | undefined;
|
|
4489
|
-
/** Result section */
|
|
4490
|
-
amplitude: number;
|
|
4491
|
-
/** Protobuf doesn't support fixed arrays -> 8 band fields */
|
|
4492
|
-
band0: number;
|
|
4493
|
-
band1: number;
|
|
4494
|
-
band2: number;
|
|
4495
|
-
band3: number;
|
|
4496
|
-
band4: number;
|
|
4497
|
-
band5: number;
|
|
4498
|
-
band6: number;
|
|
4499
|
-
band7: number;
|
|
4500
|
-
}
|
|
4501
|
-
|
|
4502
|
-
/**
|
|
4503
|
-
* @public
|
|
4504
|
-
*/
|
|
4505
|
-
export declare namespace PBAudioAnalysis {
|
|
4506
|
-
export function encode(message: PBAudioAnalysis, writer?: _m0.Writer): _m0.Writer;
|
|
4507
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioAnalysis;
|
|
4508
|
-
}
|
|
4509
|
-
|
|
4510
|
-
/**
|
|
4511
|
-
* @public
|
|
4512
|
-
*/
|
|
4513
|
-
export declare const enum PBAudioAnalysisMode {
|
|
4514
|
-
MODE_RAW = 0,
|
|
4515
|
-
MODE_LOGARITHMIC = 1
|
|
4516
|
-
}
|
|
4517
|
-
|
|
4518
4409
|
/**
|
|
4519
4410
|
* @public
|
|
4520
4411
|
*/
|
|
@@ -4704,42 +4595,6 @@ export declare namespace PBAvatarEquippedData {
|
|
|
4704
4595
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEquippedData;
|
|
4705
4596
|
}
|
|
4706
4597
|
|
|
4707
|
-
/**
|
|
4708
|
-
* The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
|
|
4709
|
-
* as the avatar movement speed, jump height etc.
|
|
4710
|
-
*/
|
|
4711
|
-
/**
|
|
4712
|
-
* @public
|
|
4713
|
-
*/
|
|
4714
|
-
export declare interface PBAvatarLocomotionSettings {
|
|
4715
|
-
/** Maximum speed when walking (in meters per second) */
|
|
4716
|
-
walkSpeed?: number | undefined;
|
|
4717
|
-
/** Maximum speed when jogging (in meters per second) */
|
|
4718
|
-
jogSpeed?: number | undefined;
|
|
4719
|
-
/** Maximum speed when running (in meters per second) */
|
|
4720
|
-
runSpeed?: number | undefined;
|
|
4721
|
-
/** Height of a regular jump (in meters) */
|
|
4722
|
-
jumpHeight?: number | undefined;
|
|
4723
|
-
/** Height of a jump while running (in meters) */
|
|
4724
|
-
runJumpHeight?: number | undefined;
|
|
4725
|
-
/** Cooldown time after a hard landing before the avatar can move again (in seconds) */
|
|
4726
|
-
hardLandingCooldown?: number | undefined;
|
|
4727
|
-
/** Height of the double jump (in meters) */
|
|
4728
|
-
doubleJumpHeight?: number | undefined;
|
|
4729
|
-
/** Maximum speed when gliding (in meters per second) */
|
|
4730
|
-
glidingSpeed?: number | undefined;
|
|
4731
|
-
/** Maximum falling speed when gliding (in meters per second) */
|
|
4732
|
-
glidingFallingSpeed?: number | undefined;
|
|
4733
|
-
}
|
|
4734
|
-
|
|
4735
|
-
/**
|
|
4736
|
-
* @public
|
|
4737
|
-
*/
|
|
4738
|
-
export declare namespace PBAvatarLocomotionSettings {
|
|
4739
|
-
export function encode(message: PBAvatarLocomotionSettings, writer?: _m0.Writer): _m0.Writer;
|
|
4740
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings;
|
|
4741
|
-
}
|
|
4742
|
-
|
|
4743
4598
|
/**
|
|
4744
4599
|
* The AvatarModifierArea component can be attached to an Entity to define a region of space where
|
|
4745
4600
|
* avatar behavior changes.
|
|
@@ -5647,8 +5502,6 @@ export declare interface PBPointerEvents_Entry {
|
|
|
5647
5502
|
eventType: PointerEventType;
|
|
5648
5503
|
/** additional configuration for this detection */
|
|
5649
5504
|
eventInfo: PBPointerEvents_Info | undefined;
|
|
5650
|
-
/** the type of interaction source (default 0 == CURSOR) */
|
|
5651
|
-
interactionType?: InteractionType | undefined;
|
|
5652
5505
|
}
|
|
5653
5506
|
|
|
5654
5507
|
/**
|
|
@@ -5675,8 +5528,6 @@ export declare interface PBPointerEvents_Info {
|
|
|
5675
5528
|
showHighlight?: boolean | undefined;
|
|
5676
5529
|
/** range of interaction from the avatar's position (default 0) */
|
|
5677
5530
|
maxPlayerDistance?: number | undefined;
|
|
5678
|
-
/** resolution order when multiple events overlap, higher wins (default 0) */
|
|
5679
|
-
priority?: number | undefined;
|
|
5680
5531
|
}
|
|
5681
5532
|
|
|
5682
5533
|
/**
|
|
@@ -6553,7 +6404,6 @@ export declare namespace PBVideoPlayer {
|
|
|
6553
6404
|
* an 'instant' transition (like using speed/time = 0)
|
|
6554
6405
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
|
6555
6406
|
* the holding entity transform).
|
|
6556
|
-
* * The fov defines the Field of View of the virtual camera
|
|
6557
6407
|
*/
|
|
6558
6408
|
/**
|
|
6559
6409
|
* @public
|
|
@@ -6561,8 +6411,6 @@ export declare namespace PBVideoPlayer {
|
|
|
6561
6411
|
export declare interface PBVirtualCamera {
|
|
6562
6412
|
defaultTransition?: CameraTransition | undefined;
|
|
6563
6413
|
lookAtEntity?: number | undefined;
|
|
6564
|
-
/** default: 60 */
|
|
6565
|
-
fov?: number | undefined;
|
|
6566
6414
|
}
|
|
6567
6415
|
|
|
6568
6416
|
/**
|
|
@@ -6758,30 +6606,6 @@ export declare interface PointerEventsSystem {
|
|
|
6758
6606
|
* @param entity - Entity where the callback was attached
|
|
6759
6607
|
*/
|
|
6760
6608
|
removeOnPointerHoverLeave(entity: Entity): void;
|
|
6761
|
-
/**
|
|
6762
|
-
* @public
|
|
6763
|
-
* Remove the callback for onProximityDown event
|
|
6764
|
-
* @param entity - Entity where the callback was attached
|
|
6765
|
-
*/
|
|
6766
|
-
removeOnProximityDown(entity: Entity): void;
|
|
6767
|
-
/**
|
|
6768
|
-
* @public
|
|
6769
|
-
* Remove the callback for onProximityUp event
|
|
6770
|
-
* @param entity - Entity where the callback was attached
|
|
6771
|
-
*/
|
|
6772
|
-
removeOnProximityUp(entity: Entity): void;
|
|
6773
|
-
/**
|
|
6774
|
-
* @public
|
|
6775
|
-
* Remove the callback for onProximityEnter event
|
|
6776
|
-
* @param entity - Entity where the callback was attached
|
|
6777
|
-
*/
|
|
6778
|
-
removeOnProximityEnter(entity: Entity): void;
|
|
6779
|
-
/**
|
|
6780
|
-
* @public
|
|
6781
|
-
* Remove the callback for onProximityLeave event
|
|
6782
|
-
* @param entity - Entity where the callback was attached
|
|
6783
|
-
*/
|
|
6784
|
-
removeOnProximityLeave(entity: Entity): void;
|
|
6785
6609
|
/**
|
|
6786
6610
|
* @public
|
|
6787
6611
|
* Execute callback when the user press the InputButton pointing at the entity
|
|
@@ -6836,46 +6660,6 @@ export declare interface PointerEventsSystem {
|
|
|
6836
6660
|
entity: Entity;
|
|
6837
6661
|
opts?: Partial<EventSystemOptions>;
|
|
6838
6662
|
}, cb: EventSystemCallback): void;
|
|
6839
|
-
/**
|
|
6840
|
-
* @public
|
|
6841
|
-
* Execute callback when the user presses the proximity button on the entity
|
|
6842
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
|
6843
|
-
* @param cb - Function to execute when click fires
|
|
6844
|
-
*/
|
|
6845
|
-
onProximityDown(pointerData: {
|
|
6846
|
-
entity: Entity;
|
|
6847
|
-
opts?: Partial<EventSystemOptions>;
|
|
6848
|
-
}, cb: EventSystemCallback): void;
|
|
6849
|
-
/**
|
|
6850
|
-
* @public
|
|
6851
|
-
* Execute callback when the user releases the proximity button on the entity
|
|
6852
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
|
6853
|
-
* @param cb - Function to execute when event fires
|
|
6854
|
-
*/
|
|
6855
|
-
onProximityUp(pointerData: {
|
|
6856
|
-
entity: Entity;
|
|
6857
|
-
opts?: Partial<EventSystemOptions>;
|
|
6858
|
-
}, cb: EventSystemCallback): void;
|
|
6859
|
-
/**
|
|
6860
|
-
* @public
|
|
6861
|
-
* Execute callback when the entity enters the proximity zone of the user
|
|
6862
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
|
6863
|
-
* @param cb - Function to execute when event fires
|
|
6864
|
-
*/
|
|
6865
|
-
onProximityEnter(pointerData: {
|
|
6866
|
-
entity: Entity;
|
|
6867
|
-
opts?: Partial<EventSystemOptions>;
|
|
6868
|
-
}, cb: EventSystemCallback): void;
|
|
6869
|
-
/**
|
|
6870
|
-
* @public
|
|
6871
|
-
* Execute callback when the entity leaves the proximity zone of the user
|
|
6872
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
|
6873
|
-
* @param cb - Function to execute when event fires
|
|
6874
|
-
*/
|
|
6875
|
-
onProximityLeave(pointerData: {
|
|
6876
|
-
entity: Entity;
|
|
6877
|
-
opts?: Partial<EventSystemOptions>;
|
|
6878
|
-
}, cb: EventSystemCallback): void;
|
|
6879
6663
|
}
|
|
6880
6664
|
|
|
6881
6665
|
/**
|
|
@@ -6892,9 +6676,7 @@ export declare const enum PointerEventType {
|
|
|
6892
6676
|
PET_UP = 0,
|
|
6893
6677
|
PET_DOWN = 1,
|
|
6894
6678
|
PET_HOVER_ENTER = 2,
|
|
6895
|
-
PET_HOVER_LEAVE = 3
|
|
6896
|
-
PET_PROXIMITY_ENTER = 4,
|
|
6897
|
-
PET_PROXIMITY_LEAVE = 5
|
|
6679
|
+
PET_HOVER_LEAVE = 3
|
|
6898
6680
|
}
|
|
6899
6681
|
|
|
6900
6682
|
/**
|