@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/alpha.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
|
/**
|
|
@@ -2687,7 +2748,8 @@ export declare const enum InputAction {
|
|
|
2687
2748
|
IA_ACTION_3 = 10,
|
|
2688
2749
|
IA_ACTION_4 = 11,
|
|
2689
2750
|
IA_ACTION_5 = 12,
|
|
2690
|
-
IA_ACTION_6 = 13
|
|
2751
|
+
IA_ACTION_6 = 13,
|
|
2752
|
+
IA_MODIFIER = 14
|
|
2691
2753
|
}
|
|
2692
2754
|
|
|
2693
2755
|
export declare const InputModifier: InputModifierComponentDefinitionExtended;
|
|
@@ -2735,6 +2797,14 @@ export declare type InstanceCompositeOptions = {
|
|
|
2735
2797
|
alreadyRequestedSrc?: Set<string>;
|
|
2736
2798
|
};
|
|
2737
2799
|
|
|
2800
|
+
/**
|
|
2801
|
+
* @public
|
|
2802
|
+
*/
|
|
2803
|
+
export declare const enum InteractionType {
|
|
2804
|
+
CURSOR = 0,
|
|
2805
|
+
PROXIMITY = 1
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2738
2808
|
/**
|
|
2739
2809
|
* @public
|
|
2740
2810
|
*/
|
|
@@ -3913,6 +3983,49 @@ export declare namespace MoveContinuous {
|
|
|
3913
3983
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveContinuous;
|
|
3914
3984
|
}
|
|
3915
3985
|
|
|
3986
|
+
/**
|
|
3987
|
+
* @public
|
|
3988
|
+
*/
|
|
3989
|
+
export declare interface MoveRotateScale {
|
|
3990
|
+
positionStart: PBVector3 | undefined;
|
|
3991
|
+
positionEnd: PBVector3 | undefined;
|
|
3992
|
+
rotationStart: PBQuaternion | undefined;
|
|
3993
|
+
rotationEnd: PBQuaternion | undefined;
|
|
3994
|
+
scaleStart: PBVector3 | undefined;
|
|
3995
|
+
scaleEnd: PBVector3 | undefined;
|
|
3996
|
+
}
|
|
3997
|
+
|
|
3998
|
+
/**
|
|
3999
|
+
* @public
|
|
4000
|
+
*/
|
|
4001
|
+
export declare namespace MoveRotateScale {
|
|
4002
|
+
export function encode(message: MoveRotateScale, writer?: _m0.Writer): _m0.Writer;
|
|
4003
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveRotateScale;
|
|
4004
|
+
}
|
|
4005
|
+
|
|
4006
|
+
/**
|
|
4007
|
+
* @public
|
|
4008
|
+
* Partial params for Tween.Mode.MoveRotateScale(). At least one of position, rotation, or scale must be provided.
|
|
4009
|
+
* Use this when building a mode for Tween.createOrReplace() or TweenSequence (e.g. only positionStart/positionEnd).
|
|
4010
|
+
*/
|
|
4011
|
+
export declare interface MoveRotateScaleModeParams {
|
|
4012
|
+
/** Position tween (start → end). Optional. */
|
|
4013
|
+
position?: {
|
|
4014
|
+
start: PBVector3;
|
|
4015
|
+
end: PBVector3;
|
|
4016
|
+
};
|
|
4017
|
+
/** Rotation tween (start → end). Optional. */
|
|
4018
|
+
rotation?: {
|
|
4019
|
+
start: PBQuaternion;
|
|
4020
|
+
end: PBQuaternion;
|
|
4021
|
+
};
|
|
4022
|
+
/** Scale tween (start → end). Optional. */
|
|
4023
|
+
scale?: {
|
|
4024
|
+
start: PBVector3;
|
|
4025
|
+
end: PBVector3;
|
|
4026
|
+
};
|
|
4027
|
+
}
|
|
4028
|
+
|
|
3916
4029
|
export declare const Name: NameComponent;
|
|
3917
4030
|
|
|
3918
4031
|
export declare type NameComponent = LastWriteWinElementSetComponentDefinition<NameType>;
|
|
@@ -4391,6 +4504,45 @@ export declare namespace PBAssetLoadLoadingState {
|
|
|
4391
4504
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAssetLoadLoadingState;
|
|
4392
4505
|
}
|
|
4393
4506
|
|
|
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
|
+
|
|
4394
4546
|
/**
|
|
4395
4547
|
* @public
|
|
4396
4548
|
*/
|
|
@@ -4580,6 +4732,42 @@ export declare namespace PBAvatarEquippedData {
|
|
|
4580
4732
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEquippedData;
|
|
4581
4733
|
}
|
|
4582
4734
|
|
|
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
|
+
|
|
4583
4771
|
/**
|
|
4584
4772
|
* The AvatarModifierArea component can be attached to an Entity to define a region of space where
|
|
4585
4773
|
* avatar behavior changes.
|
|
@@ -5487,6 +5675,8 @@ export declare interface PBPointerEvents_Entry {
|
|
|
5487
5675
|
eventType: PointerEventType;
|
|
5488
5676
|
/** additional configuration for this detection */
|
|
5489
5677
|
eventInfo: PBPointerEvents_Info | undefined;
|
|
5678
|
+
/** the type of interaction source (default 0 == CURSOR) */
|
|
5679
|
+
interactionType?: InteractionType | undefined;
|
|
5490
5680
|
}
|
|
5491
5681
|
|
|
5492
5682
|
/**
|
|
@@ -5513,6 +5703,8 @@ export declare interface PBPointerEvents_Info {
|
|
|
5513
5703
|
showHighlight?: boolean | undefined;
|
|
5514
5704
|
/** range of interaction from the avatar's position (default 0) */
|
|
5515
5705
|
maxPlayerDistance?: number | undefined;
|
|
5706
|
+
/** resolution order when multiple events overlap, higher wins (default 0) */
|
|
5707
|
+
priority?: number | undefined;
|
|
5516
5708
|
}
|
|
5517
5709
|
|
|
5518
5710
|
/**
|
|
@@ -5949,6 +6141,9 @@ export declare interface PBTween {
|
|
|
5949
6141
|
} | {
|
|
5950
6142
|
$case: "textureMoveContinuous";
|
|
5951
6143
|
textureMoveContinuous: TextureMoveContinuous;
|
|
6144
|
+
} | {
|
|
6145
|
+
$case: "moveRotateScale";
|
|
6146
|
+
moveRotateScale: MoveRotateScale;
|
|
5952
6147
|
} | undefined;
|
|
5953
6148
|
/** default true (pause or running) */
|
|
5954
6149
|
playing?: boolean | undefined;
|
|
@@ -6386,6 +6581,7 @@ export declare namespace PBVideoPlayer {
|
|
|
6386
6581
|
* an 'instant' transition (like using speed/time = 0)
|
|
6387
6582
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
|
6388
6583
|
* the holding entity transform).
|
|
6584
|
+
* * The fov defines the Field of View of the virtual camera
|
|
6389
6585
|
*/
|
|
6390
6586
|
/**
|
|
6391
6587
|
* @public
|
|
@@ -6393,6 +6589,8 @@ export declare namespace PBVideoPlayer {
|
|
|
6393
6589
|
export declare interface PBVirtualCamera {
|
|
6394
6590
|
defaultTransition?: CameraTransition | undefined;
|
|
6395
6591
|
lookAtEntity?: number | undefined;
|
|
6592
|
+
/** default: 60 */
|
|
6593
|
+
fov?: number | undefined;
|
|
6396
6594
|
}
|
|
6397
6595
|
|
|
6398
6596
|
/**
|
|
@@ -6588,6 +6786,30 @@ export declare interface PointerEventsSystem {
|
|
|
6588
6786
|
* @param entity - Entity where the callback was attached
|
|
6589
6787
|
*/
|
|
6590
6788
|
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;
|
|
6591
6813
|
/**
|
|
6592
6814
|
* @public
|
|
6593
6815
|
* Execute callback when the user press the InputButton pointing at the entity
|
|
@@ -6642,6 +6864,46 @@ export declare interface PointerEventsSystem {
|
|
|
6642
6864
|
entity: Entity;
|
|
6643
6865
|
opts?: Partial<EventSystemOptions>;
|
|
6644
6866
|
}, 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;
|
|
6645
6907
|
}
|
|
6646
6908
|
|
|
6647
6909
|
/**
|
|
@@ -6658,7 +6920,9 @@ export declare const enum PointerEventType {
|
|
|
6658
6920
|
PET_UP = 0,
|
|
6659
6921
|
PET_DOWN = 1,
|
|
6660
6922
|
PET_HOVER_ENTER = 2,
|
|
6661
|
-
PET_HOVER_LEAVE = 3
|
|
6923
|
+
PET_HOVER_LEAVE = 3,
|
|
6924
|
+
PET_PROXIMITY_ENTER = 4,
|
|
6925
|
+
PET_PROXIMITY_LEAVE = 5
|
|
6662
6926
|
}
|
|
6663
6927
|
|
|
6664
6928
|
/**
|
|
@@ -7875,6 +8139,17 @@ export declare namespace Schemas {
|
|
|
7875
8139
|
}) => void;
|
|
7876
8140
|
}
|
|
7877
8141
|
|
|
8142
|
+
/**
|
|
8143
|
+
* @public
|
|
8144
|
+
* Parameters for setMoveRotateScale. At least one of position, rotation, or scale must be provided.
|
|
8145
|
+
*/
|
|
8146
|
+
export declare interface SetMoveRotateScaleParams extends MoveRotateScaleModeParams {
|
|
8147
|
+
/** Duration of the tween in milliseconds. */
|
|
8148
|
+
duration: number;
|
|
8149
|
+
/** Easing function (defaults to EF_LINEAR). */
|
|
8150
|
+
easingFunction?: EasingFunction;
|
|
8151
|
+
}
|
|
8152
|
+
|
|
7878
8153
|
/** @public */
|
|
7879
8154
|
export declare const SkyboxTime: LastWriteWinElementSetComponentDefinition<PBSkyboxTime>;
|
|
7880
8155
|
|
|
@@ -8397,7 +8672,7 @@ export declare const Tween: TweenComponentDefinitionExtended;
|
|
|
8397
8672
|
*/
|
|
8398
8673
|
export declare interface TweenComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBTween> {
|
|
8399
8674
|
/**
|
|
8400
|
-
*
|
|
8675
|
+
* Helpers with constructor
|
|
8401
8676
|
*/
|
|
8402
8677
|
Mode: TweenHelper;
|
|
8403
8678
|
/**
|
|
@@ -8476,6 +8751,16 @@ export declare interface TweenComponentDefinitionExtended extends LastWriteWinEl
|
|
|
8476
8751
|
* @param duration - duration of the tween in milliseconds (defaults to 0 for infinite)
|
|
8477
8752
|
*/
|
|
8478
8753
|
setTextureMoveContinuous(entity: Entity, direction: PBVector2, speed: number, movementType?: TextureMovementType, duration?: number): void;
|
|
8754
|
+
/**
|
|
8755
|
+
* @public
|
|
8756
|
+
*
|
|
8757
|
+
* Creates or replaces a move-rotate-scale tween component that simultaneously animates
|
|
8758
|
+
* an entity's position, rotation, and/or scale from start to end. Provide only the
|
|
8759
|
+
* properties you need (at least one of position, rotation, or scale).
|
|
8760
|
+
* @param entity - entity to apply the tween to
|
|
8761
|
+
* @param params - object with optional position, rotation, scale (each with start/end), duration, and optional easingFunction
|
|
8762
|
+
*/
|
|
8763
|
+
setMoveRotateScale(entity: Entity, params: SetMoveRotateScaleParams): void;
|
|
8479
8764
|
}
|
|
8480
8765
|
|
|
8481
8766
|
/**
|
|
@@ -8510,6 +8795,11 @@ export declare interface TweenHelper {
|
|
|
8510
8795
|
* @returns a texture-move-continuous mode tween
|
|
8511
8796
|
*/
|
|
8512
8797
|
TextureMoveContinuous: (textureMove: TextureMoveContinuous) => PBTween['mode'];
|
|
8798
|
+
/**
|
|
8799
|
+
* @returns a move-rotate-scale mode tween
|
|
8800
|
+
* @param params - partial transform (at least one of position, rotation, scale); omit axes you don't need
|
|
8801
|
+
*/
|
|
8802
|
+
MoveRotateScale: (params: MoveRotateScaleModeParams) => PBTween['mode'];
|
|
8513
8803
|
}
|
|
8514
8804
|
|
|
8515
8805
|
/**
|