@dcl/playground-assets 7.20.5-22670537517.commit-a403a9f → 7.20.5-22674879735.commit-6a30e67
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 +293 -3
- package/dist/beta.d.ts +293 -3
- package/dist/index.bundled.d.ts +293 -3
- 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 +14 -7
- package/dist/playground-assets.d.ts +293 -3
- package/etc/playground-assets.api.json +3224 -291
- package/etc/playground-assets.api.md +181 -0
- package/package.json +4 -4
package/dist/beta.d.ts
CHANGED
|
@@ -115,6 +115,61 @@ 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
|
+
|
|
118
173
|
/** @public */
|
|
119
174
|
export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
|
|
120
175
|
|
|
@@ -209,6 +264,9 @@ export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBA
|
|
|
209
264
|
/** @public */
|
|
210
265
|
export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
|
211
266
|
|
|
267
|
+
/** @public */
|
|
268
|
+
export declare const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
|
|
269
|
+
|
|
212
270
|
/** @public */
|
|
213
271
|
export declare const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
|
|
214
272
|
|
|
@@ -1321,6 +1379,7 @@ export declare const componentDefinitionByName: {
|
|
|
1321
1379
|
"core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
|
|
1322
1380
|
"core::AssetLoad": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
|
|
1323
1381
|
"core::AssetLoadLoadingState": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
|
|
1382
|
+
"core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
|
|
1324
1383
|
"core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
|
|
1325
1384
|
"core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
|
|
1326
1385
|
"core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
|
|
@@ -1328,6 +1387,7 @@ export declare const componentDefinitionByName: {
|
|
|
1328
1387
|
"core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
|
|
1329
1388
|
"core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
|
|
1330
1389
|
"core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
1390
|
+
"core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
1331
1391
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
1332
1392
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
1333
1393
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
@@ -2034,6 +2094,7 @@ export declare type EventSystemOptions = {
|
|
|
2034
2094
|
showFeedback?: boolean;
|
|
2035
2095
|
showHighlight?: boolean;
|
|
2036
2096
|
maxPlayerDistance?: number;
|
|
2097
|
+
priority?: number;
|
|
2037
2098
|
};
|
|
2038
2099
|
|
|
2039
2100
|
/**
|
|
@@ -2678,7 +2739,8 @@ export declare const enum InputAction {
|
|
|
2678
2739
|
IA_ACTION_3 = 10,
|
|
2679
2740
|
IA_ACTION_4 = 11,
|
|
2680
2741
|
IA_ACTION_5 = 12,
|
|
2681
|
-
IA_ACTION_6 = 13
|
|
2742
|
+
IA_ACTION_6 = 13,
|
|
2743
|
+
IA_MODIFIER = 14
|
|
2682
2744
|
}
|
|
2683
2745
|
|
|
2684
2746
|
export declare const InputModifier: InputModifierComponentDefinitionExtended;
|
|
@@ -2726,6 +2788,14 @@ export declare type InstanceCompositeOptions = {
|
|
|
2726
2788
|
alreadyRequestedSrc?: Set<string>;
|
|
2727
2789
|
};
|
|
2728
2790
|
|
|
2791
|
+
/**
|
|
2792
|
+
* @public
|
|
2793
|
+
*/
|
|
2794
|
+
export declare const enum InteractionType {
|
|
2795
|
+
CURSOR = 0,
|
|
2796
|
+
PROXIMITY = 1
|
|
2797
|
+
}
|
|
2798
|
+
|
|
2729
2799
|
/**
|
|
2730
2800
|
* @public
|
|
2731
2801
|
*/
|
|
@@ -3893,6 +3963,49 @@ export declare namespace MoveContinuous {
|
|
|
3893
3963
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveContinuous;
|
|
3894
3964
|
}
|
|
3895
3965
|
|
|
3966
|
+
/**
|
|
3967
|
+
* @public
|
|
3968
|
+
*/
|
|
3969
|
+
export declare interface MoveRotateScale {
|
|
3970
|
+
positionStart: PBVector3 | undefined;
|
|
3971
|
+
positionEnd: PBVector3 | undefined;
|
|
3972
|
+
rotationStart: PBQuaternion | undefined;
|
|
3973
|
+
rotationEnd: PBQuaternion | undefined;
|
|
3974
|
+
scaleStart: PBVector3 | undefined;
|
|
3975
|
+
scaleEnd: PBVector3 | undefined;
|
|
3976
|
+
}
|
|
3977
|
+
|
|
3978
|
+
/**
|
|
3979
|
+
* @public
|
|
3980
|
+
*/
|
|
3981
|
+
export declare namespace MoveRotateScale {
|
|
3982
|
+
export function encode(message: MoveRotateScale, writer?: _m0.Writer): _m0.Writer;
|
|
3983
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveRotateScale;
|
|
3984
|
+
}
|
|
3985
|
+
|
|
3986
|
+
/**
|
|
3987
|
+
* @public
|
|
3988
|
+
* Partial params for Tween.Mode.MoveRotateScale(). At least one of position, rotation, or scale must be provided.
|
|
3989
|
+
* Use this when building a mode for Tween.createOrReplace() or TweenSequence (e.g. only positionStart/positionEnd).
|
|
3990
|
+
*/
|
|
3991
|
+
export declare interface MoveRotateScaleModeParams {
|
|
3992
|
+
/** Position tween (start → end). Optional. */
|
|
3993
|
+
position?: {
|
|
3994
|
+
start: PBVector3;
|
|
3995
|
+
end: PBVector3;
|
|
3996
|
+
};
|
|
3997
|
+
/** Rotation tween (start → end). Optional. */
|
|
3998
|
+
rotation?: {
|
|
3999
|
+
start: PBQuaternion;
|
|
4000
|
+
end: PBQuaternion;
|
|
4001
|
+
};
|
|
4002
|
+
/** Scale tween (start → end). Optional. */
|
|
4003
|
+
scale?: {
|
|
4004
|
+
start: PBVector3;
|
|
4005
|
+
end: PBVector3;
|
|
4006
|
+
};
|
|
4007
|
+
}
|
|
4008
|
+
|
|
3896
4009
|
export declare const Name: NameComponent;
|
|
3897
4010
|
|
|
3898
4011
|
export declare type NameComponent = LastWriteWinElementSetComponentDefinition<NameType>;
|
|
@@ -4363,6 +4476,45 @@ export declare namespace PBAssetLoadLoadingState {
|
|
|
4363
4476
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAssetLoadLoadingState;
|
|
4364
4477
|
}
|
|
4365
4478
|
|
|
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
|
+
|
|
4366
4518
|
/**
|
|
4367
4519
|
* @public
|
|
4368
4520
|
*/
|
|
@@ -4552,6 +4704,42 @@ export declare namespace PBAvatarEquippedData {
|
|
|
4552
4704
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEquippedData;
|
|
4553
4705
|
}
|
|
4554
4706
|
|
|
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
|
+
|
|
4555
4743
|
/**
|
|
4556
4744
|
* The AvatarModifierArea component can be attached to an Entity to define a region of space where
|
|
4557
4745
|
* avatar behavior changes.
|
|
@@ -5459,6 +5647,8 @@ export declare interface PBPointerEvents_Entry {
|
|
|
5459
5647
|
eventType: PointerEventType;
|
|
5460
5648
|
/** additional configuration for this detection */
|
|
5461
5649
|
eventInfo: PBPointerEvents_Info | undefined;
|
|
5650
|
+
/** the type of interaction source (default 0 == CURSOR) */
|
|
5651
|
+
interactionType?: InteractionType | undefined;
|
|
5462
5652
|
}
|
|
5463
5653
|
|
|
5464
5654
|
/**
|
|
@@ -5485,6 +5675,8 @@ export declare interface PBPointerEvents_Info {
|
|
|
5485
5675
|
showHighlight?: boolean | undefined;
|
|
5486
5676
|
/** range of interaction from the avatar's position (default 0) */
|
|
5487
5677
|
maxPlayerDistance?: number | undefined;
|
|
5678
|
+
/** resolution order when multiple events overlap, higher wins (default 0) */
|
|
5679
|
+
priority?: number | undefined;
|
|
5488
5680
|
}
|
|
5489
5681
|
|
|
5490
5682
|
/**
|
|
@@ -5921,6 +6113,9 @@ export declare interface PBTween {
|
|
|
5921
6113
|
} | {
|
|
5922
6114
|
$case: "textureMoveContinuous";
|
|
5923
6115
|
textureMoveContinuous: TextureMoveContinuous;
|
|
6116
|
+
} | {
|
|
6117
|
+
$case: "moveRotateScale";
|
|
6118
|
+
moveRotateScale: MoveRotateScale;
|
|
5924
6119
|
} | undefined;
|
|
5925
6120
|
/** default true (pause or running) */
|
|
5926
6121
|
playing?: boolean | undefined;
|
|
@@ -6358,6 +6553,7 @@ export declare namespace PBVideoPlayer {
|
|
|
6358
6553
|
* an 'instant' transition (like using speed/time = 0)
|
|
6359
6554
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
|
6360
6555
|
* the holding entity transform).
|
|
6556
|
+
* * The fov defines the Field of View of the virtual camera
|
|
6361
6557
|
*/
|
|
6362
6558
|
/**
|
|
6363
6559
|
* @public
|
|
@@ -6365,6 +6561,8 @@ export declare namespace PBVideoPlayer {
|
|
|
6365
6561
|
export declare interface PBVirtualCamera {
|
|
6366
6562
|
defaultTransition?: CameraTransition | undefined;
|
|
6367
6563
|
lookAtEntity?: number | undefined;
|
|
6564
|
+
/** default: 60 */
|
|
6565
|
+
fov?: number | undefined;
|
|
6368
6566
|
}
|
|
6369
6567
|
|
|
6370
6568
|
/**
|
|
@@ -6560,6 +6758,30 @@ export declare interface PointerEventsSystem {
|
|
|
6560
6758
|
* @param entity - Entity where the callback was attached
|
|
6561
6759
|
*/
|
|
6562
6760
|
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;
|
|
6563
6785
|
/**
|
|
6564
6786
|
* @public
|
|
6565
6787
|
* Execute callback when the user press the InputButton pointing at the entity
|
|
@@ -6614,6 +6836,46 @@ export declare interface PointerEventsSystem {
|
|
|
6614
6836
|
entity: Entity;
|
|
6615
6837
|
opts?: Partial<EventSystemOptions>;
|
|
6616
6838
|
}, 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;
|
|
6617
6879
|
}
|
|
6618
6880
|
|
|
6619
6881
|
/**
|
|
@@ -6630,7 +6892,9 @@ export declare const enum PointerEventType {
|
|
|
6630
6892
|
PET_UP = 0,
|
|
6631
6893
|
PET_DOWN = 1,
|
|
6632
6894
|
PET_HOVER_ENTER = 2,
|
|
6633
|
-
PET_HOVER_LEAVE = 3
|
|
6895
|
+
PET_HOVER_LEAVE = 3,
|
|
6896
|
+
PET_PROXIMITY_ENTER = 4,
|
|
6897
|
+
PET_PROXIMITY_LEAVE = 5
|
|
6634
6898
|
}
|
|
6635
6899
|
|
|
6636
6900
|
/**
|
|
@@ -7847,6 +8111,17 @@ export declare namespace Schemas {
|
|
|
7847
8111
|
}) => void;
|
|
7848
8112
|
}
|
|
7849
8113
|
|
|
8114
|
+
/**
|
|
8115
|
+
* @public
|
|
8116
|
+
* Parameters for setMoveRotateScale. At least one of position, rotation, or scale must be provided.
|
|
8117
|
+
*/
|
|
8118
|
+
export declare interface SetMoveRotateScaleParams extends MoveRotateScaleModeParams {
|
|
8119
|
+
/** Duration of the tween in milliseconds. */
|
|
8120
|
+
duration: number;
|
|
8121
|
+
/** Easing function (defaults to EF_LINEAR). */
|
|
8122
|
+
easingFunction?: EasingFunction;
|
|
8123
|
+
}
|
|
8124
|
+
|
|
7850
8125
|
/** @public */
|
|
7851
8126
|
export declare const SkyboxTime: LastWriteWinElementSetComponentDefinition<PBSkyboxTime>;
|
|
7852
8127
|
|
|
@@ -8364,7 +8639,7 @@ export declare const Tween: TweenComponentDefinitionExtended;
|
|
|
8364
8639
|
*/
|
|
8365
8640
|
export declare interface TweenComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBTween> {
|
|
8366
8641
|
/**
|
|
8367
|
-
*
|
|
8642
|
+
* Helpers with constructor
|
|
8368
8643
|
*/
|
|
8369
8644
|
Mode: TweenHelper;
|
|
8370
8645
|
/**
|
|
@@ -8443,6 +8718,16 @@ export declare interface TweenComponentDefinitionExtended extends LastWriteWinEl
|
|
|
8443
8718
|
* @param duration - duration of the tween in milliseconds (defaults to 0 for infinite)
|
|
8444
8719
|
*/
|
|
8445
8720
|
setTextureMoveContinuous(entity: Entity, direction: PBVector2, speed: number, movementType?: TextureMovementType, duration?: number): void;
|
|
8721
|
+
/**
|
|
8722
|
+
* @public
|
|
8723
|
+
*
|
|
8724
|
+
* Creates or replaces a move-rotate-scale tween component that simultaneously animates
|
|
8725
|
+
* an entity's position, rotation, and/or scale from start to end. Provide only the
|
|
8726
|
+
* properties you need (at least one of position, rotation, or scale).
|
|
8727
|
+
* @param entity - entity to apply the tween to
|
|
8728
|
+
* @param params - object with optional position, rotation, scale (each with start/end), duration, and optional easingFunction
|
|
8729
|
+
*/
|
|
8730
|
+
setMoveRotateScale(entity: Entity, params: SetMoveRotateScaleParams): void;
|
|
8446
8731
|
}
|
|
8447
8732
|
|
|
8448
8733
|
/**
|
|
@@ -8477,6 +8762,11 @@ export declare interface TweenHelper {
|
|
|
8477
8762
|
* @returns a texture-move-continuous mode tween
|
|
8478
8763
|
*/
|
|
8479
8764
|
TextureMoveContinuous: (textureMove: TextureMoveContinuous) => PBTween['mode'];
|
|
8765
|
+
/**
|
|
8766
|
+
* @returns a move-rotate-scale mode tween
|
|
8767
|
+
* @param params - partial transform (at least one of position, rotation, scale); omit axes you don't need
|
|
8768
|
+
*/
|
|
8769
|
+
MoveRotateScale: (params: MoveRotateScaleModeParams) => PBTween['mode'];
|
|
8480
8770
|
}
|
|
8481
8771
|
|
|
8482
8772
|
/**
|