@dcl/playground-assets 7.5.7-10236853633.commit-23b945d → 7.5.7-10267169352.commit-af4dbfa
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 +4 -357
- package/dist/beta.d.ts +4 -357
- package/dist/index.bundled.d.ts +4 -357
- package/dist/index.js +6 -6
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +4 -357
- package/etc/playground-assets.api.json +417 -4005
- package/etc/playground-assets.api.md +0 -228
- package/package.json +4 -4
package/dist/index.bundled.d.ts
CHANGED
@@ -178,18 +178,6 @@ export declare const AvatarAttach: LastWriteWinElementSetComponentDefinition<PBA
|
|
178
178
|
/** @public */
|
179
179
|
export declare const AvatarBase: LastWriteWinElementSetComponentDefinition<PBAvatarBase>;
|
180
180
|
|
181
|
-
/**
|
182
|
-
* @public
|
183
|
-
*/
|
184
|
-
export declare const enum AvatarControlType {
|
185
|
-
/** CCT_NONE - avatar cannot move */
|
186
|
-
CCT_NONE = 0,
|
187
|
-
/** CCT_RELATIVE - avatar moves relative to the camera origin */
|
188
|
-
CCT_RELATIVE = 1,
|
189
|
-
/** CCT_TANK - avatar moves like a tank: left/right rotate the player, forward/backward advance/retreat the player */
|
190
|
-
CCT_TANK = 2
|
191
|
-
}
|
192
|
-
|
193
181
|
/** @public */
|
194
182
|
export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>;
|
195
183
|
|
@@ -210,37 +198,6 @@ export declare const enum AvatarModifierType {
|
|
210
198
|
AMT_DISABLE_PASSPORTS = 1
|
211
199
|
}
|
212
200
|
|
213
|
-
/**
|
214
|
-
* @public
|
215
|
-
*/
|
216
|
-
export declare interface AvatarMovementSettings {
|
217
|
-
controlMode?: AvatarControlType | undefined;
|
218
|
-
/** if not explicitly set, the following properties default to user's preference settings */
|
219
|
-
runSpeed?: number | undefined;
|
220
|
-
/** how fast the player gets up to speed or comes to rest. higher = more responsive */
|
221
|
-
friction?: number | undefined;
|
222
|
-
/** how fast the player accelerates vertically when not on a solid surface, in m/s. should normally be negative */
|
223
|
-
gravity?: number | undefined;
|
224
|
-
/** how high the player can jump, in meters. should normally be positive. gravity must have the same sign for jumping to be possible */
|
225
|
-
jumpHeight?: number | undefined;
|
226
|
-
/** max fall speed in m/s. should normally be negative */
|
227
|
-
maxFallSpeed?: number | undefined;
|
228
|
-
/** speed the player turns in tank mode, in radians/s */
|
229
|
-
turnSpeed?: number | undefined;
|
230
|
-
/** speed the player walks at, in m/s */
|
231
|
-
walkSpeed?: number | undefined;
|
232
|
-
/** 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 */
|
233
|
-
allowWeightedMovement?: boolean | undefined;
|
234
|
-
}
|
235
|
-
|
236
|
-
/**
|
237
|
-
* @public
|
238
|
-
*/
|
239
|
-
export declare namespace AvatarMovementSettings {
|
240
|
-
export function encode(message: AvatarMovementSettings, writer?: _m0.Writer): _m0.Writer;
|
241
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): AvatarMovementSettings;
|
242
|
-
}
|
243
|
-
|
244
201
|
/** @public */
|
245
202
|
export declare const AvatarShape: LastWriteWinElementSetComponentDefinition<PBAvatarShape>;
|
246
203
|
|
@@ -523,39 +480,6 @@ export declare const enum CameraType {
|
|
523
480
|
|
524
481
|
export declare type Children = ReactEcs.JSX.ReactNode;
|
525
482
|
|
526
|
-
/**
|
527
|
-
* @public
|
528
|
-
*/
|
529
|
-
export declare interface CinematicSettings {
|
530
|
-
/** Entity that defines the cinematic camera transform. */
|
531
|
-
cameraEntity: number;
|
532
|
-
/**
|
533
|
-
* Position -> camera's position
|
534
|
-
* Rotation -> camera's direction
|
535
|
-
* scale.z -> zoom level
|
536
|
-
* scale.x and scale.y -> unused
|
537
|
-
*/
|
538
|
-
allowManualRotation?: boolean | undefined;
|
539
|
-
/** how far the camera can rotate around the y-axis / look left/right, in radians. default unrestricted */
|
540
|
-
yawRange?: number | undefined;
|
541
|
-
/** how far the camera can rotate around the x-axis / look up-down, in radians. default unrestricted */
|
542
|
-
pitchRange?: number | undefined;
|
543
|
-
/** note: cameras can never look up/down further than Vec3::Y */
|
544
|
-
rollRange?: number | undefined;
|
545
|
-
/** minimum zoom level. must be greater than 0. defaults to the input zoom level */
|
546
|
-
zoomMin?: number | undefined;
|
547
|
-
/** maximum zoom level. must be greater than 0. defaults to the input zoom level */
|
548
|
-
zoomMax?: number | undefined;
|
549
|
-
}
|
550
|
-
|
551
|
-
/**
|
552
|
-
* @public
|
553
|
-
*/
|
554
|
-
export declare namespace CinematicSettings {
|
555
|
-
export function encode(message: CinematicSettings, writer?: _m0.Writer): _m0.Writer;
|
556
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): CinematicSettings;
|
557
|
-
}
|
558
|
-
|
559
483
|
/** ColliderLayer determines the kind of collision to detect, in OR-able bit flag form. */
|
560
484
|
/**
|
561
485
|
* @public
|
@@ -1334,8 +1258,6 @@ export declare const componentDefinitionByName: {
|
|
1334
1258
|
"core::EngineInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
|
1335
1259
|
"core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
|
1336
1260
|
"core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
|
1337
|
-
"core::GltfNode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNode>>;
|
1338
|
-
"core::GltfNodeState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNodeState>>;
|
1339
1261
|
"core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
|
1340
1262
|
"core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
1341
1263
|
"core::MeshRenderer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
|
@@ -1357,7 +1279,6 @@ export declare const componentDefinitionByName: {
|
|
1357
1279
|
"core::UiDropdownResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>>;
|
1358
1280
|
"core::UiInput": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInput>>;
|
1359
1281
|
"core::UiInputResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputResult>>;
|
1360
|
-
"core::UiScrollResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiScrollResult>>;
|
1361
1282
|
"core::UiText": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiText>>;
|
1362
1283
|
"core::UiTransform": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiTransform>>;
|
1363
1284
|
"core::VideoEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBVideoEvent>>;
|
@@ -2080,21 +2001,6 @@ export declare const GltfContainer: LastWriteWinElementSetComponentDefinition<PB
|
|
2080
2001
|
/** @public */
|
2081
2002
|
export declare const GltfContainerLoadingState: LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>;
|
2082
2003
|
|
2083
|
-
/** @public */
|
2084
|
-
export declare const GltfNode: LastWriteWinElementSetComponentDefinition<PBGltfNode>;
|
2085
|
-
|
2086
|
-
/** @public */
|
2087
|
-
export declare const GltfNodeState: LastWriteWinElementSetComponentDefinition<PBGltfNodeState>;
|
2088
|
-
|
2089
|
-
/**
|
2090
|
-
* @public
|
2091
|
-
*/
|
2092
|
-
export declare const enum GltfNodeStateValue {
|
2093
|
-
GNSV_PENDING = 0,
|
2094
|
-
GNSV_FAILED = 1,
|
2095
|
-
GNSV_READY = 2
|
2096
|
-
}
|
2097
|
-
|
2098
2004
|
/**
|
2099
2005
|
* @public
|
2100
2006
|
*/
|
@@ -3541,14 +3447,6 @@ export declare interface MeshColliderComponentDefinitionExtended extends LastWri
|
|
3541
3447
|
* @param colliderMask - the set of layer where the collider reacts, default: Physics and Pointer
|
3542
3448
|
*/
|
3543
3449
|
setSphere(entity: Entity, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
|
3544
|
-
/**
|
3545
|
-
* @public
|
3546
|
-
* Set a gltf internal mesh in the MeshCollider component
|
3547
|
-
* @param entity - entity to create or replace the MeshRenderer component
|
3548
|
-
* @param source - the path to the gltf
|
3549
|
-
* @param meshName - the name of the mesh in the gltf
|
3550
|
-
*/
|
3551
|
-
setGltfMesh(entity: Entity, source: string, meshName: string, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
|
3552
3450
|
}
|
3553
3451
|
|
3554
3452
|
export declare const MeshRenderer: MeshRendererComponentDefinitionExtended;
|
@@ -3585,14 +3483,6 @@ export declare interface MeshRendererComponentDefinitionExtended extends LastWri
|
|
3585
3483
|
* @param entity - entity to create or replace the MeshRenderer component
|
3586
3484
|
*/
|
3587
3485
|
setSphere(entity: Entity): void;
|
3588
|
-
/**
|
3589
|
-
* @public
|
3590
|
-
* Set a gltf internal mesh in the MeshRenderer component
|
3591
|
-
* @param entity - entity to create or replace the MeshRenderer component
|
3592
|
-
* @param source - the path to the gltf
|
3593
|
-
* @param meshName - the name of the mesh in the gltf
|
3594
|
-
*/
|
3595
|
-
setGltfMesh(entity: Entity, source: string, meshName: string): void;
|
3596
3486
|
}
|
3597
3487
|
|
3598
3488
|
/* Excluded from this release type: MessageBus */
|
@@ -4246,9 +4136,6 @@ export declare interface PBAvatarModifierArea {
|
|
4246
4136
|
excludeIds: string[];
|
4247
4137
|
/** list of modifiers to apply */
|
4248
4138
|
modifiers: AvatarModifierType[];
|
4249
|
-
movementSettings?: AvatarMovementSettings | undefined;
|
4250
|
-
/** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
|
4251
|
-
useColliderRange?: boolean | undefined;
|
4252
4139
|
}
|
4253
4140
|
|
4254
4141
|
/**
|
@@ -4361,7 +4248,7 @@ export declare namespace PBCameraMode {
|
|
4361
4248
|
|
4362
4249
|
/**
|
4363
4250
|
* The CameraModeArea component can be attached to an Entity to define a region of space where
|
4364
|
-
* the player's camera mode (1st-person
|
4251
|
+
* the player's camera mode (1st-person or 3rd-person) is overridden.
|
4365
4252
|
*
|
4366
4253
|
* The Entity's Transform position determines the center-point of the region, while its size is
|
4367
4254
|
* given as a vector in the `area` property below. The Transform rotation is applied, but the scale
|
@@ -4371,8 +4258,6 @@ export declare namespace PBCameraMode {
|
|
4371
4258
|
*
|
4372
4259
|
* Note that, while commonly used to delineate a 2D area in a scene (hence the name), the region
|
4373
4260
|
* is actually a 3D volume.
|
4374
|
-
*
|
4375
|
-
* When mode is set to CtCinematic, the cinematic_settings field must also be provided.
|
4376
4261
|
*/
|
4377
4262
|
/**
|
4378
4263
|
* @public
|
@@ -4382,9 +4267,6 @@ export declare interface PBCameraModeArea {
|
|
4382
4267
|
area: PBVector3 | undefined;
|
4383
4268
|
/** the camera mode to enforce */
|
4384
4269
|
mode: CameraType;
|
4385
|
-
cinematicSettings?: CinematicSettings | undefined;
|
4386
|
-
/** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
|
4387
|
-
useColliderRange?: boolean | undefined;
|
4388
4270
|
}
|
4389
4271
|
|
4390
4272
|
/**
|
@@ -4491,25 +4373,6 @@ export declare namespace PBGltfContainer {
|
|
4491
4373
|
*/
|
4492
4374
|
export declare interface PBGltfContainerLoadingState {
|
4493
4375
|
currentState: LoadingState;
|
4494
|
-
/** all node paths in the gltf, which can be used with a GltfNode to inspect and modify the gltf contents */
|
4495
|
-
nodePaths: string[];
|
4496
|
-
/** all meshes in the gltf. unnamed meshes will be auto-assigned a name of the form `MeshX` or `MeshX/PrimitiveY` */
|
4497
|
-
meshNames: string[];
|
4498
|
-
/**
|
4499
|
-
* where X is the mesh index and Y is the primitive index (and there is more than 1 primitive). note this may
|
4500
|
-
* conflict with manually named meshes - to avoid any issues make sure all your meshes are explicitly named.
|
4501
|
-
*/
|
4502
|
-
materialNames: string[];
|
4503
|
-
/**
|
4504
|
-
* X is the material index. note this may conflict with manually named materials - to avoid any issues make
|
4505
|
-
* sure all your materials are explicitly named.
|
4506
|
-
*/
|
4507
|
-
skinNames: string[];
|
4508
|
-
/**
|
4509
|
-
* X is the skin index. note this may conflict with manually named skins - to avoid any issues make sure all
|
4510
|
-
* your skins are explicitly named.
|
4511
|
-
*/
|
4512
|
-
animationNames: string[];
|
4513
4376
|
}
|
4514
4377
|
|
4515
4378
|
/**
|
@@ -4520,77 +4383,6 @@ export declare namespace PBGltfContainerLoadingState {
|
|
4520
4383
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfContainerLoadingState;
|
4521
4384
|
}
|
4522
4385
|
|
4523
|
-
/**
|
4524
|
-
* a GltfNode links a scene entity with a node from within a gltf, allowing the scene to inspect it or modify it.
|
4525
|
-
* This component must be added to a direct child of an entity with a PbGltfContainer component, or
|
4526
|
-
* to a direct child of another entity with a GltfNode component, and the referenced gltf node must be a descendent of the gltf node
|
4527
|
-
* in the parent.
|
4528
|
-
* The name must match the path of one of the nodes within the Gltf. These are available on the GltfContainerLoadingState component.
|
4529
|
-
*
|
4530
|
-
* The renderer will attach a PbGltfNodeState to the entity describing the state. Once the state is `GNS_READY`,
|
4531
|
-
* - the `Transform` will be updated to match the position of the node within the gltf (relative to the gltf root, or the parent node),
|
4532
|
-
* - a `MeshRenderer` with a GltfMesh mesh type will be added (if the gltf node has a mesh).
|
4533
|
-
* - a `MeshCollider` with a GltfMesh mesh type will be added (if the gltf node has a collider).
|
4534
|
-
* - a `Material` component including a GltfMaterial reference will be added (if the gltf node has a material).
|
4535
|
-
*
|
4536
|
-
* After creation, if an animation moves the node, the `Transform` will be updated.
|
4537
|
-
*
|
4538
|
-
* From the scene, you can modify various components to alter the gltf node:
|
4539
|
-
* - modifying the `Transform` position/rotation/scale will move the node. The position is interpreted relative to the gltf root (or parent node),
|
4540
|
-
* regardless of any intermediate gltf node hierarchy.
|
4541
|
-
* If an animation is playing, the animation takes priority and the scene entity's position will be updated to match the animation.
|
4542
|
-
* - `Visibility` can be added to hide or show the node and it's children in the gltf hierarchy.
|
4543
|
-
* - `MeshRenderer` can be added/modified/removed to create/modify/remove a mesh on the node.
|
4544
|
-
* - `MeshCollider` can be added/modified/removed to create/modify/remove a collider on the node.
|
4545
|
-
* - `Material` can be added or modified to change the material properties. If the gltf node has a material, the original material will be
|
4546
|
-
* 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
|
4547
|
-
* PbMaterial will be maintained.
|
4548
|
-
*
|
4549
|
-
* The scene can add additional entities as children to the gltf node, but structural modifications of the gltf are not possible:
|
4550
|
-
* - changing the scene hierarchy will not change the gltf node hierarchy. Moving the entity out of the gltf will sever the link and
|
4551
|
-
* change the state to `GNS_FAILED`.
|
4552
|
-
* - deleting the scene entity will not delete the gltf node.
|
4553
|
-
*
|
4554
|
-
* Removing the GltfNode will revert any changes to the original gltf. If the GltfNode component is removed and the mesh/collider/material
|
4555
|
-
* are not removed, this will result in a duplication of these components as the previously-linked entity will retain it's components and
|
4556
|
-
* the gltf node will also be displayed.
|
4557
|
-
*/
|
4558
|
-
/**
|
4559
|
-
* @public
|
4560
|
-
*/
|
4561
|
-
export declare interface PBGltfNode {
|
4562
|
-
/** the path of the target node in the Gltf. */
|
4563
|
-
path: string;
|
4564
|
-
}
|
4565
|
-
|
4566
|
-
/**
|
4567
|
-
* @public
|
4568
|
-
*/
|
4569
|
-
export declare namespace PBGltfNode {
|
4570
|
-
export function encode(message: PBGltfNode, writer?: _m0.Writer): _m0.Writer;
|
4571
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNode;
|
4572
|
-
}
|
4573
|
-
|
4574
|
-
/**
|
4575
|
-
* The state of a linked gltf node.
|
4576
|
-
* If the state is GNSV_FAILED, the renderer may describe the failure in the error string.
|
4577
|
-
*/
|
4578
|
-
/**
|
4579
|
-
* @public
|
4580
|
-
*/
|
4581
|
-
export declare interface PBGltfNodeState {
|
4582
|
-
state: GltfNodeStateValue;
|
4583
|
-
error?: string | undefined;
|
4584
|
-
}
|
4585
|
-
|
4586
|
-
/**
|
4587
|
-
* @public
|
4588
|
-
*/
|
4589
|
-
export declare namespace PBGltfNodeState {
|
4590
|
-
export function encode(message: PBGltfNodeState, writer?: _m0.Writer): _m0.Writer;
|
4591
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNodeState;
|
4592
|
-
}
|
4593
|
-
|
4594
4386
|
/**
|
4595
4387
|
* @public
|
4596
4388
|
*/
|
@@ -4602,14 +4394,6 @@ export declare interface PBMaterial {
|
|
4602
4394
|
$case: "pbr";
|
4603
4395
|
pbr: PBMaterial_PbrMaterial;
|
4604
4396
|
} | undefined;
|
4605
|
-
/**
|
4606
|
-
* A gltf material that may provide additional features not supported by the PbMaterial fields.
|
4607
|
-
* If both gltf and material fields are provided, the gltf will be used only for extended features not
|
4608
|
-
* supported by the PbMaterial.
|
4609
|
-
* If this is provided and the `material` field is not provided, the renderer will update the material
|
4610
|
-
* field with data that reflects the gltf material once it is loaded.
|
4611
|
-
*/
|
4612
|
-
gltf?: PBMaterial_GltfMaterial | undefined;
|
4613
4397
|
}
|
4614
4398
|
|
4615
4399
|
/**
|
@@ -4620,22 +4404,6 @@ export declare namespace PBMaterial {
|
|
4620
4404
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMaterial;
|
4621
4405
|
}
|
4622
4406
|
|
4623
|
-
/**
|
4624
|
-
* @public
|
4625
|
-
*/
|
4626
|
-
export declare interface PBMaterial_GltfMaterial {
|
4627
|
-
gltfSrc: string;
|
4628
|
-
name: string;
|
4629
|
-
}
|
4630
|
-
|
4631
|
-
/**
|
4632
|
-
* @public
|
4633
|
-
*/
|
4634
|
-
export declare namespace PBMaterial_GltfMaterial {
|
4635
|
-
export function encode(message: PBMaterial_GltfMaterial, writer?: _m0.Writer): _m0.Writer;
|
4636
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMaterial_GltfMaterial;
|
4637
|
-
}
|
4638
|
-
|
4639
4407
|
/**
|
4640
4408
|
* @public
|
4641
4409
|
*/
|
@@ -4730,9 +4498,6 @@ export declare interface PBMeshCollider {
|
|
4730
4498
|
} | {
|
4731
4499
|
$case: "plane";
|
4732
4500
|
plane: PBMeshCollider_PlaneMesh;
|
4733
|
-
} | {
|
4734
|
-
$case: "gltf";
|
4735
|
-
gltf: PBMeshCollider_GltfMesh;
|
4736
4501
|
} | undefined;
|
4737
4502
|
}
|
4738
4503
|
|
@@ -4778,25 +4543,6 @@ export declare namespace PBMeshCollider_CylinderMesh {
|
|
4778
4543
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshCollider_CylinderMesh;
|
4779
4544
|
}
|
4780
4545
|
|
4781
|
-
/** A collider constructed from a Gltf Mesh. */
|
4782
|
-
/**
|
4783
|
-
* @public
|
4784
|
-
*/
|
4785
|
-
export declare interface PBMeshCollider_GltfMesh {
|
4786
|
-
/** the GLTF file path as listed in the scene's manifest. */
|
4787
|
-
gltfSrc: string;
|
4788
|
-
/** the name of the mesh asset */
|
4789
|
-
name: string;
|
4790
|
-
}
|
4791
|
-
|
4792
|
-
/**
|
4793
|
-
* @public
|
4794
|
-
*/
|
4795
|
-
export declare namespace PBMeshCollider_GltfMesh {
|
4796
|
-
export function encode(message: PBMeshCollider_GltfMesh, writer?: _m0.Writer): _m0.Writer;
|
4797
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshCollider_GltfMesh;
|
4798
|
-
}
|
4799
|
-
|
4800
4546
|
/** PlaneMesh is a 2D rectangle described by the Entity's Transform. */
|
4801
4547
|
/**
|
4802
4548
|
* @public
|
@@ -4829,11 +4575,13 @@ export declare namespace PBMeshCollider_SphereMesh {
|
|
4829
4575
|
|
4830
4576
|
/**
|
4831
4577
|
* The MeshRenderer component renders a basic geometric shape for an Entity. It can be a cube, a
|
4832
|
-
* plane, a sphere
|
4578
|
+
* plane, a sphere or a cylinder.
|
4833
4579
|
*
|
4834
4580
|
* The cube and plane variants can include a UV texture mapping, so specific areas of a material
|
4835
4581
|
* texture are rendered on different faces of the shape. They are serialized as a sequence of 2D
|
4836
4582
|
* `float` coordinates, one for each corner of each side of each face.
|
4583
|
+
*
|
4584
|
+
* More complex shapes require the use of a `GltfContainer` component.
|
4837
4585
|
*/
|
4838
4586
|
/**
|
4839
4587
|
* @public
|
@@ -4851,9 +4599,6 @@ export declare interface PBMeshRenderer {
|
|
4851
4599
|
} | {
|
4852
4600
|
$case: "plane";
|
4853
4601
|
plane: PBMeshRenderer_PlaneMesh;
|
4854
|
-
} | {
|
4855
|
-
$case: "gltf";
|
4856
|
-
gltf: PBMeshRenderer_GltfMesh;
|
4857
4602
|
} | undefined;
|
4858
4603
|
}
|
4859
4604
|
|
@@ -4901,25 +4646,6 @@ export declare namespace PBMeshRenderer_CylinderMesh {
|
|
4901
4646
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshRenderer_CylinderMesh;
|
4902
4647
|
}
|
4903
4648
|
|
4904
|
-
/** A mesh from a Gltf. */
|
4905
|
-
/**
|
4906
|
-
* @public
|
4907
|
-
*/
|
4908
|
-
export declare interface PBMeshRenderer_GltfMesh {
|
4909
|
-
/** the GLTF file path as listed in the scene's manifest. */
|
4910
|
-
gltfSrc: string;
|
4911
|
-
/** the name of the mesh asset */
|
4912
|
-
name: string;
|
4913
|
-
}
|
4914
|
-
|
4915
|
-
/**
|
4916
|
-
* @public
|
4917
|
-
*/
|
4918
|
-
export declare namespace PBMeshRenderer_GltfMesh {
|
4919
|
-
export function encode(message: PBMeshRenderer_GltfMesh, writer?: _m0.Writer): _m0.Writer;
|
4920
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshRenderer_GltfMesh;
|
4921
|
-
}
|
4922
|
-
|
4923
4649
|
/** PlaneMesh renders a 2D rectangular shape. */
|
4924
4650
|
/**
|
4925
4651
|
* @public
|
@@ -5522,21 +5248,6 @@ export declare namespace PBUiInputResult {
|
|
5522
5248
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputResult;
|
5523
5249
|
}
|
5524
5250
|
|
5525
|
-
/**
|
5526
|
-
* @public
|
5527
|
-
*/
|
5528
|
-
export declare interface PBUiScrollResult {
|
5529
|
-
value: PBVector2 | undefined;
|
5530
|
-
}
|
5531
|
-
|
5532
|
-
/**
|
5533
|
-
* @public
|
5534
|
-
*/
|
5535
|
-
export declare namespace PBUiScrollResult {
|
5536
|
-
export function encode(message: PBUiScrollResult, writer?: _m0.Writer): _m0.Writer;
|
5537
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiScrollResult;
|
5538
|
-
}
|
5539
|
-
|
5540
5251
|
/**
|
5541
5252
|
* @public
|
5542
5253
|
*/
|
@@ -5553,10 +5264,6 @@ export declare interface PBUiText {
|
|
5553
5264
|
fontSize?: number | undefined;
|
5554
5265
|
/** wrap text when the border is reached (default: TW_WRAP) */
|
5555
5266
|
textWrap?: TextWrap | undefined;
|
5556
|
-
/** width of the outline (default: 0) */
|
5557
|
-
outlineWidth?: number | undefined;
|
5558
|
-
/** RGBA color of the outline (default: opaque black) */
|
5559
|
-
outlineColor?: PBColor4 | undefined;
|
5560
5267
|
}
|
5561
5268
|
|
5562
5269
|
/**
|
@@ -5653,14 +5360,6 @@ export declare interface PBUiTransform {
|
|
5653
5360
|
paddingBottom: number;
|
5654
5361
|
/** default: PointerFilterMode.PFM_NONE */
|
5655
5362
|
pointerFilter?: PointerFilterMode | undefined;
|
5656
|
-
/** default: 1 */
|
5657
|
-
opacity?: number | undefined;
|
5658
|
-
/** default empty */
|
5659
|
-
elementId?: string | undefined;
|
5660
|
-
/** default position=(0,0) */
|
5661
|
-
scrollPosition?: ScrollPositionValue | undefined;
|
5662
|
-
/** default ShowScrollBar.SSB_BOTH */
|
5663
|
-
scrollVisible?: ShowScrollBar | undefined;
|
5664
5363
|
}
|
5665
5364
|
|
5666
5365
|
/**
|
@@ -7024,43 +6723,6 @@ export declare namespace Schemas {
|
|
7024
6723
|
}) => void;
|
7025
6724
|
}
|
7026
6725
|
|
7027
|
-
/**
|
7028
|
-
* @public
|
7029
|
-
*/
|
7030
|
-
export declare interface ScrollPositionValue {
|
7031
|
-
value?: {
|
7032
|
-
$case: "position";
|
7033
|
-
position: PBVector2;
|
7034
|
-
} | {
|
7035
|
-
$case: "reference";
|
7036
|
-
reference: string;
|
7037
|
-
} | undefined;
|
7038
|
-
}
|
7039
|
-
|
7040
|
-
/**
|
7041
|
-
* @public
|
7042
|
-
*/
|
7043
|
-
export declare namespace ScrollPositionValue {
|
7044
|
-
export function encode(message: ScrollPositionValue, writer?: _m0.Writer): _m0.Writer;
|
7045
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): ScrollPositionValue;
|
7046
|
-
}
|
7047
|
-
|
7048
|
-
/**
|
7049
|
-
* @public
|
7050
|
-
* The scroll-visible determines if the scrollbars are shown when the scroll overflow is enabled
|
7051
|
-
*/
|
7052
|
-
export declare type ScrollVisibleType = 'horizontal' | 'vertical' | 'both' | 'hidden';
|
7053
|
-
|
7054
|
-
/**
|
7055
|
-
* @public
|
7056
|
-
*/
|
7057
|
-
export declare const enum ShowScrollBar {
|
7058
|
-
SSB_BOTH = 0,
|
7059
|
-
SSB_ONLY_VERTICAL = 1,
|
7060
|
-
SSB_ONLY_HORIZONTAL = 2,
|
7061
|
-
SSB_HIDDEN = 3
|
7062
|
-
}
|
7063
|
-
|
7064
6726
|
/**
|
7065
6727
|
* @public
|
7066
6728
|
*/
|
@@ -7484,10 +7146,6 @@ export declare interface UiLabelProps {
|
|
7484
7146
|
textAlign?: TextAlignType | undefined;
|
7485
7147
|
/** Label font type. @defaultValue 'sans-serif' */
|
7486
7148
|
font?: UiFontType | undefined;
|
7487
|
-
/** Outline width of the text. @defaultValue 0 */
|
7488
|
-
outlineWidth?: number | undefined;
|
7489
|
-
/** Outline color of the text. @defaultValue `{ r: 0, g: 0, b: 0, a: 1 }` */
|
7490
|
-
outlineColor?: PBColor4 | undefined;
|
7491
7149
|
/** Behaviour when text reached. @defaultValue 'wrap' */
|
7492
7150
|
textWrap?: UiTextWrapType | undefined;
|
7493
7151
|
}
|
@@ -7497,9 +7155,6 @@ export declare interface UiLabelProps {
|
|
7497
7155
|
*/
|
7498
7156
|
export declare type uint32 = number;
|
7499
7157
|
|
7500
|
-
/** @public */
|
7501
|
-
export declare const UiScrollResult: LastWriteWinElementSetComponentDefinition<PBUiScrollResult>;
|
7502
|
-
|
7503
7158
|
/** @public */
|
7504
7159
|
export declare const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
|
7505
7160
|
|
@@ -7572,14 +7227,6 @@ export declare interface UiTransformProps {
|
|
7572
7227
|
overflow?: OverflowType;
|
7573
7228
|
/** The pointer filter property determines if the ui element blocks the pointer or not (elements with pointer events always block the pointer regardless of this property) **/
|
7574
7229
|
pointerFilter?: PointerFilterType;
|
7575
|
-
/** The opacity property sets the opacity level for an element, it's accumulated across children @defaultValue 1 */
|
7576
|
-
opacity?: number;
|
7577
|
-
/** A reference value to identify the element, default empty */
|
7578
|
-
elementId?: string;
|
7579
|
-
/** default position=(0,0) if it aplies, a vector or a reference-id */
|
7580
|
-
scrollPosition?: PBVector2 | string;
|
7581
|
-
/** default ShowScrollBar.SSB_BOTH */
|
7582
|
-
scrollVisible?: ScrollVisibleType;
|
7583
7230
|
}
|
7584
7231
|
|
7585
7232
|
/**
|