@dcl/playground-assets 7.7.9 → 7.7.10-13856045106.commit-7f23e37

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/beta.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
 
@@ -462,6 +505,12 @@ export declare interface ByteBuffer {
462
505
  */
463
506
  export declare type Callback = () => void;
464
507
 
508
+ /** @public */
509
+ export declare const CameraLayer: LastWriteWinElementSetComponentDefinition<PBCameraLayer>;
510
+
511
+ /** @public */
512
+ export declare const CameraLayers: LastWriteWinElementSetComponentDefinition<PBCameraLayers>;
513
+
465
514
  /** @public */
466
515
  export declare const CameraMode: LastWriteWinElementSetComponentDefinition<PBCameraMode>;
467
516
 
@@ -519,6 +568,39 @@ export declare const enum CameraType {
519
568
 
520
569
  export declare type Children = ReactEcs.JSX.ReactNode;
521
570
 
571
+ /**
572
+ * @public
573
+ */
574
+ export declare interface CinematicSettings {
575
+ /** Entity that defines the cinematic camera transform. */
576
+ cameraEntity: number;
577
+ /**
578
+ * Position -> camera's position
579
+ * Rotation -> camera's direction
580
+ * scale.z -> zoom level
581
+ * scale.x and scale.y -> unused
582
+ */
583
+ allowManualRotation?: boolean | undefined;
584
+ /** how far the camera can rotate around the y-axis / look left/right, in radians. default unrestricted */
585
+ yawRange?: number | undefined;
586
+ /** how far the camera can rotate around the x-axis / look up-down, in radians. default unrestricted */
587
+ pitchRange?: number | undefined;
588
+ /** note: cameras can never look up/down further than Vec3::Y */
589
+ rollRange?: number | undefined;
590
+ /** minimum zoom level. must be greater than 0. defaults to the input zoom level */
591
+ zoomMin?: number | undefined;
592
+ /** maximum zoom level. must be greater than 0. defaults to the input zoom level */
593
+ zoomMax?: number | undefined;
594
+ }
595
+
596
+ /**
597
+ * @public
598
+ */
599
+ export declare namespace CinematicSettings {
600
+ export function encode(message: CinematicSettings, writer?: _m0.Writer): _m0.Writer;
601
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): CinematicSettings;
602
+ }
603
+
522
604
  /** ColliderLayer determines the kind of collision to detect, in OR-able bit flag form. */
523
605
  /**
524
606
  * @public
@@ -1292,12 +1374,18 @@ export declare const componentDefinitionByName: {
1292
1374
  "core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
1293
1375
  "core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
1294
1376
  "core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
1377
+ "core::CameraLayer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraLayer>>;
1378
+ "core::CameraLayers": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraLayers>>;
1295
1379
  "core::CameraMode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
1296
1380
  "core::CameraModeArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraModeArea>>;
1297
1381
  "core::EngineInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
1382
+ "core::GlobalLight": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGlobalLight>>;
1298
1383
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
1299
1384
  "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
1385
+ "core::GltfNode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNode>>;
1386
+ "core::GltfNodeState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNodeState>>;
1300
1387
  "core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
1388
+ "core::Light": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLight>>;
1301
1389
  "core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
1302
1390
  "core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
1303
1391
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
@@ -1307,19 +1395,24 @@ export declare const componentDefinitionByName: {
1307
1395
  "core::PointerEvents": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
1308
1396
  "core::PointerEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
1309
1397
  "core::PointerLock": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerLock>>;
1398
+ "core::PrimaryPointerInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>>;
1310
1399
  "core::Raycast": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
1311
1400
  "core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
1312
1401
  "core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
1402
+ "core::Spotlight": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSpotlight>>;
1313
1403
  "core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
1404
+ "core::TextureCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextureCamera>>;
1314
1405
  "core::Tween": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
1315
1406
  "core::TweenSequence": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenSequence>>;
1316
1407
  "core::TweenState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenState>>;
1317
1408
  "core::UiBackground": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiBackground>>;
1409
+ "core::UiCanvas": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiCanvas>>;
1318
1410
  "core::UiCanvasInformation": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiCanvasInformation>>;
1319
1411
  "core::UiDropdown": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdown>>;
1320
1412
  "core::UiDropdownResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>>;
1321
1413
  "core::UiInput": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInput>>;
1322
1414
  "core::UiInputResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputResult>>;
1415
+ "core::UiScrollResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiScrollResult>>;
1323
1416
  "core::UiText": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiText>>;
1324
1417
  "core::UiTransform": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiTransform>>;
1325
1418
  "core::VideoEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBVideoEvent>>;
@@ -1890,6 +1983,9 @@ export declare type EntityComponents = {
1890
1983
  onMouseUp: Callback;
1891
1984
  onMouseEnter: Callback;
1892
1985
  onMouseLeave: Callback;
1986
+ onMouseDrag: Callback;
1987
+ onMouseDragLocked: Callback;
1988
+ onMouseDragEnd: Callback;
1893
1989
  };
1894
1990
 
1895
1991
  /** @public */
@@ -2041,6 +2137,9 @@ export declare type GlobalDirectionRaycastSystemOptions = {
2041
2137
  direction?: PBVector3;
2042
2138
  };
2043
2139
 
2140
+ /** @public */
2141
+ export declare const GlobalLight: LastWriteWinElementSetComponentDefinition<PBGlobalLight>;
2142
+
2044
2143
  export declare type GlobalTargetRaycastOptions = RaycastSystemOptions & GlobalTargetRaycastSystemOptions;
2045
2144
 
2046
2145
  export declare type GlobalTargetRaycastSystemOptions = {
@@ -2053,6 +2152,21 @@ export declare const GltfContainer: LastWriteWinElementSetComponentDefinition<PB
2053
2152
  /** @public */
2054
2153
  export declare const GltfContainerLoadingState: LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>;
2055
2154
 
2155
+ /** @public */
2156
+ export declare const GltfNode: LastWriteWinElementSetComponentDefinition<PBGltfNode>;
2157
+
2158
+ /** @public */
2159
+ export declare const GltfNodeState: LastWriteWinElementSetComponentDefinition<PBGltfNodeState>;
2160
+
2161
+ /**
2162
+ * @public
2163
+ */
2164
+ export declare const enum GltfNodeStateValue {
2165
+ GNSV_PENDING = 0,
2166
+ GNSV_FAILED = 1,
2167
+ GNSV_READY = 2
2168
+ }
2169
+
2056
2170
  /**
2057
2171
  * @public
2058
2172
  */
@@ -2647,6 +2761,9 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2647
2761
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2648
2762
  }
2649
2763
 
2764
+ /** @public */
2765
+ export declare const Light: LastWriteWinElementSetComponentDefinition<PBLight>;
2766
+
2650
2767
  /**
2651
2768
  * User key event Listeners
2652
2769
  * @public
@@ -2660,6 +2777,12 @@ export declare type Listeners = {
2660
2777
  onMouseEnter?: Callback;
2661
2778
  /** triggered on mouse leave event */
2662
2779
  onMouseLeave?: Callback;
2780
+ /** triggered on mouse drag event */
2781
+ onMouseDrag?: Callback;
2782
+ /** triggered on mouse drag event */
2783
+ onMouseDragLocked?: Callback;
2784
+ /** triggered on mouse drag event */
2785
+ onMouseDragEnd?: Callback;
2663
2786
  };
2664
2787
 
2665
2788
  /**
@@ -3528,6 +3651,14 @@ export declare interface MeshColliderComponentDefinitionExtended extends LastWri
3528
3651
  * @param colliderMask - the set of layer where the collider reacts, default: Physics and Pointer
3529
3652
  */
3530
3653
  setSphere(entity: Entity, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
3654
+ /**
3655
+ * @public
3656
+ * Set a gltf internal mesh in the MeshCollider component
3657
+ * @param entity - entity to create or replace the MeshRenderer component
3658
+ * @param source - the path to the gltf
3659
+ * @param meshName - the name of the mesh in the gltf
3660
+ */
3661
+ setGltfMesh(entity: Entity, source: string, meshName: string, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
3531
3662
  }
3532
3663
 
3533
3664
  export declare const MeshRenderer: MeshRendererComponentDefinitionExtended;
@@ -3564,6 +3695,14 @@ export declare interface MeshRendererComponentDefinitionExtended extends LastWri
3564
3695
  * @param entity - entity to create or replace the MeshRenderer component
3565
3696
  */
3566
3697
  setSphere(entity: Entity): void;
3698
+ /**
3699
+ * @public
3700
+ * Set a gltf internal mesh in the MeshRenderer component
3701
+ * @param entity - entity to create or replace the MeshRenderer component
3702
+ * @param source - the path to the gltf
3703
+ * @param meshName - the name of the mesh in the gltf
3704
+ */
3705
+ setGltfMesh(entity: Entity, source: string, meshName: string): void;
3567
3706
  }
3568
3707
 
3569
3708
  /* Excluded from this release type: MessageBus */
@@ -3957,6 +4096,25 @@ export declare const onVideoEvent: Observable<{
3957
4096
  totalVideoLength: number;
3958
4097
  }>;
3959
4098
 
4099
+ /**
4100
+ * @public
4101
+ */
4102
+ export declare interface Orthographic {
4103
+ /**
4104
+ * vertical extent of the visible range in meters
4105
+ * defaults to 4m
4106
+ */
4107
+ verticalRange?: number | undefined;
4108
+ }
4109
+
4110
+ /**
4111
+ * @public
4112
+ */
4113
+ export declare namespace Orthographic {
4114
+ export function encode(message: Orthographic, writer?: _m0.Writer): _m0.Writer;
4115
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): Orthographic;
4116
+ }
4117
+
3960
4118
  /**
3961
4119
  * @public
3962
4120
  * The overflow property controls what happens to content that is too big to fit into an area
@@ -4183,6 +4341,8 @@ export declare namespace PBAvatarEmoteCommand {
4183
4341
  export declare interface PBAvatarEquippedData {
4184
4342
  wearableUrns: string[];
4185
4343
  emoteUrns: string[];
4344
+ /** slots that will render even if hidden */
4345
+ forceRender: string[];
4186
4346
  }
4187
4347
 
4188
4348
  /**
@@ -4217,6 +4377,9 @@ export declare interface PBAvatarModifierArea {
4217
4377
  excludeIds: string[];
4218
4378
  /** list of modifiers to apply */
4219
4379
  modifiers: AvatarModifierType[];
4380
+ movementSettings?: AvatarMovementSettings | undefined;
4381
+ /** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
4382
+ useColliderRange?: boolean | undefined;
4220
4383
  }
4221
4384
 
4222
4385
  /**
@@ -4273,6 +4436,8 @@ export declare interface PBAvatarShape {
4273
4436
  wearables: string[];
4274
4437
  /** available emotes (default empty) */
4275
4438
  emotes: string[];
4439
+ /** slots that will render even if hidden */
4440
+ forceRender: string[];
4276
4441
  }
4277
4442
 
4278
4443
  /**
@@ -4307,6 +4472,51 @@ export declare namespace PBBillboard {
4307
4472
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBBillboard;
4308
4473
  }
4309
4474
 
4475
+ /**
4476
+ * @public
4477
+ */
4478
+ export declare interface PBCameraLayer {
4479
+ /**
4480
+ * layer to which these settings apply. must be > 0
4481
+ * Layer 0 is the default "real world" layer viewed by the player and cannot be modified.
4482
+ */
4483
+ layer: number;
4484
+ /** should the sun light affect this layer? default false */
4485
+ directionalLight?: boolean | undefined;
4486
+ /** should this layer show player avatars? default false */
4487
+ showAvatars?: boolean | undefined;
4488
+ /** should this layer show the sky? default false */
4489
+ showSkybox?: boolean | undefined;
4490
+ /** should this layer show distance fog? default false */
4491
+ showFog?: boolean | undefined;
4492
+ /** ambient light overrides for this layer. default -> use same as main camera */
4493
+ ambientColorOverride?: PBColor3 | undefined;
4494
+ ambientBrightnessOverride?: number | undefined;
4495
+ }
4496
+
4497
+ /**
4498
+ * @public
4499
+ */
4500
+ export declare namespace PBCameraLayer {
4501
+ export function encode(message: PBCameraLayer, writer?: _m0.Writer): _m0.Writer;
4502
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBCameraLayer;
4503
+ }
4504
+
4505
+ /**
4506
+ * @public
4507
+ */
4508
+ export declare interface PBCameraLayers {
4509
+ layers: number[];
4510
+ }
4511
+
4512
+ /**
4513
+ * @public
4514
+ */
4515
+ export declare namespace PBCameraLayers {
4516
+ export function encode(message: PBCameraLayers, writer?: _m0.Writer): _m0.Writer;
4517
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBCameraLayers;
4518
+ }
4519
+
4310
4520
  /**
4311
4521
  * The CameraMode component can be used to determine whether the player is using a first-person o
4312
4522
  * third-person view.
@@ -4329,7 +4539,7 @@ export declare namespace PBCameraMode {
4329
4539
 
4330
4540
  /**
4331
4541
  * The CameraModeArea component can be attached to an Entity to define a region of space where
4332
- * the player's camera mode (1st-person or 3rd-person) is overridden.
4542
+ * the player's camera mode (1st-person, 3rd-person or cinematic) is overridden.
4333
4543
  *
4334
4544
  * The Entity's Transform position determines the center-point of the region, while its size is
4335
4545
  * given as a vector in the `area` property below. The Transform rotation is applied, but the scale
@@ -4339,6 +4549,8 @@ export declare namespace PBCameraMode {
4339
4549
  *
4340
4550
  * Note that, while commonly used to delineate a 2D area in a scene (hence the name), the region
4341
4551
  * is actually a 3D volume.
4552
+ *
4553
+ * When mode is set to CtCinematic, the cinematic_settings field must also be provided.
4342
4554
  */
4343
4555
  /**
4344
4556
  * @public
@@ -4348,6 +4560,9 @@ export declare interface PBCameraModeArea {
4348
4560
  area: PBVector3 | undefined;
4349
4561
  /** the camera mode to enforce */
4350
4562
  mode: CameraType;
4563
+ cinematicSettings?: CinematicSettings | undefined;
4564
+ /** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
4565
+ useColliderRange?: boolean | undefined;
4351
4566
  }
4352
4567
 
4353
4568
  /**
@@ -4419,6 +4634,39 @@ export declare namespace PBEngineInfo {
4419
4634
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBEngineInfo;
4420
4635
  }
4421
4636
 
4637
+ /**
4638
+ * defines the global scene light settings. must be added to the scene root.
4639
+ * to control sunlight color, intensity, shadows etc, you can also add a PBLight to the scene root.
4640
+ */
4641
+ /**
4642
+ * @public
4643
+ */
4644
+ export declare interface PBGlobalLight {
4645
+ /**
4646
+ * the direction the directional light shines in.
4647
+ * default depends on time of day and explorer implementation
4648
+ */
4649
+ direction?: PBVector3 | undefined;
4650
+ /**
4651
+ * ambient light color
4652
+ * default: White
4653
+ */
4654
+ ambientColor?: PBColor3 | undefined;
4655
+ /**
4656
+ * ambient light intensity. the explorer default ambient brightness is multiplied by this non-physical quantity.
4657
+ * default 1
4658
+ */
4659
+ ambientBrightness?: number | undefined;
4660
+ }
4661
+
4662
+ /**
4663
+ * @public
4664
+ */
4665
+ export declare namespace PBGlobalLight {
4666
+ export function encode(message: PBGlobalLight, writer?: _m0.Writer): _m0.Writer;
4667
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGlobalLight;
4668
+ }
4669
+
4422
4670
  /**
4423
4671
  * GltfContainer loads a GLTF file (and any additional files packaged inside) attached to an Entity.
4424
4672
  *
@@ -4454,6 +4702,25 @@ export declare namespace PBGltfContainer {
4454
4702
  */
4455
4703
  export declare interface PBGltfContainerLoadingState {
4456
4704
  currentState: LoadingState;
4705
+ /** all node paths in the gltf, which can be used with a GltfNode to inspect and modify the gltf contents */
4706
+ nodePaths: string[];
4707
+ /** all meshes in the gltf. unnamed meshes will be auto-assigned a name of the form `MeshX` or `MeshX/PrimitiveY` */
4708
+ meshNames: string[];
4709
+ /**
4710
+ * where X is the mesh index and Y is the primitive index (and there is more than 1 primitive). note this may
4711
+ * conflict with manually named meshes - to avoid any issues make sure all your meshes are explicitly named.
4712
+ */
4713
+ materialNames: string[];
4714
+ /**
4715
+ * X is the material index. note this may conflict with manually named materials - to avoid any issues make
4716
+ * sure all your materials are explicitly named.
4717
+ */
4718
+ skinNames: string[];
4719
+ /**
4720
+ * X is the skin index. note this may conflict with manually named skins - to avoid any issues make sure all
4721
+ * your skins are explicitly named.
4722
+ */
4723
+ animationNames: string[];
4457
4724
  }
4458
4725
 
4459
4726
  /**
@@ -4464,6 +4731,77 @@ export declare namespace PBGltfContainerLoadingState {
4464
4731
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfContainerLoadingState;
4465
4732
  }
4466
4733
 
4734
+ /**
4735
+ * a GltfNode links a scene entity with a node from within a gltf, allowing the scene to inspect it or modify it.
4736
+ * This component must be added to a direct child of an entity with a PBGltfContainer component, or
4737
+ * to a direct child of another entity with a GltfNode component, and the referenced gltf node must be a descendent of the gltf node
4738
+ * in the parent.
4739
+ * The name must match the path of one of the nodes within the Gltf. These are available on the GltfContainerLoadingState component.
4740
+ *
4741
+ * The renderer will attach a PBGltfNodeState to the entity describing the state. Once the state is `GNS_READY`,
4742
+ * - the `Transform` will be updated to match the position of the node within the gltf (relative to the gltf root, or the parent node),
4743
+ * - a `MeshRenderer` with a GltfMesh mesh type will be added (if the gltf node has a mesh).
4744
+ * - a `MeshCollider` with a GltfMesh mesh type will be added (if the gltf node has a collider).
4745
+ * - a `Material` component including a GltfMaterial reference will be added (if the gltf node has a material).
4746
+ *
4747
+ * After creation, if an animation moves the node, the `Transform` will be updated.
4748
+ *
4749
+ * From the scene, you can modify various components to alter the gltf node:
4750
+ * - modifying the `Transform` position/rotation/scale will move the node. The position is interpreted relative to the gltf root (or parent node),
4751
+ * regardless of any intermediate gltf node hierarchy.
4752
+ * If an animation is playing, the animation takes priority and the scene entity's position will be updated to match the animation.
4753
+ * - `Visibility` can be added to hide or show the node and it's children in the gltf hierarchy.
4754
+ * - `MeshRenderer` can be added/modified/removed to create/modify/remove a mesh on the node.
4755
+ * - `MeshCollider` can be added/modified/removed to create/modify/remove a collider on the node.
4756
+ * - `Material` can be added or modified to change the material properties. If the gltf node has a material, the original material will be
4757
+ * 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
4758
+ * PBMaterial will be maintained.
4759
+ *
4760
+ * The scene can add additional entities as children to the gltf node, but structural modifications of the gltf are not possible:
4761
+ * - changing the scene hierarchy will not change the gltf node hierarchy. Moving the entity out of the gltf will sever the link and
4762
+ * change the state to `GNS_FAILED`.
4763
+ * - deleting the scene entity will not delete the gltf node.
4764
+ *
4765
+ * Removing the GltfNode will revert any changes to the original gltf. If the GltfNode component is removed and the mesh/collider/material
4766
+ * are not removed, this will result in a duplication of these components as the previously-linked entity will retain it's components and
4767
+ * the gltf node will also be displayed.
4768
+ */
4769
+ /**
4770
+ * @public
4771
+ */
4772
+ export declare interface PBGltfNode {
4773
+ /** the path of the target node in the Gltf. */
4774
+ path: string;
4775
+ }
4776
+
4777
+ /**
4778
+ * @public
4779
+ */
4780
+ export declare namespace PBGltfNode {
4781
+ export function encode(message: PBGltfNode, writer?: _m0.Writer): _m0.Writer;
4782
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNode;
4783
+ }
4784
+
4785
+ /**
4786
+ * The state of a linked gltf node.
4787
+ * If the state is GNSV_FAILED, the renderer may describe the failure in the error string.
4788
+ */
4789
+ /**
4790
+ * @public
4791
+ */
4792
+ export declare interface PBGltfNodeState {
4793
+ state: GltfNodeStateValue;
4794
+ error?: string | undefined;
4795
+ }
4796
+
4797
+ /**
4798
+ * @public
4799
+ */
4800
+ export declare namespace PBGltfNodeState {
4801
+ export function encode(message: PBGltfNodeState, writer?: _m0.Writer): _m0.Writer;
4802
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNodeState;
4803
+ }
4804
+
4467
4805
  /**
4468
4806
  * @public
4469
4807
  */
@@ -4503,6 +4841,62 @@ export declare namespace PBInputModifier_StandardInput {
4503
4841
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4504
4842
  }
4505
4843
 
4844
+ /**
4845
+ * defines a light source.
4846
+ * the world has a default directional light (like sunlight) which can be overridden by adding the light component to the scene root.
4847
+ * a PBGlobalLight component can also be added to the root to control the directional light direction.
4848
+ * point lights (lightbulbs) or spotlights can be created by attaching the light component to non-root entities.
4849
+ */
4850
+ /**
4851
+ * @public
4852
+ */
4853
+ export declare interface PBLight {
4854
+ /**
4855
+ * whether the light is on
4856
+ * default true
4857
+ */
4858
+ enabled?: boolean | undefined;
4859
+ /**
4860
+ * light brightness in lux (lumens/m^2).
4861
+ *
4862
+ * for global directional light, this applies as a constant value at all surfaces and distances (though the effect on the surface still depends on incidence angle).
4863
+ * the default global light illuminance varies from 400 (sunrise/sunset) to 10,000 (midday).
4864
+ * for typical values, see https://en.wikipedia.org/wiki/Lux#Illuminance
4865
+ *
4866
+ * for point and spot lights, this is the lumens/m^2 at 1m distance from the light. to transform from raw lumens,
4867
+ * divide lumens by ~12 (4*pi).
4868
+ * e.g. a 100w household bulb with 1200 lumens would have an illuminance of ~100.
4869
+ * a lighthouse bulb with 200,000 lumens would have an illuminance of ~15,000 (ignoring beam reflections)
4870
+ *
4871
+ * default
4872
+ * for point/spotlights: 10,000
4873
+ * for global directional light: depends on explorer implementation. may vary on light direction, time of day, etc
4874
+ */
4875
+ illuminance?: number | undefined;
4876
+ /**
4877
+ * whether the light should cast shadows.
4878
+ * note: even when set to true the engine may not display shadows, or may only show shadows for a limited number
4879
+ * of lights depending on the implementation, platform, and user settings.
4880
+ * default
4881
+ * for point/spotlights: false / off
4882
+ * for global directional light: true / on
4883
+ */
4884
+ shadows?: boolean | undefined;
4885
+ /**
4886
+ * light color
4887
+ * default White
4888
+ */
4889
+ color?: PBColor3 | undefined;
4890
+ }
4891
+
4892
+ /**
4893
+ * @public
4894
+ */
4895
+ export declare namespace PBLight {
4896
+ export function encode(message: PBLight, writer?: _m0.Writer): _m0.Writer;
4897
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLight;
4898
+ }
4899
+
4506
4900
  /**
4507
4901
  * PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
4508
4902
  * This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
@@ -4534,6 +4928,14 @@ export declare interface PBMaterial {
4534
4928
  $case: "pbr";
4535
4929
  pbr: PBMaterial_PbrMaterial;
4536
4930
  } | undefined;
4931
+ /**
4932
+ * A gltf material that may provide additional features not supported by the PbMaterial fields.
4933
+ * If both gltf and material fields are provided, the gltf will be used only for extended features not
4934
+ * supported by the PbMaterial.
4935
+ * If this is provided and the `material` field is not provided, the renderer will update the material
4936
+ * field with data that reflects the gltf material once it is loaded.
4937
+ */
4938
+ gltf?: PBMaterial_GltfMaterial | undefined;
4537
4939
  }
4538
4940
 
4539
4941
  /**
@@ -4544,6 +4946,22 @@ export declare namespace PBMaterial {
4544
4946
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMaterial;
4545
4947
  }
4546
4948
 
4949
+ /**
4950
+ * @public
4951
+ */
4952
+ export declare interface PBMaterial_GltfMaterial {
4953
+ gltfSrc: string;
4954
+ name: string;
4955
+ }
4956
+
4957
+ /**
4958
+ * @public
4959
+ */
4960
+ export declare namespace PBMaterial_GltfMaterial {
4961
+ export function encode(message: PBMaterial_GltfMaterial, writer?: _m0.Writer): _m0.Writer;
4962
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMaterial_GltfMaterial;
4963
+ }
4964
+
4547
4965
  /**
4548
4966
  * @public
4549
4967
  */
@@ -4640,6 +5058,9 @@ export declare interface PBMeshCollider {
4640
5058
  } | {
4641
5059
  $case: "plane";
4642
5060
  plane: PBMeshCollider_PlaneMesh;
5061
+ } | {
5062
+ $case: "gltf";
5063
+ gltf: PBMeshCollider_GltfMesh;
4643
5064
  } | undefined;
4644
5065
  }
4645
5066
 
@@ -4685,6 +5106,25 @@ export declare namespace PBMeshCollider_CylinderMesh {
4685
5106
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshCollider_CylinderMesh;
4686
5107
  }
4687
5108
 
5109
+ /** A collider constructed from a Gltf Mesh. */
5110
+ /**
5111
+ * @public
5112
+ */
5113
+ export declare interface PBMeshCollider_GltfMesh {
5114
+ /** the GLTF file path as listed in the scene's manifest. */
5115
+ gltfSrc: string;
5116
+ /** the name of the mesh asset */
5117
+ name: string;
5118
+ }
5119
+
5120
+ /**
5121
+ * @public
5122
+ */
5123
+ export declare namespace PBMeshCollider_GltfMesh {
5124
+ export function encode(message: PBMeshCollider_GltfMesh, writer?: _m0.Writer): _m0.Writer;
5125
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshCollider_GltfMesh;
5126
+ }
5127
+
4688
5128
  /** PlaneMesh is a 2D rectangle described by the Entity's Transform. */
4689
5129
  /**
4690
5130
  * @public
@@ -4717,13 +5157,11 @@ export declare namespace PBMeshCollider_SphereMesh {
4717
5157
 
4718
5158
  /**
4719
5159
  * The MeshRenderer component renders a basic geometric shape for an Entity. It can be a cube, a
4720
- * plane, a sphere or a cylinder.
5160
+ * plane, a sphere, a cylinder, or a Gltf mesh.
4721
5161
  *
4722
5162
  * The cube and plane variants can include a UV texture mapping, so specific areas of a material
4723
5163
  * texture are rendered on different faces of the shape. They are serialized as a sequence of 2D
4724
5164
  * `float` coordinates, one for each corner of each side of each face.
4725
- *
4726
- * More complex shapes require the use of a `GltfContainer` component.
4727
5165
  */
4728
5166
  /**
4729
5167
  * @public
@@ -4741,6 +5179,9 @@ export declare interface PBMeshRenderer {
4741
5179
  } | {
4742
5180
  $case: "plane";
4743
5181
  plane: PBMeshRenderer_PlaneMesh;
5182
+ } | {
5183
+ $case: "gltf";
5184
+ gltf: PBMeshRenderer_GltfMesh;
4744
5185
  } | undefined;
4745
5186
  }
4746
5187
 
@@ -4788,6 +5229,25 @@ export declare namespace PBMeshRenderer_CylinderMesh {
4788
5229
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshRenderer_CylinderMesh;
4789
5230
  }
4790
5231
 
5232
+ /** A mesh from a Gltf. */
5233
+ /**
5234
+ * @public
5235
+ */
5236
+ export declare interface PBMeshRenderer_GltfMesh {
5237
+ /** the GLTF file path as listed in the scene's manifest. */
5238
+ gltfSrc: string;
5239
+ /** the name of the mesh asset */
5240
+ name: string;
5241
+ }
5242
+
5243
+ /**
5244
+ * @public
5245
+ */
5246
+ export declare namespace PBMeshRenderer_GltfMesh {
5247
+ export function encode(message: PBMeshRenderer_GltfMesh, writer?: _m0.Writer): _m0.Writer;
5248
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshRenderer_GltfMesh;
5249
+ }
5250
+
4791
5251
  /** PlaneMesh renders a 2D rectangular shape. */
4792
5252
  /**
4793
5253
  * @public
@@ -5006,6 +5466,30 @@ export declare namespace PBPosition {
5006
5466
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPosition;
5007
5467
  }
5008
5468
 
5469
+ /**
5470
+ * @public
5471
+ */
5472
+ export declare interface PBPrimaryPointerInfo {
5473
+ pointerType?: PointerType | undefined;
5474
+ /** in pixels */
5475
+ screenCoordinates?: PBVector2 | undefined;
5476
+ /** in pixels */
5477
+ screenDelta?: PBVector2 | undefined;
5478
+ /**
5479
+ * ray direction that can be used with the primary camera origin for
5480
+ * raycasting from the cursor into the world
5481
+ */
5482
+ worldRayDirection?: PBVector3 | undefined;
5483
+ }
5484
+
5485
+ /**
5486
+ * @public
5487
+ */
5488
+ export declare namespace PBPrimaryPointerInfo {
5489
+ export function encode(message: PBPrimaryPointerInfo, writer?: _m0.Writer): _m0.Writer;
5490
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPrimaryPointerInfo;
5491
+ }
5492
+
5009
5493
  /**
5010
5494
  * @public
5011
5495
  */
@@ -5127,6 +5611,39 @@ export declare namespace PBRealmInfo {
5127
5611
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBRealmInfo;
5128
5612
  }
5129
5613
 
5614
+ /**
5615
+ * defines a spotlight.
5616
+ * spotlights are point lights that emit light only in a cone around the transform's forward direction.
5617
+ * add this component together with the PBLight component to transform a point light into a spotlight.
5618
+ * note that spotlights do not model any internal reflections / focus, they only restrict the area of effect.
5619
+ * so for e.g. a torch beam, the bulb illuminance should be multiplied by the solid angle.
5620
+ * a typical torch with a beam width of 15 degrees would use outer angle of 0.15 (7.5 degrees in radians),
5621
+ * and an illuminance approximately equal to the bulb's lumens, e.g. 1200.
5622
+ */
5623
+ /**
5624
+ * @public
5625
+ */
5626
+ export declare interface PBSpotlight {
5627
+ /**
5628
+ * the cone radius in radians. distance away from forward in which the light is visible.
5629
+ * for a torch a value around 0.15 is appropriate.
5630
+ */
5631
+ angle: number;
5632
+ /**
5633
+ * optional angle at which the light is brightest. should be <= outer angle.
5634
+ * if specified, the light will fall off smoothly between `inner_angle` and `angle`.
5635
+ */
5636
+ innerAngle?: number | undefined;
5637
+ }
5638
+
5639
+ /**
5640
+ * @public
5641
+ */
5642
+ export declare namespace PBSpotlight {
5643
+ export function encode(message: PBSpotlight, writer?: _m0.Writer): _m0.Writer;
5644
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSpotlight;
5645
+ }
5646
+
5130
5647
  /**
5131
5648
  * The TextShape component renders customizable floating text.
5132
5649
  *
@@ -5191,6 +5708,40 @@ export declare namespace PBTextShape {
5191
5708
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTextShape;
5192
5709
  }
5193
5710
 
5711
+ /**
5712
+ * @public
5713
+ */
5714
+ export declare interface PBTextureCamera {
5715
+ /** rendered texture width */
5716
+ width?: number | undefined;
5717
+ /** rendered texture height */
5718
+ height?: number | undefined;
5719
+ /**
5720
+ * which layer of entities to render. entity layers can be specified by adding PBCameraLayers to target entities.
5721
+ * defaults to 0
5722
+ */
5723
+ layer?: number | undefined;
5724
+ /** default black */
5725
+ clearColor?: PBColor4 | undefined;
5726
+ /** default infinity */
5727
+ farPlane?: number | undefined;
5728
+ mode?: {
5729
+ $case: "perspective";
5730
+ perspective: Perspective;
5731
+ } | {
5732
+ $case: "orthographic";
5733
+ orthographic: Orthographic;
5734
+ } | undefined;
5735
+ }
5736
+
5737
+ /**
5738
+ * @public
5739
+ */
5740
+ export declare namespace PBTextureCamera {
5741
+ export function encode(message: PBTextureCamera, writer?: _m0.Writer): _m0.Writer;
5742
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTextureCamera;
5743
+ }
5744
+
5194
5745
  /**
5195
5746
  * @public
5196
5747
  */
@@ -5280,6 +5831,25 @@ export declare namespace PBUiBackground {
5280
5831
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiBackground;
5281
5832
  }
5282
5833
 
5834
+ /** The UiCanvas component can be attached to a ui root entity to specify properties of the ui texture. */
5835
+ /**
5836
+ * @public
5837
+ */
5838
+ export declare interface PBUiCanvas {
5839
+ width: number;
5840
+ height: number;
5841
+ /** default = (0.0, 0.0, 0.0, 0.0) / transparent */
5842
+ color?: PBColor4 | undefined;
5843
+ }
5844
+
5845
+ /**
5846
+ * @public
5847
+ */
5848
+ export declare namespace PBUiCanvas {
5849
+ export function encode(message: PBUiCanvas, writer?: _m0.Writer): _m0.Writer;
5850
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiCanvas;
5851
+ }
5852
+
5283
5853
  /** This component is created by the renderer and used by the scenes to know the resolution of the UI canvas */
5284
5854
  /**
5285
5855
  * @public
@@ -5396,6 +5966,21 @@ export declare namespace PBUiInputResult {
5396
5966
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputResult;
5397
5967
  }
5398
5968
 
5969
+ /**
5970
+ * @public
5971
+ */
5972
+ export declare interface PBUiScrollResult {
5973
+ value: PBVector2 | undefined;
5974
+ }
5975
+
5976
+ /**
5977
+ * @public
5978
+ */
5979
+ export declare namespace PBUiScrollResult {
5980
+ export function encode(message: PBUiScrollResult, writer?: _m0.Writer): _m0.Writer;
5981
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiScrollResult;
5982
+ }
5983
+
5399
5984
  /**
5400
5985
  * @public
5401
5986
  */
@@ -5412,6 +5997,10 @@ export declare interface PBUiText {
5412
5997
  fontSize?: number | undefined;
5413
5998
  /** wrap text when the border is reached (default: TW_WRAP) */
5414
5999
  textWrap?: TextWrap | undefined;
6000
+ /** width of the outline (default: 0) */
6001
+ outlineWidth?: number | undefined;
6002
+ /** RGBA color of the outline (default: opaque black) */
6003
+ outlineColor?: PBColor4 | undefined;
5415
6004
  }
5416
6005
 
5417
6006
  /**
@@ -5508,6 +6097,16 @@ export declare interface PBUiTransform {
5508
6097
  paddingBottom: number;
5509
6098
  /** default: PointerFilterMode.PFM_NONE */
5510
6099
  pointerFilter?: PointerFilterMode | undefined;
6100
+ /** default: 1 */
6101
+ opacity?: number | undefined;
6102
+ /** default empty */
6103
+ elementId?: string | undefined;
6104
+ /** default position=(0,0) */
6105
+ scrollPosition?: ScrollPositionValue | undefined;
6106
+ /** default ShowScrollBar.SSB_BOTH */
6107
+ scrollVisible?: ShowScrollBar | undefined;
6108
+ /** default 0 */
6109
+ zIndex?: number | undefined;
5511
6110
  }
5512
6111
 
5513
6112
  /**
@@ -5637,6 +6236,25 @@ export declare namespace PBVisibilityComponent {
5637
6236
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBVisibilityComponent;
5638
6237
  }
5639
6238
 
6239
+ /**
6240
+ * @public
6241
+ */
6242
+ export declare interface Perspective {
6243
+ /**
6244
+ * vertical field of view in radians
6245
+ * defaults to pi/4 = 45 degrees
6246
+ */
6247
+ fieldOfView?: number | undefined;
6248
+ }
6249
+
6250
+ /**
6251
+ * @public
6252
+ */
6253
+ export declare namespace Perspective {
6254
+ export function encode(message: Perspective, writer?: _m0.Writer): _m0.Writer;
6255
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): Perspective;
6256
+ }
6257
+
5640
6258
  /**
5641
6259
  * Represens a plane by the equation ax + by + cz + d = 0
5642
6260
  * @public
@@ -5792,6 +6410,24 @@ export declare interface PointerEventsSystem {
5792
6410
  * @param entity - Entity where the callback was attached
5793
6411
  */
5794
6412
  removeOnPointerHoverLeave(entity: Entity): void;
6413
+ /**
6414
+ * @public
6415
+ * Remove the callback for onPointerDrag event
6416
+ * @param entity - Entity where the callback was attached
6417
+ */
6418
+ removeOnPointerDrag(entity: Entity): void;
6419
+ /**
6420
+ * @public
6421
+ * Remove the callback for onPointerDragLocked event
6422
+ * @param entity - Entity where the callback was attached
6423
+ */
6424
+ removeOnPointerDragLocked(entity: Entity): void;
6425
+ /**
6426
+ * @public
6427
+ * Remove the callback for onPointerDragEnd event
6428
+ * @param entity - Entity where the callback was attached
6429
+ */
6430
+ removeOnPointerDragEnd(entity: Entity): void;
5795
6431
  /**
5796
6432
  * @public
5797
6433
  * Execute callback when the user press the InputButton pointing at the entity
@@ -5846,6 +6482,37 @@ export declare interface PointerEventsSystem {
5846
6482
  entity: Entity;
5847
6483
  opts?: Partial<EventSystemOptions>;
5848
6484
  }, cb: EventSystemCallback): void;
6485
+ /**
6486
+ * @public
6487
+ * Execute callback when the user clicks and drags the pointer from inside the entity
6488
+ * @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
6489
+ * @param cb - Function to execute when click fires
6490
+ */
6491
+ onPointerDrag(pointerData: {
6492
+ entity: Entity;
6493
+ opts?: Partial<EventSystemOptions>;
6494
+ }, cb: EventSystemCallback): void;
6495
+ /**
6496
+ * @public
6497
+ * Execute callback when the user clicks and drags the pointer from inside the entity,
6498
+ * locking the cursor in place
6499
+ * @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
6500
+ * @param cb - Function to execute when click fires
6501
+ */
6502
+ onPointerDragLocked(pointerData: {
6503
+ entity: Entity;
6504
+ opts?: Partial<EventSystemOptions>;
6505
+ }, cb: EventSystemCallback): void;
6506
+ /**
6507
+ * @public
6508
+ * Execute callback when the user releases the button after a drag
6509
+ * @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
6510
+ * @param cb - Function to execute when click fires
6511
+ */
6512
+ onPointerDragEnd(pointerData: {
6513
+ entity: Entity;
6514
+ opts?: Partial<EventSystemOptions>;
6515
+ }, cb: EventSystemCallback): void;
5849
6516
  }
5850
6517
 
5851
6518
  /**
@@ -5862,7 +6529,10 @@ export declare const enum PointerEventType {
5862
6529
  PET_UP = 0,
5863
6530
  PET_DOWN = 1,
5864
6531
  PET_HOVER_ENTER = 2,
5865
- PET_HOVER_LEAVE = 3
6532
+ PET_HOVER_LEAVE = 3,
6533
+ PET_DRAG_LOCKED = 4,
6534
+ PET_DRAG = 5,
6535
+ PET_DRAG_END = 6
5866
6536
  }
5867
6537
 
5868
6538
  /**
@@ -5882,6 +6552,17 @@ export declare type PointerFilterType = 'none' | 'block';
5882
6552
  /** @public */
5883
6553
  export declare const PointerLock: LastWriteWinElementSetComponentDefinition<PBPointerLock>;
5884
6554
 
6555
+ /**
6556
+ * @public
6557
+ */
6558
+ export declare const enum PointerType {
6559
+ POT_NONE = 0,
6560
+ POT_MOUSE = 1,
6561
+ POT_PAD = 2,
6562
+ POT_TOUCH = 3,
6563
+ POT_WAND = 4
6564
+ }
6565
+
5885
6566
  /**
5886
6567
  * Type used for defining the position of the element. i.e. margin, padding
5887
6568
  * @public
@@ -5919,6 +6600,9 @@ export declare type PositionType = 'absolute' | 'relative';
5919
6600
  */
5920
6601
  export declare type PositionUnit = `${number}px` | `${number}%` | number | `${number}` | ScaleUnit;
5921
6602
 
6603
+ /** @public */
6604
+ export declare const PrimaryPointerInfo: LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>;
6605
+
5922
6606
  export declare enum ProcessMessageResultType {
5923
6607
  /**
5924
6608
  * Typical message and new state set.
@@ -6473,6 +7157,7 @@ export declare type RaycastSystemOptions = {
6473
7157
  export declare interface ReactBasedUiSystem {
6474
7158
  destroy(): void;
6475
7159
  setUiRenderer(ui: UiComponent): void;
7160
+ setTextureRenderer(entity: Entity, ui: UiComponent): void;
6476
7161
  }
6477
7162
 
6478
7163
  /**
@@ -6926,6 +7611,43 @@ export declare namespace Schemas {
6926
7611
  }) => void;
6927
7612
  }
6928
7613
 
7614
+ /**
7615
+ * @public
7616
+ */
7617
+ export declare interface ScrollPositionValue {
7618
+ value?: {
7619
+ $case: "position";
7620
+ position: PBVector2;
7621
+ } | {
7622
+ $case: "reference";
7623
+ reference: string;
7624
+ } | undefined;
7625
+ }
7626
+
7627
+ /**
7628
+ * @public
7629
+ */
7630
+ export declare namespace ScrollPositionValue {
7631
+ export function encode(message: ScrollPositionValue, writer?: _m0.Writer): _m0.Writer;
7632
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): ScrollPositionValue;
7633
+ }
7634
+
7635
+ /**
7636
+ * @public
7637
+ * The scroll-visible determines if the scrollbars are shown when the scroll overflow is enabled
7638
+ */
7639
+ export declare type ScrollVisibleType = 'horizontal' | 'vertical' | 'both' | 'hidden';
7640
+
7641
+ /**
7642
+ * @public
7643
+ */
7644
+ export declare const enum ShowScrollBar {
7645
+ SSB_BOTH = 0,
7646
+ SSB_ONLY_VERTICAL = 1,
7647
+ SSB_ONLY_HORIZONTAL = 2,
7648
+ SSB_HIDDEN = 3
7649
+ }
7650
+
6929
7651
  /**
6930
7652
  * @public
6931
7653
  */
@@ -6933,6 +7655,9 @@ export declare interface Spec {
6933
7655
  [key: string]: ISchema;
6934
7656
  }
6935
7657
 
7658
+ /** @public */
7659
+ export declare const Spotlight: LastWriteWinElementSetComponentDefinition<PBSpotlight>;
7660
+
6936
7661
  /* Excluded from this release type: SyncComponents */
6937
7662
 
6938
7663
  /**
@@ -7002,6 +7727,9 @@ export declare namespace Texture {
7002
7727
  export function decode(input: _m0.Reader | Uint8Array, length?: number): Texture;
7003
7728
  }
7004
7729
 
7730
+ /** @public */
7731
+ export declare const TextureCamera: LastWriteWinElementSetComponentDefinition<PBTextureCamera>;
7732
+
7005
7733
  /**
7006
7734
  * @public
7007
7735
  */
@@ -7094,6 +7822,9 @@ export declare interface TextureUnion {
7094
7822
  } | {
7095
7823
  $case: "videoTexture";
7096
7824
  videoTexture: VideoTexture;
7825
+ } | {
7826
+ $case: "uiTexture";
7827
+ uiTexture: UiCanvasTexture;
7097
7828
  } | undefined;
7098
7829
  }
7099
7830
 
@@ -7301,6 +8032,8 @@ export declare interface UiBackgroundProps {
7301
8032
  uvs?: number[];
7302
8033
  /** AvatarTexture for the background */
7303
8034
  avatarTexture?: UiAvatarTexture;
8035
+ /** VideoTexture for the background */
8036
+ videoTexture?: UiVideoTexture;
7304
8037
  /** Texture for the background */
7305
8038
  texture?: UiTexture;
7306
8039
  }
@@ -7320,9 +8053,31 @@ export declare interface UiButtonProps extends UiLabelProps, EntityPropTypes {
7320
8053
  disabled?: boolean;
7321
8054
  }
7322
8055
 
8056
+ /** @public */
8057
+ export declare const UiCanvas: LastWriteWinElementSetComponentDefinition<PBUiCanvas>;
8058
+
7323
8059
  /** @public */
7324
8060
  export declare const UiCanvasInformation: LastWriteWinElementSetComponentDefinition<PBUiCanvasInformation>;
7325
8061
 
8062
+ /**
8063
+ * @public
8064
+ */
8065
+ export declare interface UiCanvasTexture {
8066
+ uiCanvasEntity: number;
8067
+ /** default = TextureWrapMode.Clamp */
8068
+ wrapMode?: TextureWrapMode | undefined;
8069
+ /** default = FilterMode.Bilinear */
8070
+ filterMode?: TextureFilterMode | undefined;
8071
+ }
8072
+
8073
+ /**
8074
+ * @public
8075
+ */
8076
+ export declare namespace UiCanvasTexture {
8077
+ export function encode(message: UiCanvasTexture, writer?: _m0.Writer): _m0.Writer;
8078
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): UiCanvasTexture;
8079
+ }
8080
+
7326
8081
  /**
7327
8082
  * @public
7328
8083
  */
@@ -7392,6 +8147,10 @@ export declare interface UiLabelProps {
7392
8147
  textAlign?: TextAlignType | undefined;
7393
8148
  /** Label font type. @defaultValue 'sans-serif' */
7394
8149
  font?: UiFontType | undefined;
8150
+ /** Outline width of the text. @defaultValue 0 */
8151
+ outlineWidth?: number | undefined;
8152
+ /** Outline color of the text. @defaultValue `{ r: 0, g: 0, b: 0, a: 1 }` */
8153
+ outlineColor?: PBColor4 | undefined;
7395
8154
  /** Behaviour when text reached. @defaultValue 'wrap' */
7396
8155
  textWrap?: UiTextWrapType | undefined;
7397
8156
  }
@@ -7401,6 +8160,9 @@ export declare interface UiLabelProps {
7401
8160
  */
7402
8161
  export declare type uint32 = number;
7403
8162
 
8163
+ /** @public */
8164
+ export declare const UiScrollResult: LastWriteWinElementSetComponentDefinition<PBUiScrollResult>;
8165
+
7404
8166
  /** @public */
7405
8167
  export declare const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
7406
8168
 
@@ -7473,6 +8235,26 @@ export declare interface UiTransformProps {
7473
8235
  overflow?: OverflowType;
7474
8236
  /** 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) **/
7475
8237
  pointerFilter?: PointerFilterType;
8238
+ /** The opacity property sets the opacity level for an element, it's accumulated across children @defaultValue 1 */
8239
+ opacity?: number;
8240
+ /** A reference value to identify the element, default empty */
8241
+ elementId?: string;
8242
+ /** default position=(0,0) if it aplies, a vector or a reference-id */
8243
+ scrollPosition?: PBVector2 | string;
8244
+ /** default ShowScrollBar.SSB_BOTH */
8245
+ scrollVisible?: ScrollVisibleType;
8246
+ /** default 0 */
8247
+ zIndex?: number;
8248
+ }
8249
+
8250
+ /**
8251
+ * Texture
8252
+ * @public
8253
+ */
8254
+ export declare interface UiVideoTexture {
8255
+ videoPlayerEntity: Entity;
8256
+ wrapMode?: TextureWrapType;
8257
+ filterMode?: TextureFilterType;
7476
8258
  }
7477
8259
 
7478
8260
  /**