@dcl/playground-assets 7.5.7-10236853633.commit-23b945d → 7.5.7-10289449044.commit-c15b62f
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/alpha.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
|
*/
|
@@ -3550,14 +3456,6 @@ export declare interface MeshColliderComponentDefinitionExtended extends LastWri
|
|
3550
3456
|
* @param colliderMask - the set of layer where the collider reacts, default: Physics and Pointer
|
3551
3457
|
*/
|
3552
3458
|
setSphere(entity: Entity, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
|
3553
|
-
/**
|
3554
|
-
* @public
|
3555
|
-
* Set a gltf internal mesh in the MeshCollider component
|
3556
|
-
* @param entity - entity to create or replace the MeshRenderer component
|
3557
|
-
* @param source - the path to the gltf
|
3558
|
-
* @param meshName - the name of the mesh in the gltf
|
3559
|
-
*/
|
3560
|
-
setGltfMesh(entity: Entity, source: string, meshName: string, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
|
3561
3459
|
}
|
3562
3460
|
|
3563
3461
|
export declare const MeshRenderer: MeshRendererComponentDefinitionExtended;
|
@@ -3594,14 +3492,6 @@ export declare interface MeshRendererComponentDefinitionExtended extends LastWri
|
|
3594
3492
|
* @param entity - entity to create or replace the MeshRenderer component
|
3595
3493
|
*/
|
3596
3494
|
setSphere(entity: Entity): void;
|
3597
|
-
/**
|
3598
|
-
* @public
|
3599
|
-
* Set a gltf internal mesh in the MeshRenderer component
|
3600
|
-
* @param entity - entity to create or replace the MeshRenderer component
|
3601
|
-
* @param source - the path to the gltf
|
3602
|
-
* @param meshName - the name of the mesh in the gltf
|
3603
|
-
*/
|
3604
|
-
setGltfMesh(entity: Entity, source: string, meshName: string): void;
|
3605
3495
|
}
|
3606
3496
|
|
3607
3497
|
/**
|
@@ -4274,9 +4164,6 @@ export declare interface PBAvatarModifierArea {
|
|
4274
4164
|
excludeIds: string[];
|
4275
4165
|
/** list of modifiers to apply */
|
4276
4166
|
modifiers: AvatarModifierType[];
|
4277
|
-
movementSettings?: AvatarMovementSettings | undefined;
|
4278
|
-
/** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
|
4279
|
-
useColliderRange?: boolean | undefined;
|
4280
4167
|
}
|
4281
4168
|
|
4282
4169
|
/**
|
@@ -4389,7 +4276,7 @@ export declare namespace PBCameraMode {
|
|
4389
4276
|
|
4390
4277
|
/**
|
4391
4278
|
* The CameraModeArea component can be attached to an Entity to define a region of space where
|
4392
|
-
* the player's camera mode (1st-person
|
4279
|
+
* the player's camera mode (1st-person or 3rd-person) is overridden.
|
4393
4280
|
*
|
4394
4281
|
* The Entity's Transform position determines the center-point of the region, while its size is
|
4395
4282
|
* given as a vector in the `area` property below. The Transform rotation is applied, but the scale
|
@@ -4399,8 +4286,6 @@ export declare namespace PBCameraMode {
|
|
4399
4286
|
*
|
4400
4287
|
* Note that, while commonly used to delineate a 2D area in a scene (hence the name), the region
|
4401
4288
|
* is actually a 3D volume.
|
4402
|
-
*
|
4403
|
-
* When mode is set to CtCinematic, the cinematic_settings field must also be provided.
|
4404
4289
|
*/
|
4405
4290
|
/**
|
4406
4291
|
* @public
|
@@ -4410,9 +4295,6 @@ export declare interface PBCameraModeArea {
|
|
4410
4295
|
area: PBVector3 | undefined;
|
4411
4296
|
/** the camera mode to enforce */
|
4412
4297
|
mode: CameraType;
|
4413
|
-
cinematicSettings?: CinematicSettings | undefined;
|
4414
|
-
/** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
|
4415
|
-
useColliderRange?: boolean | undefined;
|
4416
4298
|
}
|
4417
4299
|
|
4418
4300
|
/**
|
@@ -4519,25 +4401,6 @@ export declare namespace PBGltfContainer {
|
|
4519
4401
|
*/
|
4520
4402
|
export declare interface PBGltfContainerLoadingState {
|
4521
4403
|
currentState: LoadingState;
|
4522
|
-
/** all node paths in the gltf, which can be used with a GltfNode to inspect and modify the gltf contents */
|
4523
|
-
nodePaths: string[];
|
4524
|
-
/** all meshes in the gltf. unnamed meshes will be auto-assigned a name of the form `MeshX` or `MeshX/PrimitiveY` */
|
4525
|
-
meshNames: string[];
|
4526
|
-
/**
|
4527
|
-
* where X is the mesh index and Y is the primitive index (and there is more than 1 primitive). note this may
|
4528
|
-
* conflict with manually named meshes - to avoid any issues make sure all your meshes are explicitly named.
|
4529
|
-
*/
|
4530
|
-
materialNames: string[];
|
4531
|
-
/**
|
4532
|
-
* X is the material index. note this may conflict with manually named materials - to avoid any issues make
|
4533
|
-
* sure all your materials are explicitly named.
|
4534
|
-
*/
|
4535
|
-
skinNames: string[];
|
4536
|
-
/**
|
4537
|
-
* X is the skin index. note this may conflict with manually named skins - to avoid any issues make sure all
|
4538
|
-
* your skins are explicitly named.
|
4539
|
-
*/
|
4540
|
-
animationNames: string[];
|
4541
4404
|
}
|
4542
4405
|
|
4543
4406
|
/**
|
@@ -4548,77 +4411,6 @@ export declare namespace PBGltfContainerLoadingState {
|
|
4548
4411
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfContainerLoadingState;
|
4549
4412
|
}
|
4550
4413
|
|
4551
|
-
/**
|
4552
|
-
* a GltfNode links a scene entity with a node from within a gltf, allowing the scene to inspect it or modify it.
|
4553
|
-
* This component must be added to a direct child of an entity with a PbGltfContainer component, or
|
4554
|
-
* to a direct child of another entity with a GltfNode component, and the referenced gltf node must be a descendent of the gltf node
|
4555
|
-
* in the parent.
|
4556
|
-
* The name must match the path of one of the nodes within the Gltf. These are available on the GltfContainerLoadingState component.
|
4557
|
-
*
|
4558
|
-
* The renderer will attach a PbGltfNodeState to the entity describing the state. Once the state is `GNS_READY`,
|
4559
|
-
* - the `Transform` will be updated to match the position of the node within the gltf (relative to the gltf root, or the parent node),
|
4560
|
-
* - a `MeshRenderer` with a GltfMesh mesh type will be added (if the gltf node has a mesh).
|
4561
|
-
* - a `MeshCollider` with a GltfMesh mesh type will be added (if the gltf node has a collider).
|
4562
|
-
* - a `Material` component including a GltfMaterial reference will be added (if the gltf node has a material).
|
4563
|
-
*
|
4564
|
-
* After creation, if an animation moves the node, the `Transform` will be updated.
|
4565
|
-
*
|
4566
|
-
* From the scene, you can modify various components to alter the gltf node:
|
4567
|
-
* - modifying the `Transform` position/rotation/scale will move the node. The position is interpreted relative to the gltf root (or parent node),
|
4568
|
-
* regardless of any intermediate gltf node hierarchy.
|
4569
|
-
* If an animation is playing, the animation takes priority and the scene entity's position will be updated to match the animation.
|
4570
|
-
* - `Visibility` can be added to hide or show the node and it's children in the gltf hierarchy.
|
4571
|
-
* - `MeshRenderer` can be added/modified/removed to create/modify/remove a mesh on the node.
|
4572
|
-
* - `MeshCollider` can be added/modified/removed to create/modify/remove a collider on the node.
|
4573
|
-
* - `Material` can be added or modified to change the material properties. If the gltf node has a material, the original material will be
|
4574
|
-
* 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
|
4575
|
-
* PbMaterial will be maintained.
|
4576
|
-
*
|
4577
|
-
* The scene can add additional entities as children to the gltf node, but structural modifications of the gltf are not possible:
|
4578
|
-
* - changing the scene hierarchy will not change the gltf node hierarchy. Moving the entity out of the gltf will sever the link and
|
4579
|
-
* change the state to `GNS_FAILED`.
|
4580
|
-
* - deleting the scene entity will not delete the gltf node.
|
4581
|
-
*
|
4582
|
-
* Removing the GltfNode will revert any changes to the original gltf. If the GltfNode component is removed and the mesh/collider/material
|
4583
|
-
* are not removed, this will result in a duplication of these components as the previously-linked entity will retain it's components and
|
4584
|
-
* the gltf node will also be displayed.
|
4585
|
-
*/
|
4586
|
-
/**
|
4587
|
-
* @public
|
4588
|
-
*/
|
4589
|
-
export declare interface PBGltfNode {
|
4590
|
-
/** the path of the target node in the Gltf. */
|
4591
|
-
path: string;
|
4592
|
-
}
|
4593
|
-
|
4594
|
-
/**
|
4595
|
-
* @public
|
4596
|
-
*/
|
4597
|
-
export declare namespace PBGltfNode {
|
4598
|
-
export function encode(message: PBGltfNode, writer?: _m0.Writer): _m0.Writer;
|
4599
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNode;
|
4600
|
-
}
|
4601
|
-
|
4602
|
-
/**
|
4603
|
-
* The state of a linked gltf node.
|
4604
|
-
* If the state is GNSV_FAILED, the renderer may describe the failure in the error string.
|
4605
|
-
*/
|
4606
|
-
/**
|
4607
|
-
* @public
|
4608
|
-
*/
|
4609
|
-
export declare interface PBGltfNodeState {
|
4610
|
-
state: GltfNodeStateValue;
|
4611
|
-
error?: string | undefined;
|
4612
|
-
}
|
4613
|
-
|
4614
|
-
/**
|
4615
|
-
* @public
|
4616
|
-
*/
|
4617
|
-
export declare namespace PBGltfNodeState {
|
4618
|
-
export function encode(message: PBGltfNodeState, writer?: _m0.Writer): _m0.Writer;
|
4619
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNodeState;
|
4620
|
-
}
|
4621
|
-
|
4622
4414
|
/**
|
4623
4415
|
* @public
|
4624
4416
|
*/
|
@@ -4630,14 +4422,6 @@ export declare interface PBMaterial {
|
|
4630
4422
|
$case: "pbr";
|
4631
4423
|
pbr: PBMaterial_PbrMaterial;
|
4632
4424
|
} | undefined;
|
4633
|
-
/**
|
4634
|
-
* A gltf material that may provide additional features not supported by the PbMaterial fields.
|
4635
|
-
* If both gltf and material fields are provided, the gltf will be used only for extended features not
|
4636
|
-
* supported by the PbMaterial.
|
4637
|
-
* If this is provided and the `material` field is not provided, the renderer will update the material
|
4638
|
-
* field with data that reflects the gltf material once it is loaded.
|
4639
|
-
*/
|
4640
|
-
gltf?: PBMaterial_GltfMaterial | undefined;
|
4641
4425
|
}
|
4642
4426
|
|
4643
4427
|
/**
|
@@ -4648,22 +4432,6 @@ export declare namespace PBMaterial {
|
|
4648
4432
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMaterial;
|
4649
4433
|
}
|
4650
4434
|
|
4651
|
-
/**
|
4652
|
-
* @public
|
4653
|
-
*/
|
4654
|
-
export declare interface PBMaterial_GltfMaterial {
|
4655
|
-
gltfSrc: string;
|
4656
|
-
name: string;
|
4657
|
-
}
|
4658
|
-
|
4659
|
-
/**
|
4660
|
-
* @public
|
4661
|
-
*/
|
4662
|
-
export declare namespace PBMaterial_GltfMaterial {
|
4663
|
-
export function encode(message: PBMaterial_GltfMaterial, writer?: _m0.Writer): _m0.Writer;
|
4664
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMaterial_GltfMaterial;
|
4665
|
-
}
|
4666
|
-
|
4667
4435
|
/**
|
4668
4436
|
* @public
|
4669
4437
|
*/
|
@@ -4758,9 +4526,6 @@ export declare interface PBMeshCollider {
|
|
4758
4526
|
} | {
|
4759
4527
|
$case: "plane";
|
4760
4528
|
plane: PBMeshCollider_PlaneMesh;
|
4761
|
-
} | {
|
4762
|
-
$case: "gltf";
|
4763
|
-
gltf: PBMeshCollider_GltfMesh;
|
4764
4529
|
} | undefined;
|
4765
4530
|
}
|
4766
4531
|
|
@@ -4806,25 +4571,6 @@ export declare namespace PBMeshCollider_CylinderMesh {
|
|
4806
4571
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshCollider_CylinderMesh;
|
4807
4572
|
}
|
4808
4573
|
|
4809
|
-
/** A collider constructed from a Gltf Mesh. */
|
4810
|
-
/**
|
4811
|
-
* @public
|
4812
|
-
*/
|
4813
|
-
export declare interface PBMeshCollider_GltfMesh {
|
4814
|
-
/** the GLTF file path as listed in the scene's manifest. */
|
4815
|
-
gltfSrc: string;
|
4816
|
-
/** the name of the mesh asset */
|
4817
|
-
name: string;
|
4818
|
-
}
|
4819
|
-
|
4820
|
-
/**
|
4821
|
-
* @public
|
4822
|
-
*/
|
4823
|
-
export declare namespace PBMeshCollider_GltfMesh {
|
4824
|
-
export function encode(message: PBMeshCollider_GltfMesh, writer?: _m0.Writer): _m0.Writer;
|
4825
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshCollider_GltfMesh;
|
4826
|
-
}
|
4827
|
-
|
4828
4574
|
/** PlaneMesh is a 2D rectangle described by the Entity's Transform. */
|
4829
4575
|
/**
|
4830
4576
|
* @public
|
@@ -4857,11 +4603,13 @@ export declare namespace PBMeshCollider_SphereMesh {
|
|
4857
4603
|
|
4858
4604
|
/**
|
4859
4605
|
* The MeshRenderer component renders a basic geometric shape for an Entity. It can be a cube, a
|
4860
|
-
* plane, a sphere
|
4606
|
+
* plane, a sphere or a cylinder.
|
4861
4607
|
*
|
4862
4608
|
* The cube and plane variants can include a UV texture mapping, so specific areas of a material
|
4863
4609
|
* texture are rendered on different faces of the shape. They are serialized as a sequence of 2D
|
4864
4610
|
* `float` coordinates, one for each corner of each side of each face.
|
4611
|
+
*
|
4612
|
+
* More complex shapes require the use of a `GltfContainer` component.
|
4865
4613
|
*/
|
4866
4614
|
/**
|
4867
4615
|
* @public
|
@@ -4879,9 +4627,6 @@ export declare interface PBMeshRenderer {
|
|
4879
4627
|
} | {
|
4880
4628
|
$case: "plane";
|
4881
4629
|
plane: PBMeshRenderer_PlaneMesh;
|
4882
|
-
} | {
|
4883
|
-
$case: "gltf";
|
4884
|
-
gltf: PBMeshRenderer_GltfMesh;
|
4885
4630
|
} | undefined;
|
4886
4631
|
}
|
4887
4632
|
|
@@ -4929,25 +4674,6 @@ export declare namespace PBMeshRenderer_CylinderMesh {
|
|
4929
4674
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshRenderer_CylinderMesh;
|
4930
4675
|
}
|
4931
4676
|
|
4932
|
-
/** A mesh from a Gltf. */
|
4933
|
-
/**
|
4934
|
-
* @public
|
4935
|
-
*/
|
4936
|
-
export declare interface PBMeshRenderer_GltfMesh {
|
4937
|
-
/** the GLTF file path as listed in the scene's manifest. */
|
4938
|
-
gltfSrc: string;
|
4939
|
-
/** the name of the mesh asset */
|
4940
|
-
name: string;
|
4941
|
-
}
|
4942
|
-
|
4943
|
-
/**
|
4944
|
-
* @public
|
4945
|
-
*/
|
4946
|
-
export declare namespace PBMeshRenderer_GltfMesh {
|
4947
|
-
export function encode(message: PBMeshRenderer_GltfMesh, writer?: _m0.Writer): _m0.Writer;
|
4948
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshRenderer_GltfMesh;
|
4949
|
-
}
|
4950
|
-
|
4951
4677
|
/** PlaneMesh renders a 2D rectangular shape. */
|
4952
4678
|
/**
|
4953
4679
|
* @public
|
@@ -5550,21 +5276,6 @@ export declare namespace PBUiInputResult {
|
|
5550
5276
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputResult;
|
5551
5277
|
}
|
5552
5278
|
|
5553
|
-
/**
|
5554
|
-
* @public
|
5555
|
-
*/
|
5556
|
-
export declare interface PBUiScrollResult {
|
5557
|
-
value: PBVector2 | undefined;
|
5558
|
-
}
|
5559
|
-
|
5560
|
-
/**
|
5561
|
-
* @public
|
5562
|
-
*/
|
5563
|
-
export declare namespace PBUiScrollResult {
|
5564
|
-
export function encode(message: PBUiScrollResult, writer?: _m0.Writer): _m0.Writer;
|
5565
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiScrollResult;
|
5566
|
-
}
|
5567
|
-
|
5568
5279
|
/**
|
5569
5280
|
* @public
|
5570
5281
|
*/
|
@@ -5581,10 +5292,6 @@ export declare interface PBUiText {
|
|
5581
5292
|
fontSize?: number | undefined;
|
5582
5293
|
/** wrap text when the border is reached (default: TW_WRAP) */
|
5583
5294
|
textWrap?: TextWrap | undefined;
|
5584
|
-
/** width of the outline (default: 0) */
|
5585
|
-
outlineWidth?: number | undefined;
|
5586
|
-
/** RGBA color of the outline (default: opaque black) */
|
5587
|
-
outlineColor?: PBColor4 | undefined;
|
5588
5295
|
}
|
5589
5296
|
|
5590
5297
|
/**
|
@@ -5681,14 +5388,6 @@ export declare interface PBUiTransform {
|
|
5681
5388
|
paddingBottom: number;
|
5682
5389
|
/** default: PointerFilterMode.PFM_NONE */
|
5683
5390
|
pointerFilter?: PointerFilterMode | undefined;
|
5684
|
-
/** default: 1 */
|
5685
|
-
opacity?: number | undefined;
|
5686
|
-
/** default empty */
|
5687
|
-
elementId?: string | undefined;
|
5688
|
-
/** default position=(0,0) */
|
5689
|
-
scrollPosition?: ScrollPositionValue | undefined;
|
5690
|
-
/** default ShowScrollBar.SSB_BOTH */
|
5691
|
-
scrollVisible?: ShowScrollBar | undefined;
|
5692
5391
|
}
|
5693
5392
|
|
5694
5393
|
/**
|
@@ -7052,43 +6751,6 @@ export declare namespace Schemas {
|
|
7052
6751
|
}) => void;
|
7053
6752
|
}
|
7054
6753
|
|
7055
|
-
/**
|
7056
|
-
* @public
|
7057
|
-
*/
|
7058
|
-
export declare interface ScrollPositionValue {
|
7059
|
-
value?: {
|
7060
|
-
$case: "position";
|
7061
|
-
position: PBVector2;
|
7062
|
-
} | {
|
7063
|
-
$case: "reference";
|
7064
|
-
reference: string;
|
7065
|
-
} | undefined;
|
7066
|
-
}
|
7067
|
-
|
7068
|
-
/**
|
7069
|
-
* @public
|
7070
|
-
*/
|
7071
|
-
export declare namespace ScrollPositionValue {
|
7072
|
-
export function encode(message: ScrollPositionValue, writer?: _m0.Writer): _m0.Writer;
|
7073
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): ScrollPositionValue;
|
7074
|
-
}
|
7075
|
-
|
7076
|
-
/**
|
7077
|
-
* @public
|
7078
|
-
* The scroll-visible determines if the scrollbars are shown when the scroll overflow is enabled
|
7079
|
-
*/
|
7080
|
-
export declare type ScrollVisibleType = 'horizontal' | 'vertical' | 'both' | 'hidden';
|
7081
|
-
|
7082
|
-
/**
|
7083
|
-
* @public
|
7084
|
-
*/
|
7085
|
-
export declare const enum ShowScrollBar {
|
7086
|
-
SSB_BOTH = 0,
|
7087
|
-
SSB_ONLY_VERTICAL = 1,
|
7088
|
-
SSB_ONLY_HORIZONTAL = 2,
|
7089
|
-
SSB_HIDDEN = 3
|
7090
|
-
}
|
7091
|
-
|
7092
6754
|
/**
|
7093
6755
|
* @public
|
7094
6756
|
*/
|
@@ -7517,10 +7179,6 @@ export declare interface UiLabelProps {
|
|
7517
7179
|
textAlign?: TextAlignType | undefined;
|
7518
7180
|
/** Label font type. @defaultValue 'sans-serif' */
|
7519
7181
|
font?: UiFontType | undefined;
|
7520
|
-
/** Outline width of the text. @defaultValue 0 */
|
7521
|
-
outlineWidth?: number | undefined;
|
7522
|
-
/** Outline color of the text. @defaultValue `{ r: 0, g: 0, b: 0, a: 1 }` */
|
7523
|
-
outlineColor?: PBColor4 | undefined;
|
7524
7182
|
/** Behaviour when text reached. @defaultValue 'wrap' */
|
7525
7183
|
textWrap?: UiTextWrapType | undefined;
|
7526
7184
|
}
|
@@ -7530,9 +7188,6 @@ export declare interface UiLabelProps {
|
|
7530
7188
|
*/
|
7531
7189
|
export declare type uint32 = number;
|
7532
7190
|
|
7533
|
-
/** @public */
|
7534
|
-
export declare const UiScrollResult: LastWriteWinElementSetComponentDefinition<PBUiScrollResult>;
|
7535
|
-
|
7536
7191
|
/** @public */
|
7537
7192
|
export declare const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
|
7538
7193
|
|
@@ -7605,14 +7260,6 @@ export declare interface UiTransformProps {
|
|
7605
7260
|
overflow?: OverflowType;
|
7606
7261
|
/** 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) **/
|
7607
7262
|
pointerFilter?: PointerFilterType;
|
7608
|
-
/** The opacity property sets the opacity level for an element, it's accumulated across children @defaultValue 1 */
|
7609
|
-
opacity?: number;
|
7610
|
-
/** A reference value to identify the element, default empty */
|
7611
|
-
elementId?: string;
|
7612
|
-
/** default position=(0,0) if it aplies, a vector or a reference-id */
|
7613
|
-
scrollPosition?: PBVector2 | string;
|
7614
|
-
/** default ShowScrollBar.SSB_BOTH */
|
7615
|
-
scrollVisible?: ScrollVisibleType;
|
7616
7263
|
}
|
7617
7264
|
|
7618
7265
|
/**
|