@dcl/playground-assets 7.5.7-10164853387.commit-376e330 → 7.5.7-10170491272.commit-f46d8e8
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 +357 -4
- package/dist/beta.d.ts +357 -4
- package/dist/index.bundled.d.ts +357 -4
- 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 +357 -4
- package/etc/playground-assets.api.json +4005 -417
- package/etc/playground-assets.api.md +228 -0
- package/package.json +4 -4
package/dist/alpha.d.ts
CHANGED
@@ -178,6 +178,18 @@ 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
|
+
|
181
193
|
/** @public */
|
182
194
|
export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>;
|
183
195
|
|
@@ -198,6 +210,37 @@ export declare const enum AvatarModifierType {
|
|
198
210
|
AMT_DISABLE_PASSPORTS = 1
|
199
211
|
}
|
200
212
|
|
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
|
+
|
201
244
|
/** @public */
|
202
245
|
export declare const AvatarShape: LastWriteWinElementSetComponentDefinition<PBAvatarShape>;
|
203
246
|
|
@@ -480,6 +523,39 @@ export declare const enum CameraType {
|
|
480
523
|
|
481
524
|
export declare type Children = ReactEcs.JSX.ReactNode;
|
482
525
|
|
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
|
+
|
483
559
|
/** ColliderLayer determines the kind of collision to detect, in OR-able bit flag form. */
|
484
560
|
/**
|
485
561
|
* @public
|
@@ -1258,6 +1334,8 @@ export declare const componentDefinitionByName: {
|
|
1258
1334
|
"core::EngineInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
|
1259
1335
|
"core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
|
1260
1336
|
"core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
|
1337
|
+
"core::GltfNode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNode>>;
|
1338
|
+
"core::GltfNodeState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNodeState>>;
|
1261
1339
|
"core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
|
1262
1340
|
"core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
1263
1341
|
"core::MeshRenderer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
|
@@ -1279,6 +1357,7 @@ export declare const componentDefinitionByName: {
|
|
1279
1357
|
"core::UiDropdownResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>>;
|
1280
1358
|
"core::UiInput": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInput>>;
|
1281
1359
|
"core::UiInputResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputResult>>;
|
1360
|
+
"core::UiScrollResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiScrollResult>>;
|
1282
1361
|
"core::UiText": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiText>>;
|
1283
1362
|
"core::UiTransform": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiTransform>>;
|
1284
1363
|
"core::VideoEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBVideoEvent>>;
|
@@ -2001,6 +2080,21 @@ export declare const GltfContainer: LastWriteWinElementSetComponentDefinition<PB
|
|
2001
2080
|
/** @public */
|
2002
2081
|
export declare const GltfContainerLoadingState: LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>;
|
2003
2082
|
|
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
|
+
|
2004
2098
|
/**
|
2005
2099
|
* @public
|
2006
2100
|
*/
|
@@ -3456,6 +3550,14 @@ export declare interface MeshColliderComponentDefinitionExtended extends LastWri
|
|
3456
3550
|
* @param colliderMask - the set of layer where the collider reacts, default: Physics and Pointer
|
3457
3551
|
*/
|
3458
3552
|
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;
|
3459
3561
|
}
|
3460
3562
|
|
3461
3563
|
export declare const MeshRenderer: MeshRendererComponentDefinitionExtended;
|
@@ -3492,6 +3594,14 @@ export declare interface MeshRendererComponentDefinitionExtended extends LastWri
|
|
3492
3594
|
* @param entity - entity to create or replace the MeshRenderer component
|
3493
3595
|
*/
|
3494
3596
|
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;
|
3495
3605
|
}
|
3496
3606
|
|
3497
3607
|
/**
|
@@ -4164,6 +4274,9 @@ export declare interface PBAvatarModifierArea {
|
|
4164
4274
|
excludeIds: string[];
|
4165
4275
|
/** list of modifiers to apply */
|
4166
4276
|
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;
|
4167
4280
|
}
|
4168
4281
|
|
4169
4282
|
/**
|
@@ -4276,7 +4389,7 @@ export declare namespace PBCameraMode {
|
|
4276
4389
|
|
4277
4390
|
/**
|
4278
4391
|
* The CameraModeArea component can be attached to an Entity to define a region of space where
|
4279
|
-
* the player's camera mode (1st-person
|
4392
|
+
* the player's camera mode (1st-person, 3rd-person or cinematic) is overridden.
|
4280
4393
|
*
|
4281
4394
|
* The Entity's Transform position determines the center-point of the region, while its size is
|
4282
4395
|
* given as a vector in the `area` property below. The Transform rotation is applied, but the scale
|
@@ -4286,6 +4399,8 @@ export declare namespace PBCameraMode {
|
|
4286
4399
|
*
|
4287
4400
|
* Note that, while commonly used to delineate a 2D area in a scene (hence the name), the region
|
4288
4401
|
* is actually a 3D volume.
|
4402
|
+
*
|
4403
|
+
* When mode is set to CtCinematic, the cinematic_settings field must also be provided.
|
4289
4404
|
*/
|
4290
4405
|
/**
|
4291
4406
|
* @public
|
@@ -4295,6 +4410,9 @@ export declare interface PBCameraModeArea {
|
|
4295
4410
|
area: PBVector3 | undefined;
|
4296
4411
|
/** the camera mode to enforce */
|
4297
4412
|
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;
|
4298
4416
|
}
|
4299
4417
|
|
4300
4418
|
/**
|
@@ -4401,6 +4519,25 @@ export declare namespace PBGltfContainer {
|
|
4401
4519
|
*/
|
4402
4520
|
export declare interface PBGltfContainerLoadingState {
|
4403
4521
|
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[];
|
4404
4541
|
}
|
4405
4542
|
|
4406
4543
|
/**
|
@@ -4411,6 +4548,77 @@ export declare namespace PBGltfContainerLoadingState {
|
|
4411
4548
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfContainerLoadingState;
|
4412
4549
|
}
|
4413
4550
|
|
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
|
+
|
4414
4622
|
/**
|
4415
4623
|
* @public
|
4416
4624
|
*/
|
@@ -4422,6 +4630,14 @@ export declare interface PBMaterial {
|
|
4422
4630
|
$case: "pbr";
|
4423
4631
|
pbr: PBMaterial_PbrMaterial;
|
4424
4632
|
} | 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;
|
4425
4641
|
}
|
4426
4642
|
|
4427
4643
|
/**
|
@@ -4432,6 +4648,22 @@ export declare namespace PBMaterial {
|
|
4432
4648
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMaterial;
|
4433
4649
|
}
|
4434
4650
|
|
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
|
+
|
4435
4667
|
/**
|
4436
4668
|
* @public
|
4437
4669
|
*/
|
@@ -4526,6 +4758,9 @@ export declare interface PBMeshCollider {
|
|
4526
4758
|
} | {
|
4527
4759
|
$case: "plane";
|
4528
4760
|
plane: PBMeshCollider_PlaneMesh;
|
4761
|
+
} | {
|
4762
|
+
$case: "gltf";
|
4763
|
+
gltf: PBMeshCollider_GltfMesh;
|
4529
4764
|
} | undefined;
|
4530
4765
|
}
|
4531
4766
|
|
@@ -4571,6 +4806,25 @@ export declare namespace PBMeshCollider_CylinderMesh {
|
|
4571
4806
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshCollider_CylinderMesh;
|
4572
4807
|
}
|
4573
4808
|
|
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
|
+
|
4574
4828
|
/** PlaneMesh is a 2D rectangle described by the Entity's Transform. */
|
4575
4829
|
/**
|
4576
4830
|
* @public
|
@@ -4603,13 +4857,11 @@ export declare namespace PBMeshCollider_SphereMesh {
|
|
4603
4857
|
|
4604
4858
|
/**
|
4605
4859
|
* The MeshRenderer component renders a basic geometric shape for an Entity. It can be a cube, a
|
4606
|
-
* plane, a sphere or a
|
4860
|
+
* plane, a sphere, a cylinder, or a Gltf mesh.
|
4607
4861
|
*
|
4608
4862
|
* The cube and plane variants can include a UV texture mapping, so specific areas of a material
|
4609
4863
|
* texture are rendered on different faces of the shape. They are serialized as a sequence of 2D
|
4610
4864
|
* `float` coordinates, one for each corner of each side of each face.
|
4611
|
-
*
|
4612
|
-
* More complex shapes require the use of a `GltfContainer` component.
|
4613
4865
|
*/
|
4614
4866
|
/**
|
4615
4867
|
* @public
|
@@ -4627,6 +4879,9 @@ export declare interface PBMeshRenderer {
|
|
4627
4879
|
} | {
|
4628
4880
|
$case: "plane";
|
4629
4881
|
plane: PBMeshRenderer_PlaneMesh;
|
4882
|
+
} | {
|
4883
|
+
$case: "gltf";
|
4884
|
+
gltf: PBMeshRenderer_GltfMesh;
|
4630
4885
|
} | undefined;
|
4631
4886
|
}
|
4632
4887
|
|
@@ -4674,6 +4929,25 @@ export declare namespace PBMeshRenderer_CylinderMesh {
|
|
4674
4929
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshRenderer_CylinderMesh;
|
4675
4930
|
}
|
4676
4931
|
|
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
|
+
|
4677
4951
|
/** PlaneMesh renders a 2D rectangular shape. */
|
4678
4952
|
/**
|
4679
4953
|
* @public
|
@@ -5276,6 +5550,21 @@ export declare namespace PBUiInputResult {
|
|
5276
5550
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputResult;
|
5277
5551
|
}
|
5278
5552
|
|
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
|
+
|
5279
5568
|
/**
|
5280
5569
|
* @public
|
5281
5570
|
*/
|
@@ -5292,6 +5581,10 @@ export declare interface PBUiText {
|
|
5292
5581
|
fontSize?: number | undefined;
|
5293
5582
|
/** wrap text when the border is reached (default: TW_WRAP) */
|
5294
5583
|
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;
|
5295
5588
|
}
|
5296
5589
|
|
5297
5590
|
/**
|
@@ -5388,6 +5681,14 @@ export declare interface PBUiTransform {
|
|
5388
5681
|
paddingBottom: number;
|
5389
5682
|
/** default: PointerFilterMode.PFM_NONE */
|
5390
5683
|
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;
|
5391
5692
|
}
|
5392
5693
|
|
5393
5694
|
/**
|
@@ -6751,6 +7052,43 @@ export declare namespace Schemas {
|
|
6751
7052
|
}) => void;
|
6752
7053
|
}
|
6753
7054
|
|
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
|
+
|
6754
7092
|
/**
|
6755
7093
|
* @public
|
6756
7094
|
*/
|
@@ -7179,6 +7517,10 @@ export declare interface UiLabelProps {
|
|
7179
7517
|
textAlign?: TextAlignType | undefined;
|
7180
7518
|
/** Label font type. @defaultValue 'sans-serif' */
|
7181
7519
|
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;
|
7182
7524
|
/** Behaviour when text reached. @defaultValue 'wrap' */
|
7183
7525
|
textWrap?: UiTextWrapType | undefined;
|
7184
7526
|
}
|
@@ -7188,6 +7530,9 @@ export declare interface UiLabelProps {
|
|
7188
7530
|
*/
|
7189
7531
|
export declare type uint32 = number;
|
7190
7532
|
|
7533
|
+
/** @public */
|
7534
|
+
export declare const UiScrollResult: LastWriteWinElementSetComponentDefinition<PBUiScrollResult>;
|
7535
|
+
|
7191
7536
|
/** @public */
|
7192
7537
|
export declare const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
|
7193
7538
|
|
@@ -7260,6 +7605,14 @@ export declare interface UiTransformProps {
|
|
7260
7605
|
overflow?: OverflowType;
|
7261
7606
|
/** 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) **/
|
7262
7607
|
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;
|
7263
7616
|
}
|
7264
7617
|
|
7265
7618
|
/**
|