@dcl/playground-assets 7.19.1-21670829283.commit-e132905 → 7.19.1-21727863098.commit-ce67806
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 +18 -827
- package/dist/beta.d.ts +18 -827
- package/dist/index.bundled.d.ts +18 -827
- package/dist/index.js +7 -7
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/apis.d.ts +0 -17
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +18 -827
- package/dist/tsdoc-metadata.json +1 -1
- package/etc/playground-assets.api.json +5744 -13754
- package/etc/playground-assets.api.md +10 -541
- package/package.json +4 -4
package/dist/alpha.d.ts
CHANGED
|
@@ -203,36 +203,12 @@ export declare const AvatarAttach: LastWriteWinElementSetComponentDefinition<PBA
|
|
|
203
203
|
/** @public */
|
|
204
204
|
export declare const AvatarBase: LastWriteWinElementSetComponentDefinition<PBAvatarBase>;
|
|
205
205
|
|
|
206
|
-
/**
|
|
207
|
-
* @public
|
|
208
|
-
*/
|
|
209
|
-
export declare const enum AvatarControlType {
|
|
210
|
-
/** CCT_NONE - avatar cannot move */
|
|
211
|
-
CCT_NONE = 0,
|
|
212
|
-
/** CCT_RELATIVE - avatar moves relative to the camera origin */
|
|
213
|
-
CCT_RELATIVE = 1,
|
|
214
|
-
/** CCT_TANK - avatar moves like a tank: left/right rotate the player, forward/backward advance/retreat the player */
|
|
215
|
-
CCT_TANK = 2
|
|
216
|
-
}
|
|
217
|
-
|
|
218
206
|
/** @public */
|
|
219
207
|
export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>;
|
|
220
208
|
|
|
221
209
|
/** @public */
|
|
222
210
|
export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
|
223
211
|
|
|
224
|
-
/**
|
|
225
|
-
* @public
|
|
226
|
-
*/
|
|
227
|
-
export declare type AvatarEquippedDataComponentDefinitionExtended = LastWriteWinElementSetComponentDefinition<AvatarEquippedDataType>;
|
|
228
|
-
|
|
229
|
-
export declare type AvatarEquippedDataType = Omit<PBAvatarEquippedData, 'forceRender'> & {
|
|
230
|
-
forceRender?: string[] | undefined;
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
/** @public */
|
|
234
|
-
export declare const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
|
|
235
|
-
|
|
236
212
|
/** @public */
|
|
237
213
|
export declare const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
|
|
238
214
|
|
|
@@ -247,49 +223,9 @@ export declare const enum AvatarModifierType {
|
|
|
247
223
|
AMT_DISABLE_PASSPORTS = 1
|
|
248
224
|
}
|
|
249
225
|
|
|
250
|
-
/**
|
|
251
|
-
* @public
|
|
252
|
-
*/
|
|
253
|
-
export declare interface AvatarMovementSettings {
|
|
254
|
-
controlMode?: AvatarControlType | undefined;
|
|
255
|
-
/** if not explicitly set, the following properties default to user's preference settings */
|
|
256
|
-
runSpeed?: number | undefined;
|
|
257
|
-
/** how fast the player gets up to speed or comes to rest. higher = more responsive */
|
|
258
|
-
friction?: number | undefined;
|
|
259
|
-
/** how fast the player accelerates vertically when not on a solid surface, in m/s. should normally be negative */
|
|
260
|
-
gravity?: number | undefined;
|
|
261
|
-
/** how high the player can jump, in meters. should normally be positive. gravity must have the same sign for jumping to be possible */
|
|
262
|
-
jumpHeight?: number | undefined;
|
|
263
|
-
/** max fall speed in m/s. should normally be negative */
|
|
264
|
-
maxFallSpeed?: number | undefined;
|
|
265
|
-
/** speed the player turns in tank mode, in radians/s */
|
|
266
|
-
turnSpeed?: number | undefined;
|
|
267
|
-
/** speed the player walks at, in m/s */
|
|
268
|
-
walkSpeed?: number | undefined;
|
|
269
|
-
/** whether to allow player to move at a slower speed (e.g. with a walk-key or when using a gamepad/joystick). defaults to true */
|
|
270
|
-
allowWeightedMovement?: boolean | undefined;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* @public
|
|
275
|
-
*/
|
|
276
|
-
export declare namespace AvatarMovementSettings {
|
|
277
|
-
export function encode(message: AvatarMovementSettings, writer?: _m0.Writer): _m0.Writer;
|
|
278
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): AvatarMovementSettings;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
226
|
/** @public */
|
|
282
227
|
export declare const AvatarShape: LastWriteWinElementSetComponentDefinition<PBAvatarShape>;
|
|
283
228
|
|
|
284
|
-
/**
|
|
285
|
-
* @public
|
|
286
|
-
*/
|
|
287
|
-
export declare type AvatarShapeComponentDefinitionExtended = LastWriteWinElementSetComponentDefinition<AvatarShapeType>;
|
|
288
|
-
|
|
289
|
-
export declare type AvatarShapeType = Omit<PBAvatarShape, 'forceRender'> & {
|
|
290
|
-
forceRender?: string[] | undefined;
|
|
291
|
-
};
|
|
292
|
-
|
|
293
229
|
/**
|
|
294
230
|
* @public
|
|
295
231
|
*/
|
|
@@ -557,19 +493,11 @@ export declare interface ByteBuffer {
|
|
|
557
493
|
}
|
|
558
494
|
|
|
559
495
|
/**
|
|
560
|
-
*
|
|
561
|
-
*
|
|
562
|
-
* @public @deprecated This type is no longer used in the sdk api, EventSystemCallback is
|
|
563
|
-
* used for listeners instead
|
|
496
|
+
* Callback function to be triggered on a specified event
|
|
497
|
+
* @public
|
|
564
498
|
*/
|
|
565
499
|
export declare type Callback = () => void;
|
|
566
500
|
|
|
567
|
-
/** @public */
|
|
568
|
-
export declare const CameraLayer: LastWriteWinElementSetComponentDefinition<PBCameraLayer>;
|
|
569
|
-
|
|
570
|
-
/** @public */
|
|
571
|
-
export declare const CameraLayers: LastWriteWinElementSetComponentDefinition<PBCameraLayers>;
|
|
572
|
-
|
|
573
501
|
/** @public */
|
|
574
502
|
export declare const CameraMode: LastWriteWinElementSetComponentDefinition<PBCameraMode>;
|
|
575
503
|
|
|
@@ -627,39 +555,6 @@ export declare const enum CameraType {
|
|
|
627
555
|
|
|
628
556
|
export declare type Children = ReactEcs.JSX.ReactNode;
|
|
629
557
|
|
|
630
|
-
/**
|
|
631
|
-
* @public
|
|
632
|
-
*/
|
|
633
|
-
export declare interface CinematicSettings {
|
|
634
|
-
/** Entity that defines the cinematic camera transform. */
|
|
635
|
-
cameraEntity: number;
|
|
636
|
-
/**
|
|
637
|
-
* Position -> camera's position
|
|
638
|
-
* Rotation -> camera's direction
|
|
639
|
-
* scale.z -> zoom level
|
|
640
|
-
* scale.x and scale.y -> unused
|
|
641
|
-
*/
|
|
642
|
-
allowManualRotation?: boolean | undefined;
|
|
643
|
-
/** how far the camera can rotate around the y-axis / look left/right, in radians. default unrestricted */
|
|
644
|
-
yawRange?: number | undefined;
|
|
645
|
-
/** how far the camera can rotate around the x-axis / look up-down, in radians. default unrestricted */
|
|
646
|
-
pitchRange?: number | undefined;
|
|
647
|
-
/** note: cameras can never look up/down further than Vec3::Y */
|
|
648
|
-
rollRange?: number | undefined;
|
|
649
|
-
/** minimum zoom level. must be greater than 0. defaults to the input zoom level */
|
|
650
|
-
zoomMin?: number | undefined;
|
|
651
|
-
/** maximum zoom level. must be greater than 0. defaults to the input zoom level */
|
|
652
|
-
zoomMax?: number | undefined;
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
/**
|
|
656
|
-
* @public
|
|
657
|
-
*/
|
|
658
|
-
export declare namespace CinematicSettings {
|
|
659
|
-
export function encode(message: CinematicSettings, writer?: _m0.Writer): _m0.Writer;
|
|
660
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): CinematicSettings;
|
|
661
|
-
}
|
|
662
|
-
|
|
663
558
|
/** ColliderLayer determines the kind of collision to detect, in OR-able bit flag form. */
|
|
664
559
|
/**
|
|
665
560
|
* @public
|
|
@@ -1433,21 +1328,15 @@ export declare const componentDefinitionByName: {
|
|
|
1433
1328
|
"core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
|
|
1434
1329
|
"core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
|
|
1435
1330
|
"core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
1436
|
-
"core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
1437
1331
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
1438
1332
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
1439
1333
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
1440
|
-
"core::CameraLayer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraLayer>>;
|
|
1441
|
-
"core::CameraLayers": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraLayers>>;
|
|
1442
1334
|
"core::CameraMode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
|
|
1443
1335
|
"core::CameraModeArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraModeArea>>;
|
|
1444
1336
|
"core::EngineInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
|
|
1445
|
-
"core::GlobalLight": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGlobalLight>>;
|
|
1446
1337
|
"core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
|
|
1447
1338
|
"core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
|
|
1448
|
-
"core::GltfNode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNode>>;
|
|
1449
1339
|
"core::GltfNodeModifiers": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNodeModifiers>>;
|
|
1450
|
-
"core::GltfNodeState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNodeState>>;
|
|
1451
1340
|
"core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
|
|
1452
1341
|
"core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
|
|
1453
1342
|
"core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
|
|
@@ -1465,20 +1354,17 @@ export declare const componentDefinitionByName: {
|
|
|
1465
1354
|
"core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
|
1466
1355
|
"core::SkyboxTime": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkyboxTime>>;
|
|
1467
1356
|
"core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
|
|
1468
|
-
"core::TextureCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextureCamera>>;
|
|
1469
1357
|
"core::TriggerArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTriggerArea>>;
|
|
1470
1358
|
"core::TriggerAreaResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>>;
|
|
1471
1359
|
"core::Tween": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
|
|
1472
1360
|
"core::TweenSequence": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenSequence>>;
|
|
1473
1361
|
"core::TweenState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenState>>;
|
|
1474
1362
|
"core::UiBackground": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiBackground>>;
|
|
1475
|
-
"core::UiCanvas": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiCanvas>>;
|
|
1476
1363
|
"core::UiCanvasInformation": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiCanvasInformation>>;
|
|
1477
1364
|
"core::UiDropdown": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdown>>;
|
|
1478
1365
|
"core::UiDropdownResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>>;
|
|
1479
1366
|
"core::UiInput": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInput>>;
|
|
1480
1367
|
"core::UiInputResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputResult>>;
|
|
1481
|
-
"core::UiScrollResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiScrollResult>>;
|
|
1482
1368
|
"core::UiText": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiText>>;
|
|
1483
1369
|
"core::UiTransform": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiTransform>>;
|
|
1484
1370
|
"core::VideoEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBVideoEvent>>;
|
|
@@ -2066,18 +1952,10 @@ export declare type EntityComponents = {
|
|
|
2066
1952
|
uiBackground: PBUiBackground;
|
|
2067
1953
|
uiInput: PBUiInput;
|
|
2068
1954
|
uiDropdown: PBUiDropdown;
|
|
2069
|
-
onMouseDown:
|
|
2070
|
-
onMouseUp:
|
|
2071
|
-
onMouseEnter:
|
|
2072
|
-
onMouseLeave:
|
|
2073
|
-
onMouseDrag: EventSystemCallback;
|
|
2074
|
-
onMouseDragLocked: EventSystemCallback;
|
|
2075
|
-
onMouseDragEnd: EventSystemCallback;
|
|
2076
|
-
onInputDown: MultiCallback;
|
|
2077
|
-
onInputUp: MultiCallback;
|
|
2078
|
-
onInputDrag: MultiCallback;
|
|
2079
|
-
onInputDragLocked: MultiCallback;
|
|
2080
|
-
onInputDragEnd: MultiCallback;
|
|
1955
|
+
onMouseDown: Callback;
|
|
1956
|
+
onMouseUp: Callback;
|
|
1957
|
+
onMouseEnter: Callback;
|
|
1958
|
+
onMouseLeave: Callback;
|
|
2081
1959
|
};
|
|
2082
1960
|
|
|
2083
1961
|
/** @public */
|
|
@@ -2156,13 +2034,6 @@ export declare type EventSystemOptions = {
|
|
|
2156
2034
|
maxPlayerDistance?: number;
|
|
2157
2035
|
};
|
|
2158
2036
|
|
|
2159
|
-
/**
|
|
2160
|
-
* @public
|
|
2161
|
-
*/
|
|
2162
|
-
export declare type EventSystemOptionsCallback = EventSystemOptions & {
|
|
2163
|
-
cb: EventSystemCallback;
|
|
2164
|
-
};
|
|
2165
|
-
|
|
2166
2037
|
/**
|
|
2167
2038
|
* Excludes property keys from T where the property is assignable to U
|
|
2168
2039
|
* @public
|
|
@@ -2332,16 +2203,6 @@ export declare const getDefaultOpts: (opts?: Partial<EventSystemOptions>) => Eve
|
|
|
2332
2203
|
*/
|
|
2333
2204
|
export declare function getEntitiesWithParent(engine: Pick<IEngine, 'getEntitiesWith' | 'defineComponentFromSchema'>, parent: Entity): Entity[];
|
|
2334
2205
|
|
|
2335
|
-
/**
|
|
2336
|
-
* Utilities for standardized globalThis access.
|
|
2337
|
-
* @public
|
|
2338
|
-
*/
|
|
2339
|
-
/**
|
|
2340
|
-
* Type-safe globalThis property access.
|
|
2341
|
-
* @public
|
|
2342
|
-
*/
|
|
2343
|
-
export declare function getGlobal<T>(key: string): T | undefined;
|
|
2344
|
-
|
|
2345
2206
|
/**
|
|
2346
2207
|
* Get the world position of an entity, taking into account the full parent hierarchy.
|
|
2347
2208
|
* This computes the world-space position by accumulating all parent transforms
|
|
@@ -2391,9 +2252,6 @@ export declare type GlobalDirectionRaycastSystemOptions = {
|
|
|
2391
2252
|
direction?: PBVector3;
|
|
2392
2253
|
};
|
|
2393
2254
|
|
|
2394
|
-
/** @public */
|
|
2395
|
-
export declare const GlobalLight: LastWriteWinElementSetComponentDefinition<PBGlobalLight>;
|
|
2396
|
-
|
|
2397
2255
|
export declare type GlobalTargetRaycastOptions = RaycastSystemOptions & GlobalTargetRaycastSystemOptions;
|
|
2398
2256
|
|
|
2399
2257
|
export declare type GlobalTargetRaycastSystemOptions = {
|
|
@@ -2406,24 +2264,9 @@ export declare const GltfContainer: LastWriteWinElementSetComponentDefinition<PB
|
|
|
2406
2264
|
/** @public */
|
|
2407
2265
|
export declare const GltfContainerLoadingState: LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>;
|
|
2408
2266
|
|
|
2409
|
-
/** @public */
|
|
2410
|
-
export declare const GltfNode: LastWriteWinElementSetComponentDefinition<PBGltfNode>;
|
|
2411
|
-
|
|
2412
2267
|
/** @public */
|
|
2413
2268
|
export declare const GltfNodeModifiers: LastWriteWinElementSetComponentDefinition<PBGltfNodeModifiers>;
|
|
2414
2269
|
|
|
2415
|
-
/** @public */
|
|
2416
|
-
export declare const GltfNodeState: LastWriteWinElementSetComponentDefinition<PBGltfNodeState>;
|
|
2417
|
-
|
|
2418
|
-
/**
|
|
2419
|
-
* @public
|
|
2420
|
-
*/
|
|
2421
|
-
export declare const enum GltfNodeStateValue {
|
|
2422
|
-
GNSV_PENDING = 0,
|
|
2423
|
-
GNSV_FAILED = 1,
|
|
2424
|
-
GNSV_READY = 2
|
|
2425
|
-
}
|
|
2426
|
-
|
|
2427
2270
|
/**
|
|
2428
2271
|
* @public
|
|
2429
2272
|
*/
|
|
@@ -2778,12 +2621,6 @@ export declare type IInputSystem = {
|
|
|
2778
2621
|
* @returns the input command info or undefined if there is no command in the last tick-update
|
|
2779
2622
|
*/
|
|
2780
2623
|
getInputCommand: (inputAction: InputAction, pointerEventType: PointerEventType, entity?: Entity) => PBPointerEventsResult | null;
|
|
2781
|
-
/**
|
|
2782
|
-
* @public
|
|
2783
|
-
* Get an ordered iterator over events received within the current frame.
|
|
2784
|
-
* @returns the iterator
|
|
2785
|
-
*/
|
|
2786
|
-
getInputCommands: () => Generator<PBPointerEventsResult>;
|
|
2787
2624
|
};
|
|
2788
2625
|
|
|
2789
2626
|
/**
|
|
@@ -3079,29 +2916,13 @@ export declare interface LightSourceHelper {
|
|
|
3079
2916
|
*/
|
|
3080
2917
|
export declare type Listeners = {
|
|
3081
2918
|
/** triggered on mouse down event */
|
|
3082
|
-
onMouseDown?:
|
|
2919
|
+
onMouseDown?: Callback;
|
|
3083
2920
|
/** triggered on mouse up event */
|
|
3084
|
-
onMouseUp?:
|
|
2921
|
+
onMouseUp?: Callback;
|
|
3085
2922
|
/** triggered on mouse hover event */
|
|
3086
|
-
onMouseEnter?:
|
|
2923
|
+
onMouseEnter?: Callback;
|
|
3087
2924
|
/** triggered on mouse leave event */
|
|
3088
|
-
onMouseLeave?:
|
|
3089
|
-
/** triggered on mouse drag event */
|
|
3090
|
-
onMouseDrag?: EventSystemCallback;
|
|
3091
|
-
/** triggered on mouse drag event */
|
|
3092
|
-
onMouseDragLocked?: EventSystemCallback;
|
|
3093
|
-
/** triggered on mouse drag event */
|
|
3094
|
-
onMouseDragEnd?: EventSystemCallback;
|
|
3095
|
-
/** triggered on input down event */
|
|
3096
|
-
onInputDown?: MultiCallback;
|
|
3097
|
-
/** triggered on input up event */
|
|
3098
|
-
onInputUp?: MultiCallback;
|
|
3099
|
-
/** triggered on input drag event */
|
|
3100
|
-
onInputDrag?: MultiCallback;
|
|
3101
|
-
/** triggered on input drag event */
|
|
3102
|
-
onInputDragLocked?: MultiCallback;
|
|
3103
|
-
/** triggered on input drag event */
|
|
3104
|
-
onInputDragEnd?: MultiCallback;
|
|
2925
|
+
onMouseLeave?: Callback;
|
|
3105
2926
|
};
|
|
3106
2927
|
|
|
3107
2928
|
/**
|
|
@@ -4006,14 +3827,6 @@ export declare interface MeshColliderComponentDefinitionExtended extends LastWri
|
|
|
4006
3827
|
* @param colliderMask - the set of layer where the collider reacts, default: Physics and Pointer
|
|
4007
3828
|
*/
|
|
4008
3829
|
setSphere(entity: Entity, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
|
|
4009
|
-
/**
|
|
4010
|
-
* @public
|
|
4011
|
-
* Set a gltf internal mesh in the MeshCollider component
|
|
4012
|
-
* @param entity - entity to create or replace the MeshRenderer component
|
|
4013
|
-
* @param source - the path to the gltf
|
|
4014
|
-
* @param meshName - the name of the mesh in the gltf
|
|
4015
|
-
*/
|
|
4016
|
-
setGltfMesh(entity: Entity, source: string, meshName: string, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
|
|
4017
3830
|
}
|
|
4018
3831
|
|
|
4019
3832
|
export declare const MeshRenderer: MeshRendererComponentDefinitionExtended;
|
|
@@ -4050,14 +3863,6 @@ export declare interface MeshRendererComponentDefinitionExtended extends LastWri
|
|
|
4050
3863
|
* @param entity - entity to create or replace the MeshRenderer component
|
|
4051
3864
|
*/
|
|
4052
3865
|
setSphere(entity: Entity): void;
|
|
4053
|
-
/**
|
|
4054
|
-
* @public
|
|
4055
|
-
* Set a gltf internal mesh in the MeshRenderer component
|
|
4056
|
-
* @param entity - entity to create or replace the MeshRenderer component
|
|
4057
|
-
* @param source - the path to the gltf
|
|
4058
|
-
* @param meshName - the name of the mesh in the gltf
|
|
4059
|
-
*/
|
|
4060
|
-
setGltfMesh(entity: Entity, source: string, meshName: string): void;
|
|
4061
3866
|
}
|
|
4062
3867
|
|
|
4063
3868
|
/**
|
|
@@ -4106,19 +3911,6 @@ export declare namespace MoveContinuous {
|
|
|
4106
3911
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveContinuous;
|
|
4107
3912
|
}
|
|
4108
3913
|
|
|
4109
|
-
/**
|
|
4110
|
-
* a record object mapping `InputAction`s to functions.
|
|
4111
|
-
*
|
|
4112
|
-
* @example
|
|
4113
|
-
* onInputDown={{
|
|
4114
|
-
* [InputAction.IA_PRIMARY]: (eventData) => { console.log("primary") },
|
|
4115
|
-
* [InputAction.IA_SECONDARY]: () => { console.log("secondary") },
|
|
4116
|
-
* }}
|
|
4117
|
-
*
|
|
4118
|
-
* @public
|
|
4119
|
-
*/
|
|
4120
|
-
export declare type MultiCallback = Partial<Record<InputAction, EventSystemCallback>>;
|
|
4121
|
-
|
|
4122
3914
|
export declare const Name: NameComponent;
|
|
4123
3915
|
|
|
4124
3916
|
export declare type NameComponent = LastWriteWinElementSetComponentDefinition<NameType>;
|
|
@@ -4499,25 +4291,6 @@ export declare const onVideoEvent: Observable<{
|
|
|
4499
4291
|
totalVideoLength: number;
|
|
4500
4292
|
}>;
|
|
4501
4293
|
|
|
4502
|
-
/**
|
|
4503
|
-
* @public
|
|
4504
|
-
*/
|
|
4505
|
-
export declare interface Orthographic {
|
|
4506
|
-
/**
|
|
4507
|
-
* vertical extent of the visible range in meters
|
|
4508
|
-
* defaults to 4m
|
|
4509
|
-
*/
|
|
4510
|
-
verticalRange?: number | undefined;
|
|
4511
|
-
}
|
|
4512
|
-
|
|
4513
|
-
/**
|
|
4514
|
-
* @public
|
|
4515
|
-
*/
|
|
4516
|
-
export declare namespace Orthographic {
|
|
4517
|
-
export function encode(message: Orthographic, writer?: _m0.Writer): _m0.Writer;
|
|
4518
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): Orthographic;
|
|
4519
|
-
}
|
|
4520
|
-
|
|
4521
4294
|
/**
|
|
4522
4295
|
* @public
|
|
4523
4296
|
* The overflow property controls what happens to content that is too big to fit into an area
|
|
@@ -4795,8 +4568,6 @@ export declare namespace PBAvatarEmoteCommand {
|
|
|
4795
4568
|
export declare interface PBAvatarEquippedData {
|
|
4796
4569
|
wearableUrns: string[];
|
|
4797
4570
|
emoteUrns: string[];
|
|
4798
|
-
/** slots that will render even if hidden */
|
|
4799
|
-
forceRender: string[];
|
|
4800
4571
|
}
|
|
4801
4572
|
|
|
4802
4573
|
/**
|
|
@@ -4807,36 +4578,6 @@ export declare namespace PBAvatarEquippedData {
|
|
|
4807
4578
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEquippedData;
|
|
4808
4579
|
}
|
|
4809
4580
|
|
|
4810
|
-
/**
|
|
4811
|
-
* The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
|
|
4812
|
-
* as the avatar movement speed, jump height etc.
|
|
4813
|
-
*/
|
|
4814
|
-
/**
|
|
4815
|
-
* @public
|
|
4816
|
-
*/
|
|
4817
|
-
export declare interface PBAvatarLocomotionSettings {
|
|
4818
|
-
/** Maximum speed when walking (in meters per second) */
|
|
4819
|
-
walkSpeed?: number | undefined;
|
|
4820
|
-
/** Maximum speed when jogging (in meters per second) */
|
|
4821
|
-
jogSpeed?: number | undefined;
|
|
4822
|
-
/** Maximum speed when running (in meters per second) */
|
|
4823
|
-
runSpeed?: number | undefined;
|
|
4824
|
-
/** Height of a regular jump (in meters) */
|
|
4825
|
-
jumpHeight?: number | undefined;
|
|
4826
|
-
/** Height of a jump while running (in meters) */
|
|
4827
|
-
runJumpHeight?: number | undefined;
|
|
4828
|
-
/** Cooldown time after a hard landing before the avatar can move again (in seconds) */
|
|
4829
|
-
hardLandingCooldown?: number | undefined;
|
|
4830
|
-
}
|
|
4831
|
-
|
|
4832
|
-
/**
|
|
4833
|
-
* @public
|
|
4834
|
-
*/
|
|
4835
|
-
export declare namespace PBAvatarLocomotionSettings {
|
|
4836
|
-
export function encode(message: PBAvatarLocomotionSettings, writer?: _m0.Writer): _m0.Writer;
|
|
4837
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings;
|
|
4838
|
-
}
|
|
4839
|
-
|
|
4840
4581
|
/**
|
|
4841
4582
|
* The AvatarModifierArea component can be attached to an Entity to define a region of space where
|
|
4842
4583
|
* avatar behavior changes.
|
|
@@ -4861,9 +4602,6 @@ export declare interface PBAvatarModifierArea {
|
|
|
4861
4602
|
excludeIds: string[];
|
|
4862
4603
|
/** list of modifiers to apply */
|
|
4863
4604
|
modifiers: AvatarModifierType[];
|
|
4864
|
-
movementSettings?: AvatarMovementSettings | undefined;
|
|
4865
|
-
/** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
|
|
4866
|
-
useColliderRange?: boolean | undefined;
|
|
4867
4605
|
}
|
|
4868
4606
|
|
|
4869
4607
|
/**
|
|
@@ -4922,8 +4660,6 @@ export declare interface PBAvatarShape {
|
|
|
4922
4660
|
emotes: string[];
|
|
4923
4661
|
/** hides the skin + hair + facial features (default: false) */
|
|
4924
4662
|
showOnlyWearables?: boolean | undefined;
|
|
4925
|
-
/** slots that will render even if hidden */
|
|
4926
|
-
forceRender: string[];
|
|
4927
4663
|
}
|
|
4928
4664
|
|
|
4929
4665
|
/**
|
|
@@ -4958,51 +4694,6 @@ export declare namespace PBBillboard {
|
|
|
4958
4694
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBBillboard;
|
|
4959
4695
|
}
|
|
4960
4696
|
|
|
4961
|
-
/**
|
|
4962
|
-
* @public
|
|
4963
|
-
*/
|
|
4964
|
-
export declare interface PBCameraLayer {
|
|
4965
|
-
/**
|
|
4966
|
-
* layer to which these settings apply. must be > 0
|
|
4967
|
-
* Layer 0 is the default "real world" layer viewed by the player and cannot be modified.
|
|
4968
|
-
*/
|
|
4969
|
-
layer: number;
|
|
4970
|
-
/** should the sun light affect this layer? default false */
|
|
4971
|
-
directionalLight?: boolean | undefined;
|
|
4972
|
-
/** should this layer show player avatars? default false */
|
|
4973
|
-
showAvatars?: boolean | undefined;
|
|
4974
|
-
/** should this layer show the sky? default false */
|
|
4975
|
-
showSkybox?: boolean | undefined;
|
|
4976
|
-
/** should this layer show distance fog? default false */
|
|
4977
|
-
showFog?: boolean | undefined;
|
|
4978
|
-
/** ambient light overrides for this layer. default -> use same as main camera */
|
|
4979
|
-
ambientColorOverride?: PBColor3 | undefined;
|
|
4980
|
-
ambientBrightnessOverride?: number | undefined;
|
|
4981
|
-
}
|
|
4982
|
-
|
|
4983
|
-
/**
|
|
4984
|
-
* @public
|
|
4985
|
-
*/
|
|
4986
|
-
export declare namespace PBCameraLayer {
|
|
4987
|
-
export function encode(message: PBCameraLayer, writer?: _m0.Writer): _m0.Writer;
|
|
4988
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBCameraLayer;
|
|
4989
|
-
}
|
|
4990
|
-
|
|
4991
|
-
/**
|
|
4992
|
-
* @public
|
|
4993
|
-
*/
|
|
4994
|
-
export declare interface PBCameraLayers {
|
|
4995
|
-
layers: number[];
|
|
4996
|
-
}
|
|
4997
|
-
|
|
4998
|
-
/**
|
|
4999
|
-
* @public
|
|
5000
|
-
*/
|
|
5001
|
-
export declare namespace PBCameraLayers {
|
|
5002
|
-
export function encode(message: PBCameraLayers, writer?: _m0.Writer): _m0.Writer;
|
|
5003
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBCameraLayers;
|
|
5004
|
-
}
|
|
5005
|
-
|
|
5006
4697
|
/**
|
|
5007
4698
|
* The CameraMode component can be used to determine whether the player is using a first-person o
|
|
5008
4699
|
* third-person view.
|
|
@@ -5025,7 +4716,7 @@ export declare namespace PBCameraMode {
|
|
|
5025
4716
|
|
|
5026
4717
|
/**
|
|
5027
4718
|
* The CameraModeArea component can be attached to an Entity to define a region of space where
|
|
5028
|
-
* the player's camera mode (1st-person
|
|
4719
|
+
* the player's camera mode (1st-person or 3rd-person) is overridden.
|
|
5029
4720
|
*
|
|
5030
4721
|
* The Entity's Transform position determines the center-point of the region, while its size is
|
|
5031
4722
|
* given as a vector in the `area` property below. The Transform rotation is applied, but the scale
|
|
@@ -5035,8 +4726,6 @@ export declare namespace PBCameraMode {
|
|
|
5035
4726
|
*
|
|
5036
4727
|
* Note that, while commonly used to delineate a 2D area in a scene (hence the name), the region
|
|
5037
4728
|
* is actually a 3D volume.
|
|
5038
|
-
*
|
|
5039
|
-
* When mode is set to CtCinematic, the cinematic_settings field must also be provided.
|
|
5040
4729
|
*/
|
|
5041
4730
|
/**
|
|
5042
4731
|
* @public
|
|
@@ -5046,9 +4735,6 @@ export declare interface PBCameraModeArea {
|
|
|
5046
4735
|
area: PBVector3 | undefined;
|
|
5047
4736
|
/** the camera mode to enforce */
|
|
5048
4737
|
mode: CameraType;
|
|
5049
|
-
cinematicSettings?: CinematicSettings | undefined;
|
|
5050
|
-
/** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
|
|
5051
|
-
useColliderRange?: boolean | undefined;
|
|
5052
4738
|
}
|
|
5053
4739
|
|
|
5054
4740
|
/**
|
|
@@ -5120,39 +4806,6 @@ export declare namespace PBEngineInfo {
|
|
|
5120
4806
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBEngineInfo;
|
|
5121
4807
|
}
|
|
5122
4808
|
|
|
5123
|
-
/**
|
|
5124
|
-
* defines the global scene light settings. must be added to the scene root.
|
|
5125
|
-
* to control sunlight color, intensity, shadows etc, you can also add a PBLight to the scene root.
|
|
5126
|
-
*/
|
|
5127
|
-
/**
|
|
5128
|
-
* @public
|
|
5129
|
-
*/
|
|
5130
|
-
export declare interface PBGlobalLight {
|
|
5131
|
-
/**
|
|
5132
|
-
* the direction the directional light shines in.
|
|
5133
|
-
* default depends on time of day and explorer implementation
|
|
5134
|
-
*/
|
|
5135
|
-
direction?: PBVector3 | undefined;
|
|
5136
|
-
/**
|
|
5137
|
-
* ambient light color
|
|
5138
|
-
* default: White
|
|
5139
|
-
*/
|
|
5140
|
-
ambientColor?: PBColor3 | undefined;
|
|
5141
|
-
/**
|
|
5142
|
-
* ambient light intensity. the explorer default ambient brightness is multiplied by this non-physical quantity.
|
|
5143
|
-
* default 1
|
|
5144
|
-
*/
|
|
5145
|
-
ambientBrightness?: number | undefined;
|
|
5146
|
-
}
|
|
5147
|
-
|
|
5148
|
-
/**
|
|
5149
|
-
* @public
|
|
5150
|
-
*/
|
|
5151
|
-
export declare namespace PBGlobalLight {
|
|
5152
|
-
export function encode(message: PBGlobalLight, writer?: _m0.Writer): _m0.Writer;
|
|
5153
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGlobalLight;
|
|
5154
|
-
}
|
|
5155
|
-
|
|
5156
4809
|
/**
|
|
5157
4810
|
* GltfContainer loads a GLTF file (and any additional files packaged inside) attached to an Entity.
|
|
5158
4811
|
*
|
|
@@ -5188,25 +4841,6 @@ export declare namespace PBGltfContainer {
|
|
|
5188
4841
|
*/
|
|
5189
4842
|
export declare interface PBGltfContainerLoadingState {
|
|
5190
4843
|
currentState: LoadingState;
|
|
5191
|
-
/** all node paths in the gltf, which can be used with a GltfNode to inspect and modify the gltf contents */
|
|
5192
|
-
nodePaths: string[];
|
|
5193
|
-
/** all meshes in the gltf. unnamed meshes will be auto-assigned a name of the form `MeshX` or `MeshX/PrimitiveY` */
|
|
5194
|
-
meshNames: string[];
|
|
5195
|
-
/**
|
|
5196
|
-
* where X is the mesh index and Y is the primitive index (and there is more than 1 primitive). note this may
|
|
5197
|
-
* conflict with manually named meshes - to avoid any issues make sure all your meshes are explicitly named.
|
|
5198
|
-
*/
|
|
5199
|
-
materialNames: string[];
|
|
5200
|
-
/**
|
|
5201
|
-
* X is the material index. note this may conflict with manually named materials - to avoid any issues make
|
|
5202
|
-
* sure all your materials are explicitly named.
|
|
5203
|
-
*/
|
|
5204
|
-
skinNames: string[];
|
|
5205
|
-
/**
|
|
5206
|
-
* X is the skin index. note this may conflict with manually named skins - to avoid any issues make sure all
|
|
5207
|
-
* your skins are explicitly named.
|
|
5208
|
-
*/
|
|
5209
|
-
animationNames: string[];
|
|
5210
4844
|
}
|
|
5211
4845
|
|
|
5212
4846
|
/**
|
|
@@ -5217,57 +4851,6 @@ export declare namespace PBGltfContainerLoadingState {
|
|
|
5217
4851
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfContainerLoadingState;
|
|
5218
4852
|
}
|
|
5219
4853
|
|
|
5220
|
-
/**
|
|
5221
|
-
* a GltfNode links a scene entity with a node from within a gltf, allowing the scene to inspect it or modify it.
|
|
5222
|
-
* This component must be added to a direct child of an entity with a PBGltfContainer component, or
|
|
5223
|
-
* to a direct child of another entity with a GltfNode component, and the referenced gltf node must be a descendent of the gltf node
|
|
5224
|
-
* in the parent.
|
|
5225
|
-
* The name must match the path of one of the nodes within the Gltf. These are available on the GltfContainerLoadingState component.
|
|
5226
|
-
*
|
|
5227
|
-
* The renderer will attach a PBGltfNodeState to the entity describing the state. Once the state is `GNS_READY`,
|
|
5228
|
-
* - the `Transform` will be updated to match the position of the node within the gltf (relative to the gltf root, or the parent node),
|
|
5229
|
-
* - a `MeshRenderer` with a GltfMesh mesh type will be added (if the gltf node has a mesh).
|
|
5230
|
-
* - a `MeshCollider` with a GltfMesh mesh type will be added (if the gltf node has a collider).
|
|
5231
|
-
* - a `Material` component including a GltfMaterial reference will be added (if the gltf node has a material).
|
|
5232
|
-
*
|
|
5233
|
-
* After creation, if an animation moves the node, the `Transform` will be updated.
|
|
5234
|
-
*
|
|
5235
|
-
* From the scene, you can modify various components to alter the gltf node:
|
|
5236
|
-
* - modifying the `Transform` position/rotation/scale will move the node. The position is interpreted relative to the gltf root (or parent node),
|
|
5237
|
-
* regardless of any intermediate gltf node hierarchy.
|
|
5238
|
-
* If an animation is playing, the animation takes priority and the scene entity's position will be updated to match the animation.
|
|
5239
|
-
* - `Visibility` can be added to hide or show the node and it's children in the gltf hierarchy.
|
|
5240
|
-
* - `MeshRenderer` can be added/modified/removed to create/modify/remove a mesh on the node.
|
|
5241
|
-
* - `MeshCollider` can be added/modified/removed to create/modify/remove a collider on the node.
|
|
5242
|
-
* - `Material` can be added or modified to change the material properties. If the gltf node has a material, the original material will be
|
|
5243
|
-
* used as a base, and any gltf features (e.g. occlusion maps) from the gtlf spec that the renderer supports but that are not exposed in the
|
|
5244
|
-
* PBMaterial will be maintained.
|
|
5245
|
-
*
|
|
5246
|
-
* The scene can add additional entities as children to the gltf node, but structural modifications of the gltf are not possible:
|
|
5247
|
-
* - changing the scene hierarchy will not change the gltf node hierarchy. Moving the entity out of the gltf will sever the link and
|
|
5248
|
-
* change the state to `GNS_FAILED`.
|
|
5249
|
-
* - deleting the scene entity will not delete the gltf node.
|
|
5250
|
-
*
|
|
5251
|
-
* Removing the GltfNode will revert any changes to the original gltf. If the GltfNode component is removed and the mesh/collider/material
|
|
5252
|
-
* are not removed, this will result in a duplication of these components as the previously-linked entity will retain it's components and
|
|
5253
|
-
* the gltf node will also be displayed.
|
|
5254
|
-
*/
|
|
5255
|
-
/**
|
|
5256
|
-
* @public
|
|
5257
|
-
*/
|
|
5258
|
-
export declare interface PBGltfNode {
|
|
5259
|
-
/** the path of the target node in the Gltf. */
|
|
5260
|
-
path: string;
|
|
5261
|
-
}
|
|
5262
|
-
|
|
5263
|
-
/**
|
|
5264
|
-
* @public
|
|
5265
|
-
*/
|
|
5266
|
-
export declare namespace PBGltfNode {
|
|
5267
|
-
export function encode(message: PBGltfNode, writer?: _m0.Writer): _m0.Writer;
|
|
5268
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNode;
|
|
5269
|
-
}
|
|
5270
|
-
|
|
5271
4854
|
/**
|
|
5272
4855
|
* GltfNodeModifiers component is to be used attached to entities that have the GltfContainer component.
|
|
5273
4856
|
*
|
|
@@ -5313,26 +4896,6 @@ export declare namespace PBGltfNodeModifiers_GltfNodeModifier {
|
|
|
5313
4896
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNodeModifiers_GltfNodeModifier;
|
|
5314
4897
|
}
|
|
5315
4898
|
|
|
5316
|
-
/**
|
|
5317
|
-
* The state of a linked gltf node.
|
|
5318
|
-
* If the state is GNSV_FAILED, the renderer may describe the failure in the error string.
|
|
5319
|
-
*/
|
|
5320
|
-
/**
|
|
5321
|
-
* @public
|
|
5322
|
-
*/
|
|
5323
|
-
export declare interface PBGltfNodeState {
|
|
5324
|
-
state: GltfNodeStateValue;
|
|
5325
|
-
error?: string | undefined;
|
|
5326
|
-
}
|
|
5327
|
-
|
|
5328
|
-
/**
|
|
5329
|
-
* @public
|
|
5330
|
-
*/
|
|
5331
|
-
export declare namespace PBGltfNodeState {
|
|
5332
|
-
export function encode(message: PBGltfNodeState, writer?: _m0.Writer): _m0.Writer;
|
|
5333
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNodeState;
|
|
5334
|
-
}
|
|
5335
|
-
|
|
5336
4899
|
/**
|
|
5337
4900
|
* @public
|
|
5338
4901
|
*/
|
|
@@ -5468,14 +5031,6 @@ export declare interface PBMaterial {
|
|
|
5468
5031
|
$case: "pbr";
|
|
5469
5032
|
pbr: PBMaterial_PbrMaterial;
|
|
5470
5033
|
} | undefined;
|
|
5471
|
-
/**
|
|
5472
|
-
* A gltf material that may provide additional features not supported by the PbMaterial fields.
|
|
5473
|
-
* If both gltf and material fields are provided, the gltf will be used only for extended features not
|
|
5474
|
-
* supported by the PbMaterial.
|
|
5475
|
-
* If this is provided and the `material` field is not provided, the renderer will update the material
|
|
5476
|
-
* field with data that reflects the gltf material once it is loaded.
|
|
5477
|
-
*/
|
|
5478
|
-
gltf?: PBMaterial_GltfMaterial | undefined;
|
|
5479
5034
|
}
|
|
5480
5035
|
|
|
5481
5036
|
/**
|
|
@@ -5486,22 +5041,6 @@ export declare namespace PBMaterial {
|
|
|
5486
5041
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMaterial;
|
|
5487
5042
|
}
|
|
5488
5043
|
|
|
5489
|
-
/**
|
|
5490
|
-
* @public
|
|
5491
|
-
*/
|
|
5492
|
-
export declare interface PBMaterial_GltfMaterial {
|
|
5493
|
-
gltfSrc: string;
|
|
5494
|
-
name: string;
|
|
5495
|
-
}
|
|
5496
|
-
|
|
5497
|
-
/**
|
|
5498
|
-
* @public
|
|
5499
|
-
*/
|
|
5500
|
-
export declare namespace PBMaterial_GltfMaterial {
|
|
5501
|
-
export function encode(message: PBMaterial_GltfMaterial, writer?: _m0.Writer): _m0.Writer;
|
|
5502
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMaterial_GltfMaterial;
|
|
5503
|
-
}
|
|
5504
|
-
|
|
5505
5044
|
/**
|
|
5506
5045
|
* @public
|
|
5507
5046
|
*/
|
|
@@ -5598,9 +5137,6 @@ export declare interface PBMeshCollider {
|
|
|
5598
5137
|
} | {
|
|
5599
5138
|
$case: "plane";
|
|
5600
5139
|
plane: PBMeshCollider_PlaneMesh;
|
|
5601
|
-
} | {
|
|
5602
|
-
$case: "gltf";
|
|
5603
|
-
gltf: PBMeshCollider_GltfMesh;
|
|
5604
5140
|
} | undefined;
|
|
5605
5141
|
}
|
|
5606
5142
|
|
|
@@ -5646,25 +5182,6 @@ export declare namespace PBMeshCollider_CylinderMesh {
|
|
|
5646
5182
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshCollider_CylinderMesh;
|
|
5647
5183
|
}
|
|
5648
5184
|
|
|
5649
|
-
/** A collider constructed from a Gltf Mesh. */
|
|
5650
|
-
/**
|
|
5651
|
-
* @public
|
|
5652
|
-
*/
|
|
5653
|
-
export declare interface PBMeshCollider_GltfMesh {
|
|
5654
|
-
/** the GLTF file path as listed in the scene's manifest. */
|
|
5655
|
-
gltfSrc: string;
|
|
5656
|
-
/** the name of the mesh asset */
|
|
5657
|
-
name: string;
|
|
5658
|
-
}
|
|
5659
|
-
|
|
5660
|
-
/**
|
|
5661
|
-
* @public
|
|
5662
|
-
*/
|
|
5663
|
-
export declare namespace PBMeshCollider_GltfMesh {
|
|
5664
|
-
export function encode(message: PBMeshCollider_GltfMesh, writer?: _m0.Writer): _m0.Writer;
|
|
5665
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshCollider_GltfMesh;
|
|
5666
|
-
}
|
|
5667
|
-
|
|
5668
5185
|
/** PlaneMesh is a 2D rectangle described by the Entity's Transform. */
|
|
5669
5186
|
/**
|
|
5670
5187
|
* @public
|
|
@@ -5697,11 +5214,13 @@ export declare namespace PBMeshCollider_SphereMesh {
|
|
|
5697
5214
|
|
|
5698
5215
|
/**
|
|
5699
5216
|
* The MeshRenderer component renders a basic geometric shape for an Entity. It can be a cube, a
|
|
5700
|
-
* plane, a sphere
|
|
5217
|
+
* plane, a sphere or a cylinder.
|
|
5701
5218
|
*
|
|
5702
5219
|
* The cube and plane variants can include a UV texture mapping, so specific areas of a material
|
|
5703
5220
|
* texture are rendered on different faces of the shape. They are serialized as a sequence of 2D
|
|
5704
5221
|
* `float` coordinates, one for each corner of each side of each face.
|
|
5222
|
+
*
|
|
5223
|
+
* More complex shapes require the use of a `GltfContainer` component.
|
|
5705
5224
|
*/
|
|
5706
5225
|
/**
|
|
5707
5226
|
* @public
|
|
@@ -5719,9 +5238,6 @@ export declare interface PBMeshRenderer {
|
|
|
5719
5238
|
} | {
|
|
5720
5239
|
$case: "plane";
|
|
5721
5240
|
plane: PBMeshRenderer_PlaneMesh;
|
|
5722
|
-
} | {
|
|
5723
|
-
$case: "gltf";
|
|
5724
|
-
gltf: PBMeshRenderer_GltfMesh;
|
|
5725
5241
|
} | undefined;
|
|
5726
5242
|
}
|
|
5727
5243
|
|
|
@@ -5769,25 +5285,6 @@ export declare namespace PBMeshRenderer_CylinderMesh {
|
|
|
5769
5285
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshRenderer_CylinderMesh;
|
|
5770
5286
|
}
|
|
5771
5287
|
|
|
5772
|
-
/** A mesh from a Gltf. */
|
|
5773
|
-
/**
|
|
5774
|
-
* @public
|
|
5775
|
-
*/
|
|
5776
|
-
export declare interface PBMeshRenderer_GltfMesh {
|
|
5777
|
-
/** the GLTF file path as listed in the scene's manifest. */
|
|
5778
|
-
gltfSrc: string;
|
|
5779
|
-
/** the name of the mesh asset */
|
|
5780
|
-
name: string;
|
|
5781
|
-
}
|
|
5782
|
-
|
|
5783
|
-
/**
|
|
5784
|
-
* @public
|
|
5785
|
-
*/
|
|
5786
|
-
export declare namespace PBMeshRenderer_GltfMesh {
|
|
5787
|
-
export function encode(message: PBMeshRenderer_GltfMesh, writer?: _m0.Writer): _m0.Writer;
|
|
5788
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshRenderer_GltfMesh;
|
|
5789
|
-
}
|
|
5790
|
-
|
|
5791
5288
|
/** PlaneMesh renders a 2D rectangular shape. */
|
|
5792
5289
|
/**
|
|
5793
5290
|
* @public
|
|
@@ -6061,10 +5558,7 @@ export declare interface PBPrimaryPointerInfo {
|
|
|
6061
5558
|
screenCoordinates?: PBVector2 | undefined;
|
|
6062
5559
|
/** Movement since last frame (pixels) */
|
|
6063
5560
|
screenDelta?: PBVector2 | undefined;
|
|
6064
|
-
/**
|
|
6065
|
-
* ray direction that can be used with the primary camera origin for
|
|
6066
|
-
* raycasting from the cursor into the world
|
|
6067
|
-
*/
|
|
5561
|
+
/** Direction vector for 3D ray casting */
|
|
6068
5562
|
worldRayDirection?: PBVector3 | undefined;
|
|
6069
5563
|
}
|
|
6070
5564
|
|
|
@@ -6290,46 +5784,6 @@ export declare namespace PBTextShape {
|
|
|
6290
5784
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTextShape;
|
|
6291
5785
|
}
|
|
6292
5786
|
|
|
6293
|
-
/**
|
|
6294
|
-
* @public
|
|
6295
|
-
*/
|
|
6296
|
-
export declare interface PBTextureCamera {
|
|
6297
|
-
/** rendered texture width */
|
|
6298
|
-
width?: number | undefined;
|
|
6299
|
-
/** rendered texture height */
|
|
6300
|
-
height?: number | undefined;
|
|
6301
|
-
/**
|
|
6302
|
-
* which layer of entities to render. entity layers can be specified by adding PBCameraLayers to target entities.
|
|
6303
|
-
* defaults to 0
|
|
6304
|
-
*/
|
|
6305
|
-
layer?: number | undefined;
|
|
6306
|
-
/** default black */
|
|
6307
|
-
clearColor?: PBColor4 | undefined;
|
|
6308
|
-
/** default infinity */
|
|
6309
|
-
farPlane?: number | undefined;
|
|
6310
|
-
mode?: {
|
|
6311
|
-
$case: "perspective";
|
|
6312
|
-
perspective: Perspective;
|
|
6313
|
-
} | {
|
|
6314
|
-
$case: "orthographic";
|
|
6315
|
-
orthographic: Orthographic;
|
|
6316
|
-
} | undefined;
|
|
6317
|
-
/**
|
|
6318
|
-
* controls whether this camera acts as a receiver for audio on sources with matching `PBCameraLayers`.
|
|
6319
|
-
* range: 0 (off) - 1 (full volume)
|
|
6320
|
-
* default: 0
|
|
6321
|
-
*/
|
|
6322
|
-
volume?: number | undefined;
|
|
6323
|
-
}
|
|
6324
|
-
|
|
6325
|
-
/**
|
|
6326
|
-
* @public
|
|
6327
|
-
*/
|
|
6328
|
-
export declare namespace PBTextureCamera {
|
|
6329
|
-
export function encode(message: PBTextureCamera, writer?: _m0.Writer): _m0.Writer;
|
|
6330
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTextureCamera;
|
|
6331
|
-
}
|
|
6332
|
-
|
|
6333
5787
|
/**
|
|
6334
5788
|
* The PBTriggerArea component is used to raise collision triggering events (through the TriggerAreaResult component)
|
|
6335
5789
|
* when entities enter this component's defined area.
|
|
@@ -6508,25 +5962,6 @@ export declare namespace PBUiBackground {
|
|
|
6508
5962
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiBackground;
|
|
6509
5963
|
}
|
|
6510
5964
|
|
|
6511
|
-
/** The UiCanvas component can be attached to a ui root entity to specify properties of the ui texture. */
|
|
6512
|
-
/**
|
|
6513
|
-
* @public
|
|
6514
|
-
*/
|
|
6515
|
-
export declare interface PBUiCanvas {
|
|
6516
|
-
width: number;
|
|
6517
|
-
height: number;
|
|
6518
|
-
/** default = (0.0, 0.0, 0.0, 0.0) / transparent */
|
|
6519
|
-
color?: PBColor4 | undefined;
|
|
6520
|
-
}
|
|
6521
|
-
|
|
6522
|
-
/**
|
|
6523
|
-
* @public
|
|
6524
|
-
*/
|
|
6525
|
-
export declare namespace PBUiCanvas {
|
|
6526
|
-
export function encode(message: PBUiCanvas, writer?: _m0.Writer): _m0.Writer;
|
|
6527
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiCanvas;
|
|
6528
|
-
}
|
|
6529
|
-
|
|
6530
5965
|
/** This component is created by the renderer and used by the scenes to know the resolution of the UI canvas */
|
|
6531
5966
|
/**
|
|
6532
5967
|
* @public
|
|
@@ -6643,21 +6078,6 @@ export declare namespace PBUiInputResult {
|
|
|
6643
6078
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputResult;
|
|
6644
6079
|
}
|
|
6645
6080
|
|
|
6646
|
-
/**
|
|
6647
|
-
* @public
|
|
6648
|
-
*/
|
|
6649
|
-
export declare interface PBUiScrollResult {
|
|
6650
|
-
value: PBVector2 | undefined;
|
|
6651
|
-
}
|
|
6652
|
-
|
|
6653
|
-
/**
|
|
6654
|
-
* @public
|
|
6655
|
-
*/
|
|
6656
|
-
export declare namespace PBUiScrollResult {
|
|
6657
|
-
export function encode(message: PBUiScrollResult, writer?: _m0.Writer): _m0.Writer;
|
|
6658
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiScrollResult;
|
|
6659
|
-
}
|
|
6660
|
-
|
|
6661
6081
|
/**
|
|
6662
6082
|
* @public
|
|
6663
6083
|
*/
|
|
@@ -6674,10 +6094,6 @@ export declare interface PBUiText {
|
|
|
6674
6094
|
fontSize?: number | undefined;
|
|
6675
6095
|
/** wrap text when the border is reached (default: TW_WRAP) */
|
|
6676
6096
|
textWrap?: TextWrap | undefined;
|
|
6677
|
-
/** width of the outline (default: 0) */
|
|
6678
|
-
outlineWidth?: number | undefined;
|
|
6679
|
-
/** RGBA color of the outline (default: opaque black) */
|
|
6680
|
-
outlineColor?: PBColor4 | undefined;
|
|
6681
6097
|
}
|
|
6682
6098
|
|
|
6683
6099
|
/**
|
|
@@ -6805,12 +6221,6 @@ export declare interface PBUiTransform {
|
|
|
6805
6221
|
borderRightColor?: PBColor4 | undefined;
|
|
6806
6222
|
/** default: 1 */
|
|
6807
6223
|
opacity?: number | undefined;
|
|
6808
|
-
/** reference for scroll_position. default empty */
|
|
6809
|
-
elementId?: string | undefined;
|
|
6810
|
-
/** default position=(0,0) */
|
|
6811
|
-
scrollPosition?: ScrollPositionValue | undefined;
|
|
6812
|
-
/** default ShowScrollBar.SSB_BOTH */
|
|
6813
|
-
scrollVisible?: ShowScrollBar | undefined;
|
|
6814
6224
|
/** default: 0 — controls render stacking order. Higher values appear in front of lower values. */
|
|
6815
6225
|
zIndex?: number | undefined;
|
|
6816
6226
|
}
|
|
@@ -6960,25 +6370,6 @@ export declare namespace PBVisibilityComponent {
|
|
|
6960
6370
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBVisibilityComponent;
|
|
6961
6371
|
}
|
|
6962
6372
|
|
|
6963
|
-
/**
|
|
6964
|
-
* @public
|
|
6965
|
-
*/
|
|
6966
|
-
export declare interface Perspective {
|
|
6967
|
-
/**
|
|
6968
|
-
* vertical field of view in radians
|
|
6969
|
-
* defaults to pi/4 = 45 degrees
|
|
6970
|
-
*/
|
|
6971
|
-
fieldOfView?: number | undefined;
|
|
6972
|
-
}
|
|
6973
|
-
|
|
6974
|
-
/**
|
|
6975
|
-
* @public
|
|
6976
|
-
*/
|
|
6977
|
-
export declare namespace Perspective {
|
|
6978
|
-
export function encode(message: Perspective, writer?: _m0.Writer): _m0.Writer;
|
|
6979
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): Perspective;
|
|
6980
|
-
}
|
|
6981
|
-
|
|
6982
6373
|
/**
|
|
6983
6374
|
* Represens a plane by the equation ax + by + cz + d = 0
|
|
6984
6375
|
* @public
|
|
@@ -7134,37 +6525,11 @@ export declare interface PointerEventsSystem {
|
|
|
7134
6525
|
* @param entity - Entity where the callback was attached
|
|
7135
6526
|
*/
|
|
7136
6527
|
removeOnPointerHoverLeave(entity: Entity): void;
|
|
7137
|
-
/**
|
|
7138
|
-
* @public
|
|
7139
|
-
* Remove the callback for onPointerDrag event
|
|
7140
|
-
* @param entity - Entity where the callback was attached
|
|
7141
|
-
*/
|
|
7142
|
-
removeOnPointerDrag(entity: Entity): void;
|
|
7143
|
-
/**
|
|
7144
|
-
* @public
|
|
7145
|
-
* Remove the callback for onPointerDragLocked event
|
|
7146
|
-
* @param entity - Entity where the callback was attached
|
|
7147
|
-
*/
|
|
7148
|
-
removeOnPointerDragLocked(entity: Entity): void;
|
|
7149
|
-
/**
|
|
7150
|
-
* @public
|
|
7151
|
-
* Remove the callback for onPointerDragEnd event
|
|
7152
|
-
* @param entity - Entity where the callback was attached
|
|
7153
|
-
*/
|
|
7154
|
-
removeOnPointerDragEnd(entity: Entity): void;
|
|
7155
|
-
/**
|
|
7156
|
-
* @public
|
|
7157
|
-
* Execute callbacks when the user presses one of the InputButtons pointing at the entity
|
|
7158
|
-
* @param pointerData - Entity to attach the callbacks, list of options to trigger Feedback, Button, and Callback
|
|
7159
|
-
*/
|
|
7160
|
-
onPointerDown(pointerData: {
|
|
7161
|
-
entity: Entity;
|
|
7162
|
-
optsList: EventSystemOptionsCallback[];
|
|
7163
|
-
}): void;
|
|
7164
6528
|
/**
|
|
7165
6529
|
* @public
|
|
7166
6530
|
* Execute callback when the user press the InputButton pointing at the entity
|
|
7167
6531
|
* @param pointerData - Entity to attach the callback, Opts to trigger Feedback and Button
|
|
6532
|
+
* @param cb - Function to execute when click fires
|
|
7168
6533
|
*/
|
|
7169
6534
|
onPointerDown(pointerData: {
|
|
7170
6535
|
entity: Entity;
|
|
@@ -7177,15 +6542,6 @@ export declare interface PointerEventsSystem {
|
|
|
7177
6542
|
* @param opts - Opts to trigger Feedback and Button
|
|
7178
6543
|
*/
|
|
7179
6544
|
onPointerDown(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
|
|
7180
|
-
/**
|
|
7181
|
-
* @public
|
|
7182
|
-
* Execute callbacks when the user releases one of the InputButtons pointing at the entity
|
|
7183
|
-
* @param pointerData - Entity to attach the callbacks, list of options to trigger Feedback, Button, and Callback
|
|
7184
|
-
*/
|
|
7185
|
-
onPointerUp(pointerData: {
|
|
7186
|
-
entity: Entity;
|
|
7187
|
-
optsList: EventSystemOptionsCallback[];
|
|
7188
|
-
}): void;
|
|
7189
6545
|
/**
|
|
7190
6546
|
* @public
|
|
7191
6547
|
* Execute callback when the user releases the InputButton pointing at the entity
|
|
@@ -7223,64 +6579,6 @@ export declare interface PointerEventsSystem {
|
|
|
7223
6579
|
entity: Entity;
|
|
7224
6580
|
opts?: Partial<EventSystemOptions>;
|
|
7225
6581
|
}, cb: EventSystemCallback): void;
|
|
7226
|
-
/**
|
|
7227
|
-
* @public
|
|
7228
|
-
* Execute callbacks when the user drags the pointer from inside the entity
|
|
7229
|
-
* @param pointerData - Entity to attach the callbacks, list of options to trigger Feedback, Button, and Callback
|
|
7230
|
-
*/
|
|
7231
|
-
onPointerDrag(pointerData: {
|
|
7232
|
-
entity: Entity;
|
|
7233
|
-
optsList: EventSystemOptionsCallback[];
|
|
7234
|
-
}): void;
|
|
7235
|
-
/**
|
|
7236
|
-
* @public
|
|
7237
|
-
* Execute callback when the user clicks and drags the pointer from inside the entity
|
|
7238
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
|
7239
|
-
* @param cb - Function to execute when click fires
|
|
7240
|
-
*/
|
|
7241
|
-
onPointerDrag(pointerData: {
|
|
7242
|
-
entity: Entity;
|
|
7243
|
-
opts?: Partial<EventSystemOptions>;
|
|
7244
|
-
}, cb: EventSystemCallback): void;
|
|
7245
|
-
/**
|
|
7246
|
-
* @public
|
|
7247
|
-
* Execute callbacks when the user drags the pointer from inside the entity, locking the cursor in place.
|
|
7248
|
-
* @param pointerData - Entity to attach the callbacks, list of options to trigger Feedback, Button, and Callback
|
|
7249
|
-
*/
|
|
7250
|
-
onPointerDragLocked(pointerData: {
|
|
7251
|
-
entity: Entity;
|
|
7252
|
-
optsList: EventSystemOptionsCallback[];
|
|
7253
|
-
}): void;
|
|
7254
|
-
/**
|
|
7255
|
-
* @public
|
|
7256
|
-
* Execute callback when the user clicks and drags the pointer from inside the entity,
|
|
7257
|
-
* locking the cursor in place
|
|
7258
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
|
7259
|
-
* @param cb - Function to execute when click fires
|
|
7260
|
-
*/
|
|
7261
|
-
onPointerDragLocked(pointerData: {
|
|
7262
|
-
entity: Entity;
|
|
7263
|
-
opts?: Partial<EventSystemOptions>;
|
|
7264
|
-
}, cb: EventSystemCallback): void;
|
|
7265
|
-
/**
|
|
7266
|
-
* @public
|
|
7267
|
-
* Execute callbacks when the user releases a button after a drag
|
|
7268
|
-
* @param pointerData - Entity to attach the callbacks, list of options to trigger Feedback, Button, and Callback
|
|
7269
|
-
*/
|
|
7270
|
-
onPointerDragEnd(pointerData: {
|
|
7271
|
-
entity: Entity;
|
|
7272
|
-
optsList: EventSystemOptionsCallback[];
|
|
7273
|
-
}): void;
|
|
7274
|
-
/**
|
|
7275
|
-
* @public
|
|
7276
|
-
* Execute callback when the user releases the button after a drag
|
|
7277
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
|
7278
|
-
* @param cb - Function to execute when click fires
|
|
7279
|
-
*/
|
|
7280
|
-
onPointerDragEnd(pointerData: {
|
|
7281
|
-
entity: Entity;
|
|
7282
|
-
opts?: Partial<EventSystemOptions>;
|
|
7283
|
-
}, cb: EventSystemCallback): void;
|
|
7284
6582
|
}
|
|
7285
6583
|
|
|
7286
6584
|
/**
|
|
@@ -7297,10 +6595,7 @@ export declare const enum PointerEventType {
|
|
|
7297
6595
|
PET_UP = 0,
|
|
7298
6596
|
PET_DOWN = 1,
|
|
7299
6597
|
PET_HOVER_ENTER = 2,
|
|
7300
|
-
PET_HOVER_LEAVE = 3
|
|
7301
|
-
PET_DRAG_LOCKED = 4,
|
|
7302
|
-
PET_DRAG = 5,
|
|
7303
|
-
PET_DRAG_END = 6
|
|
6598
|
+
PET_HOVER_LEAVE = 3
|
|
7304
6599
|
}
|
|
7305
6600
|
|
|
7306
6601
|
/**
|
|
@@ -7331,10 +6626,7 @@ export declare const enum PointerType {
|
|
|
7331
6626
|
/** POT_NONE - No pointer input */
|
|
7332
6627
|
POT_NONE = 0,
|
|
7333
6628
|
/** POT_MOUSE - Traditional mouse input */
|
|
7334
|
-
POT_MOUSE = 1
|
|
7335
|
-
POT_PAD = 2,
|
|
7336
|
-
POT_TOUCH = 3,
|
|
7337
|
-
POT_WAND = 4
|
|
6629
|
+
POT_MOUSE = 1
|
|
7338
6630
|
}
|
|
7339
6631
|
|
|
7340
6632
|
/**
|
|
@@ -7937,11 +7229,6 @@ export declare interface ReactBasedUiSystem {
|
|
|
7937
7229
|
* Set the main UI renderer. Optional virtual size defines the global UI scale factor.
|
|
7938
7230
|
*/
|
|
7939
7231
|
setUiRenderer(ui: UiComponent, options?: UiRendererOptions): void;
|
|
7940
|
-
/**
|
|
7941
|
-
* Set a texture renderer for a specific entity.
|
|
7942
|
-
* @deprecated Use addUiRenderer instead
|
|
7943
|
-
*/
|
|
7944
|
-
setTextureRenderer(entity: Entity, ui: UiComponent): void;
|
|
7945
7232
|
/**
|
|
7946
7233
|
* Add a UI renderer associated with an entity. The UI will be automatically cleaned up
|
|
7947
7234
|
* when the entity is removed from the engine.
|
|
@@ -8525,49 +7812,6 @@ export declare namespace Schemas {
|
|
|
8525
7812
|
}) => void;
|
|
8526
7813
|
}
|
|
8527
7814
|
|
|
8528
|
-
/**
|
|
8529
|
-
* @public
|
|
8530
|
-
*/
|
|
8531
|
-
export declare interface ScrollPositionValue {
|
|
8532
|
-
value?: {
|
|
8533
|
-
$case: "position";
|
|
8534
|
-
position: PBVector2;
|
|
8535
|
-
} | {
|
|
8536
|
-
$case: "reference";
|
|
8537
|
-
reference: string;
|
|
8538
|
-
} | undefined;
|
|
8539
|
-
}
|
|
8540
|
-
|
|
8541
|
-
/**
|
|
8542
|
-
* @public
|
|
8543
|
-
*/
|
|
8544
|
-
export declare namespace ScrollPositionValue {
|
|
8545
|
-
export function encode(message: ScrollPositionValue, writer?: _m0.Writer): _m0.Writer;
|
|
8546
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): ScrollPositionValue;
|
|
8547
|
-
}
|
|
8548
|
-
|
|
8549
|
-
/**
|
|
8550
|
-
* @public
|
|
8551
|
-
* The scroll-visible determines if the scrollbars are shown when the scroll overflow is enabled
|
|
8552
|
-
*/
|
|
8553
|
-
export declare type ScrollVisibleType = 'horizontal' | 'vertical' | 'both' | 'hidden';
|
|
8554
|
-
|
|
8555
|
-
/**
|
|
8556
|
-
* Sets a globalThis property as a polyfill (only if undefined/null).
|
|
8557
|
-
* @public
|
|
8558
|
-
*/
|
|
8559
|
-
export declare function setGlobalPolyfill<T>(key: string, value: T): void;
|
|
8560
|
-
|
|
8561
|
-
/**
|
|
8562
|
-
* @public
|
|
8563
|
-
*/
|
|
8564
|
-
export declare const enum ShowScrollBar {
|
|
8565
|
-
SSB_BOTH = 0,
|
|
8566
|
-
SSB_ONLY_VERTICAL = 1,
|
|
8567
|
-
SSB_ONLY_HORIZONTAL = 2,
|
|
8568
|
-
SSB_HIDDEN = 3
|
|
8569
|
-
}
|
|
8570
|
-
|
|
8571
7815
|
/** @public */
|
|
8572
7816
|
export declare const SkyboxTime: LastWriteWinElementSetComponentDefinition<PBSkyboxTime>;
|
|
8573
7817
|
|
|
@@ -8679,9 +7923,6 @@ export declare namespace Texture {
|
|
|
8679
7923
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): Texture;
|
|
8680
7924
|
}
|
|
8681
7925
|
|
|
8682
|
-
/** @public */
|
|
8683
|
-
export declare const TextureCamera: LastWriteWinElementSetComponentDefinition<PBTextureCamera>;
|
|
8684
|
-
|
|
8685
7926
|
/**
|
|
8686
7927
|
* @public
|
|
8687
7928
|
*/
|
|
@@ -8792,9 +8033,6 @@ export declare interface TextureUnion {
|
|
|
8792
8033
|
} | {
|
|
8793
8034
|
$case: "videoTexture";
|
|
8794
8035
|
videoTexture: VideoTexture;
|
|
8795
|
-
} | {
|
|
8796
|
-
$case: "uiTexture";
|
|
8797
|
-
uiTexture: UiCanvasTexture;
|
|
8798
8036
|
} | undefined;
|
|
8799
8037
|
}
|
|
8800
8038
|
|
|
@@ -9272,8 +8510,6 @@ export declare interface UiBackgroundProps {
|
|
|
9272
8510
|
uvs?: number[];
|
|
9273
8511
|
/** AvatarTexture for the background */
|
|
9274
8512
|
avatarTexture?: UiAvatarTexture;
|
|
9275
|
-
/** VideoTexture for the background */
|
|
9276
|
-
videoTexture?: UiVideoTexture;
|
|
9277
8513
|
/** Texture for the background */
|
|
9278
8514
|
texture?: UiTexture;
|
|
9279
8515
|
}
|
|
@@ -9293,31 +8529,9 @@ export declare interface UiButtonProps extends UiLabelProps, EntityPropTypes {
|
|
|
9293
8529
|
disabled?: boolean;
|
|
9294
8530
|
}
|
|
9295
8531
|
|
|
9296
|
-
/** @public */
|
|
9297
|
-
export declare const UiCanvas: LastWriteWinElementSetComponentDefinition<PBUiCanvas>;
|
|
9298
|
-
|
|
9299
8532
|
/** @public */
|
|
9300
8533
|
export declare const UiCanvasInformation: LastWriteWinElementSetComponentDefinition<PBUiCanvasInformation>;
|
|
9301
8534
|
|
|
9302
|
-
/**
|
|
9303
|
-
* @public
|
|
9304
|
-
*/
|
|
9305
|
-
export declare interface UiCanvasTexture {
|
|
9306
|
-
uiCanvasEntity: number;
|
|
9307
|
-
/** default = TextureWrapMode.Clamp */
|
|
9308
|
-
wrapMode?: TextureWrapMode | undefined;
|
|
9309
|
-
/** default = FilterMode.Bilinear */
|
|
9310
|
-
filterMode?: TextureFilterMode | undefined;
|
|
9311
|
-
}
|
|
9312
|
-
|
|
9313
|
-
/**
|
|
9314
|
-
* @public
|
|
9315
|
-
*/
|
|
9316
|
-
export declare namespace UiCanvasTexture {
|
|
9317
|
-
export function encode(message: UiCanvasTexture, writer?: _m0.Writer): _m0.Writer;
|
|
9318
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): UiCanvasTexture;
|
|
9319
|
-
}
|
|
9320
|
-
|
|
9321
8535
|
/**
|
|
9322
8536
|
* @public
|
|
9323
8537
|
*/
|
|
@@ -9387,10 +8601,6 @@ export declare interface UiLabelProps {
|
|
|
9387
8601
|
textAlign?: TextAlignType | undefined;
|
|
9388
8602
|
/** Label font type. @defaultValue 'sans-serif' */
|
|
9389
8603
|
font?: UiFontType | undefined;
|
|
9390
|
-
/** Outline width of the text. @defaultValue 0 */
|
|
9391
|
-
outlineWidth?: number | undefined;
|
|
9392
|
-
/** Outline color of the text. @defaultValue `{ r: 0, g: 0, b: 0, a: 1 }` */
|
|
9393
|
-
outlineColor?: PBColor4 | undefined;
|
|
9394
8604
|
/** Behaviour when text reached. @defaultValue 'wrap' */
|
|
9395
8605
|
textWrap?: UiTextWrapType | undefined;
|
|
9396
8606
|
}
|
|
@@ -9408,9 +8618,6 @@ export declare type UiRendererOptions = {
|
|
|
9408
8618
|
virtualHeight: number;
|
|
9409
8619
|
};
|
|
9410
8620
|
|
|
9411
|
-
/** @public */
|
|
9412
|
-
export declare const UiScrollResult: LastWriteWinElementSetComponentDefinition<PBUiScrollResult>;
|
|
9413
|
-
|
|
9414
8621
|
/** @public */
|
|
9415
8622
|
export declare const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
|
|
9416
8623
|
|
|
@@ -9488,26 +8695,10 @@ export declare interface UiTransformProps {
|
|
|
9488
8695
|
borderWidth?: Partial<Position> | PositionUnit;
|
|
9489
8696
|
/** The opacity property sets the opacity level for an element, it's accumulated across children @defaultValue 1 */
|
|
9490
8697
|
opacity?: number;
|
|
9491
|
-
/** A reference value to identify the element, default empty */
|
|
9492
|
-
elementId?: string;
|
|
9493
|
-
/** default position=(0,0) if it aplies, a vector or a reference-id */
|
|
9494
|
-
scrollPosition?: PBVector2 | string;
|
|
9495
|
-
/** default ShowScrollBar.SSB_BOTH */
|
|
9496
|
-
scrollVisible?: ScrollVisibleType;
|
|
9497
8698
|
/** default 0 */
|
|
9498
8699
|
zIndex?: number;
|
|
9499
8700
|
}
|
|
9500
8701
|
|
|
9501
|
-
/**
|
|
9502
|
-
* Texture
|
|
9503
|
-
* @public
|
|
9504
|
-
*/
|
|
9505
|
-
export declare interface UiVideoTexture {
|
|
9506
|
-
videoPlayerEntity: Entity;
|
|
9507
|
-
wrapMode?: TextureWrapType;
|
|
9508
|
-
filterMode?: TextureFilterType;
|
|
9509
|
-
}
|
|
9510
|
-
|
|
9511
8702
|
/**
|
|
9512
8703
|
* @public
|
|
9513
8704
|
*/
|