@dcl/playground-assets 7.7.10-13856045106.commit-7f23e37 → 7.7.10-13934567813.commit-fb33ab1
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 +99 -777
- package/dist/beta.d.ts +99 -777
- package/dist/index.bundled.d.ts +99 -777
- package/dist/index.js +7 -7
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +99 -777
- package/etc/playground-assets.api.json +1641 -8487
- package/etc/playground-assets.api.md +69 -496
- package/package.json +4 -4
- package/README.md +0 -27
package/dist/beta.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
|
|
@@ -505,12 +462,6 @@ export declare interface ByteBuffer {
|
|
505
462
|
*/
|
506
463
|
export declare type Callback = () => void;
|
507
464
|
|
508
|
-
/** @public */
|
509
|
-
export declare const CameraLayer: LastWriteWinElementSetComponentDefinition<PBCameraLayer>;
|
510
|
-
|
511
|
-
/** @public */
|
512
|
-
export declare const CameraLayers: LastWriteWinElementSetComponentDefinition<PBCameraLayers>;
|
513
|
-
|
514
465
|
/** @public */
|
515
466
|
export declare const CameraMode: LastWriteWinElementSetComponentDefinition<PBCameraMode>;
|
516
467
|
|
@@ -568,39 +519,6 @@ export declare const enum CameraType {
|
|
568
519
|
|
569
520
|
export declare type Children = ReactEcs.JSX.ReactNode;
|
570
521
|
|
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
|
-
|
604
522
|
/** ColliderLayer determines the kind of collision to detect, in OR-able bit flag form. */
|
605
523
|
/**
|
606
524
|
* @public
|
@@ -1374,18 +1292,13 @@ export declare const componentDefinitionByName: {
|
|
1374
1292
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
1375
1293
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
1376
1294
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
1377
|
-
"core::CameraLayer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraLayer>>;
|
1378
|
-
"core::CameraLayers": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraLayers>>;
|
1379
1295
|
"core::CameraMode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
|
1380
1296
|
"core::CameraModeArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraModeArea>>;
|
1381
1297
|
"core::EngineInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
|
1382
|
-
"core::GlobalLight": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGlobalLight>>;
|
1383
1298
|
"core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
|
1384
1299
|
"core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
|
1385
|
-
"core::GltfNode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNode>>;
|
1386
|
-
"core::GltfNodeState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNodeState>>;
|
1387
1300
|
"core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
|
1388
|
-
"core::
|
1301
|
+
"core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
|
1389
1302
|
"core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
|
1390
1303
|
"core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
|
1391
1304
|
"core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
@@ -1395,24 +1308,19 @@ export declare const componentDefinitionByName: {
|
|
1395
1308
|
"core::PointerEvents": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
|
1396
1309
|
"core::PointerEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
|
1397
1310
|
"core::PointerLock": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerLock>>;
|
1398
|
-
"core::PrimaryPointerInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>>;
|
1399
1311
|
"core::Raycast": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
|
1400
1312
|
"core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
1401
1313
|
"core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
1402
|
-
"core::Spotlight": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSpotlight>>;
|
1403
1314
|
"core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
|
1404
|
-
"core::TextureCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextureCamera>>;
|
1405
1315
|
"core::Tween": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
|
1406
1316
|
"core::TweenSequence": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenSequence>>;
|
1407
1317
|
"core::TweenState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenState>>;
|
1408
1318
|
"core::UiBackground": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiBackground>>;
|
1409
|
-
"core::UiCanvas": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiCanvas>>;
|
1410
1319
|
"core::UiCanvasInformation": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiCanvasInformation>>;
|
1411
1320
|
"core::UiDropdown": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdown>>;
|
1412
1321
|
"core::UiDropdownResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>>;
|
1413
1322
|
"core::UiInput": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInput>>;
|
1414
1323
|
"core::UiInputResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputResult>>;
|
1415
|
-
"core::UiScrollResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiScrollResult>>;
|
1416
1324
|
"core::UiText": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiText>>;
|
1417
1325
|
"core::UiTransform": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiTransform>>;
|
1418
1326
|
"core::VideoEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBVideoEvent>>;
|
@@ -1689,11 +1597,6 @@ export declare function createInputSystem(engine: IEngine): IInputSystem;
|
|
1689
1597
|
*/
|
1690
1598
|
export declare function createPointerEventsSystem(engine: IEngine, inputSystem: IInputSystem): PointerEventsSystem;
|
1691
1599
|
|
1692
|
-
/**
|
1693
|
-
* @public
|
1694
|
-
*/
|
1695
|
-
export declare function createReactBasedUiSystem(engine: IEngine, pointerSystem: PointerEventsSystem): ReactBasedUiSystem;
|
1696
|
-
|
1697
1600
|
/**
|
1698
1601
|
* @public
|
1699
1602
|
* @returns tween helper to be used on the scene
|
@@ -1983,9 +1886,6 @@ export declare type EntityComponents = {
|
|
1983
1886
|
onMouseUp: Callback;
|
1984
1887
|
onMouseEnter: Callback;
|
1985
1888
|
onMouseLeave: Callback;
|
1986
|
-
onMouseDrag: Callback;
|
1987
|
-
onMouseDragLocked: Callback;
|
1988
|
-
onMouseDragEnd: Callback;
|
1989
1889
|
};
|
1990
1890
|
|
1991
1891
|
/** @public */
|
@@ -2137,9 +2037,6 @@ export declare type GlobalDirectionRaycastSystemOptions = {
|
|
2137
2037
|
direction?: PBVector3;
|
2138
2038
|
};
|
2139
2039
|
|
2140
|
-
/** @public */
|
2141
|
-
export declare const GlobalLight: LastWriteWinElementSetComponentDefinition<PBGlobalLight>;
|
2142
|
-
|
2143
2040
|
export declare type GlobalTargetRaycastOptions = RaycastSystemOptions & GlobalTargetRaycastSystemOptions;
|
2144
2041
|
|
2145
2042
|
export declare type GlobalTargetRaycastSystemOptions = {
|
@@ -2152,21 +2049,6 @@ export declare const GltfContainer: LastWriteWinElementSetComponentDefinition<PB
|
|
2152
2049
|
/** @public */
|
2153
2050
|
export declare const GltfContainerLoadingState: LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>;
|
2154
2051
|
|
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
|
-
|
2170
2052
|
/**
|
2171
2053
|
* @public
|
2172
2054
|
*/
|
@@ -2761,8 +2643,31 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
|
|
2761
2643
|
getOrCreateMutable(entity: Entity, initialValue?: T): T;
|
2762
2644
|
}
|
2763
2645
|
|
2764
|
-
|
2765
|
-
|
2646
|
+
export declare const LightSource: LightSourceComponentDefinitionExtended;
|
2647
|
+
|
2648
|
+
/**
|
2649
|
+
* @public
|
2650
|
+
*/
|
2651
|
+
export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
|
2652
|
+
/**
|
2653
|
+
* LightSource helper with constructor
|
2654
|
+
*/
|
2655
|
+
Type: LightSourceHelper;
|
2656
|
+
}
|
2657
|
+
|
2658
|
+
/**
|
2659
|
+
* @public
|
2660
|
+
*/
|
2661
|
+
export declare interface LightSourceHelper {
|
2662
|
+
/**
|
2663
|
+
* @returns a Light Source type
|
2664
|
+
*/
|
2665
|
+
Point: (point: PBLightSource_Point) => PBLightSource['type'];
|
2666
|
+
/**
|
2667
|
+
* @returns a Light Source type
|
2668
|
+
*/
|
2669
|
+
Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
|
2670
|
+
}
|
2766
2671
|
|
2767
2672
|
/**
|
2768
2673
|
* User key event Listeners
|
@@ -2777,12 +2682,6 @@ export declare type Listeners = {
|
|
2777
2682
|
onMouseEnter?: Callback;
|
2778
2683
|
/** triggered on mouse leave event */
|
2779
2684
|
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;
|
2786
2685
|
};
|
2787
2686
|
|
2788
2687
|
/**
|
@@ -3651,14 +3550,6 @@ export declare interface MeshColliderComponentDefinitionExtended extends LastWri
|
|
3651
3550
|
* @param colliderMask - the set of layer where the collider reacts, default: Physics and Pointer
|
3652
3551
|
*/
|
3653
3552
|
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;
|
3662
3553
|
}
|
3663
3554
|
|
3664
3555
|
export declare const MeshRenderer: MeshRendererComponentDefinitionExtended;
|
@@ -3695,14 +3586,6 @@ export declare interface MeshRendererComponentDefinitionExtended extends LastWri
|
|
3695
3586
|
* @param entity - entity to create or replace the MeshRenderer component
|
3696
3587
|
*/
|
3697
3588
|
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;
|
3706
3589
|
}
|
3707
3590
|
|
3708
3591
|
/* Excluded from this release type: MessageBus */
|
@@ -4096,25 +3979,6 @@ export declare const onVideoEvent: Observable<{
|
|
4096
3979
|
totalVideoLength: number;
|
4097
3980
|
}>;
|
4098
3981
|
|
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
|
-
|
4118
3982
|
/**
|
4119
3983
|
* @public
|
4120
3984
|
* The overflow property controls what happens to content that is too big to fit into an area
|
@@ -4341,8 +4205,6 @@ export declare namespace PBAvatarEmoteCommand {
|
|
4341
4205
|
export declare interface PBAvatarEquippedData {
|
4342
4206
|
wearableUrns: string[];
|
4343
4207
|
emoteUrns: string[];
|
4344
|
-
/** slots that will render even if hidden */
|
4345
|
-
forceRender: string[];
|
4346
4208
|
}
|
4347
4209
|
|
4348
4210
|
/**
|
@@ -4377,9 +4239,6 @@ export declare interface PBAvatarModifierArea {
|
|
4377
4239
|
excludeIds: string[];
|
4378
4240
|
/** list of modifiers to apply */
|
4379
4241
|
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;
|
4383
4242
|
}
|
4384
4243
|
|
4385
4244
|
/**
|
@@ -4436,8 +4295,6 @@ export declare interface PBAvatarShape {
|
|
4436
4295
|
wearables: string[];
|
4437
4296
|
/** available emotes (default empty) */
|
4438
4297
|
emotes: string[];
|
4439
|
-
/** slots that will render even if hidden */
|
4440
|
-
forceRender: string[];
|
4441
4298
|
}
|
4442
4299
|
|
4443
4300
|
/**
|
@@ -4472,51 +4329,6 @@ export declare namespace PBBillboard {
|
|
4472
4329
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBBillboard;
|
4473
4330
|
}
|
4474
4331
|
|
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
|
-
|
4520
4332
|
/**
|
4521
4333
|
* The CameraMode component can be used to determine whether the player is using a first-person o
|
4522
4334
|
* third-person view.
|
@@ -4539,7 +4351,7 @@ export declare namespace PBCameraMode {
|
|
4539
4351
|
|
4540
4352
|
/**
|
4541
4353
|
* The CameraModeArea component can be attached to an Entity to define a region of space where
|
4542
|
-
* the player's camera mode (1st-person
|
4354
|
+
* the player's camera mode (1st-person or 3rd-person) is overridden.
|
4543
4355
|
*
|
4544
4356
|
* The Entity's Transform position determines the center-point of the region, while its size is
|
4545
4357
|
* given as a vector in the `area` property below. The Transform rotation is applied, but the scale
|
@@ -4549,8 +4361,6 @@ export declare namespace PBCameraMode {
|
|
4549
4361
|
*
|
4550
4362
|
* Note that, while commonly used to delineate a 2D area in a scene (hence the name), the region
|
4551
4363
|
* is actually a 3D volume.
|
4552
|
-
*
|
4553
|
-
* When mode is set to CtCinematic, the cinematic_settings field must also be provided.
|
4554
4364
|
*/
|
4555
4365
|
/**
|
4556
4366
|
* @public
|
@@ -4560,9 +4370,6 @@ export declare interface PBCameraModeArea {
|
|
4560
4370
|
area: PBVector3 | undefined;
|
4561
4371
|
/** the camera mode to enforce */
|
4562
4372
|
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;
|
4566
4373
|
}
|
4567
4374
|
|
4568
4375
|
/**
|
@@ -4634,39 +4441,6 @@ export declare namespace PBEngineInfo {
|
|
4634
4441
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBEngineInfo;
|
4635
4442
|
}
|
4636
4443
|
|
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
|
-
|
4670
4444
|
/**
|
4671
4445
|
* GltfContainer loads a GLTF file (and any additional files packaged inside) attached to an Entity.
|
4672
4446
|
*
|
@@ -4702,25 +4476,6 @@ export declare namespace PBGltfContainer {
|
|
4702
4476
|
*/
|
4703
4477
|
export declare interface PBGltfContainerLoadingState {
|
4704
4478
|
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[];
|
4724
4479
|
}
|
4725
4480
|
|
4726
4481
|
/**
|
@@ -4731,170 +4486,122 @@ export declare namespace PBGltfContainerLoadingState {
|
|
4731
4486
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfContainerLoadingState;
|
4732
4487
|
}
|
4733
4488
|
|
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
4489
|
/**
|
4770
4490
|
* @public
|
4771
4491
|
*/
|
4772
|
-
export declare interface
|
4773
|
-
|
4774
|
-
|
4492
|
+
export declare interface PBInputModifier {
|
4493
|
+
mode?: {
|
4494
|
+
$case: "standard";
|
4495
|
+
standard: PBInputModifier_StandardInput;
|
4496
|
+
} | undefined;
|
4775
4497
|
}
|
4776
4498
|
|
4777
4499
|
/**
|
4778
4500
|
* @public
|
4779
4501
|
*/
|
4780
|
-
export declare namespace
|
4781
|
-
export function encode(message:
|
4782
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number):
|
4502
|
+
export declare namespace PBInputModifier {
|
4503
|
+
export function encode(message: PBInputModifier, writer?: _m0.Writer): _m0.Writer;
|
4504
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier;
|
4783
4505
|
}
|
4784
4506
|
|
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
|
-
*/
|
4507
|
+
/** when a boolean = false (default) the message is ignored and doesn't consume bandwidth */
|
4789
4508
|
/**
|
4790
4509
|
* @public
|
4791
4510
|
*/
|
4792
|
-
export declare interface
|
4793
|
-
|
4794
|
-
|
4511
|
+
export declare interface PBInputModifier_StandardInput {
|
4512
|
+
disableAll?: boolean | undefined;
|
4513
|
+
disableWalk?: boolean | undefined;
|
4514
|
+
disableJog?: boolean | undefined;
|
4515
|
+
disableRun?: boolean | undefined;
|
4516
|
+
disableJump?: boolean | undefined;
|
4517
|
+
disableEmote?: boolean | undefined;
|
4795
4518
|
}
|
4796
4519
|
|
4797
4520
|
/**
|
4798
4521
|
* @public
|
4799
4522
|
*/
|
4800
|
-
export declare namespace
|
4801
|
-
export function encode(message:
|
4802
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number):
|
4523
|
+
export declare namespace PBInputModifier_StandardInput {
|
4524
|
+
export function encode(message: PBInputModifier_StandardInput, writer?: _m0.Writer): _m0.Writer;
|
4525
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
|
4803
4526
|
}
|
4804
4527
|
|
4805
4528
|
/**
|
4806
4529
|
* @public
|
4807
4530
|
*/
|
4808
|
-
export declare interface
|
4809
|
-
|
4810
|
-
|
4811
|
-
|
4531
|
+
export declare interface PBLightSource {
|
4532
|
+
/** default = true, whether the lightSource is active or not. */
|
4533
|
+
active?: boolean | undefined;
|
4534
|
+
/** default = Color.white, the tint of the light, in RGB format where each component is a floating point value with a range from 0 to 1. */
|
4535
|
+
color?: PBColor3 | undefined;
|
4536
|
+
/** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
|
4537
|
+
brightness?: number | undefined;
|
4538
|
+
/** default = 10, how far the light travels, expressed in meters. */
|
4539
|
+
range?: number | undefined;
|
4540
|
+
type?: {
|
4541
|
+
$case: "point";
|
4542
|
+
point: PBLightSource_Point;
|
4543
|
+
} | {
|
4544
|
+
$case: "spot";
|
4545
|
+
spot: PBLightSource_Spot;
|
4812
4546
|
} | undefined;
|
4813
4547
|
}
|
4814
4548
|
|
4815
4549
|
/**
|
4816
4550
|
* @public
|
4817
4551
|
*/
|
4818
|
-
export declare namespace
|
4819
|
-
export function encode(message:
|
4820
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number):
|
4552
|
+
export declare namespace PBLightSource {
|
4553
|
+
export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
|
4554
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
|
4821
4555
|
}
|
4822
4556
|
|
4823
|
-
/** when a boolean = false (default) the message is ignored and doesn't consume bandwidth */
|
4824
4557
|
/**
|
4825
4558
|
* @public
|
4826
4559
|
*/
|
4827
|
-
export declare interface
|
4828
|
-
|
4829
|
-
|
4830
|
-
disableJog?: boolean | undefined;
|
4831
|
-
disableRun?: boolean | undefined;
|
4832
|
-
disableJump?: boolean | undefined;
|
4833
|
-
disableEmote?: boolean | undefined;
|
4560
|
+
export declare interface PBLightSource_Point {
|
4561
|
+
/** default = ShadowType.ST_NONE The type of shadow the light source supports. */
|
4562
|
+
shadow?: PBLightSource_ShadowType | undefined;
|
4834
4563
|
}
|
4835
4564
|
|
4836
4565
|
/**
|
4837
4566
|
* @public
|
4838
4567
|
*/
|
4839
|
-
export declare namespace
|
4840
|
-
export function encode(message:
|
4841
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number):
|
4568
|
+
export declare namespace PBLightSource_Point {
|
4569
|
+
export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
|
4570
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
|
4842
4571
|
}
|
4843
4572
|
|
4844
4573
|
/**
|
4845
|
-
*
|
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.
|
4574
|
+
* @public
|
4849
4575
|
*/
|
4576
|
+
export declare const enum PBLightSource_ShadowType {
|
4577
|
+
/** ST_NONE - No shadows are cast from this LightSource. */
|
4578
|
+
ST_NONE = 0,
|
4579
|
+
/** ST_SOFT - More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing. */
|
4580
|
+
ST_SOFT = 1,
|
4581
|
+
/** ST_HARD - Less realistic type of shadow but more performant, uses hard edges. */
|
4582
|
+
ST_HARD = 2
|
4583
|
+
}
|
4584
|
+
|
4850
4585
|
/**
|
4851
4586
|
* @public
|
4852
4587
|
*/
|
4853
|
-
export declare interface
|
4854
|
-
/**
|
4855
|
-
|
4856
|
-
|
4857
|
-
|
4858
|
-
|
4859
|
-
|
4860
|
-
|
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;
|
4588
|
+
export declare interface PBLightSource_Spot {
|
4589
|
+
/** default = 21.8. Inner angle can't be higher than outer angle, otherwise will default to same value. Min value is 0. Max value is 179. */
|
4590
|
+
innerAngle?: number | undefined;
|
4591
|
+
/** default = 30. Outer angle can't be lower than inner angle, otherwise will inner angle will be set to same value. Max value is 179. */
|
4592
|
+
outerAngle?: number | undefined;
|
4593
|
+
/** default = ShadowType.ST_NONE The type of shadow the light source supports. */
|
4594
|
+
shadow?: PBLightSource_ShadowType | undefined;
|
4595
|
+
/** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
|
4596
|
+
shadowMaskTexture?: TextureUnion | undefined;
|
4890
4597
|
}
|
4891
4598
|
|
4892
4599
|
/**
|
4893
4600
|
* @public
|
4894
4601
|
*/
|
4895
|
-
export declare namespace
|
4896
|
-
export function encode(message:
|
4897
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number):
|
4602
|
+
export declare namespace PBLightSource_Spot {
|
4603
|
+
export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
|
4604
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
|
4898
4605
|
}
|
4899
4606
|
|
4900
4607
|
/**
|
@@ -4928,14 +4635,6 @@ export declare interface PBMaterial {
|
|
4928
4635
|
$case: "pbr";
|
4929
4636
|
pbr: PBMaterial_PbrMaterial;
|
4930
4637
|
} | 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;
|
4939
4638
|
}
|
4940
4639
|
|
4941
4640
|
/**
|
@@ -4946,22 +4645,6 @@ export declare namespace PBMaterial {
|
|
4946
4645
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMaterial;
|
4947
4646
|
}
|
4948
4647
|
|
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
|
-
|
4965
4648
|
/**
|
4966
4649
|
* @public
|
4967
4650
|
*/
|
@@ -5058,9 +4741,6 @@ export declare interface PBMeshCollider {
|
|
5058
4741
|
} | {
|
5059
4742
|
$case: "plane";
|
5060
4743
|
plane: PBMeshCollider_PlaneMesh;
|
5061
|
-
} | {
|
5062
|
-
$case: "gltf";
|
5063
|
-
gltf: PBMeshCollider_GltfMesh;
|
5064
4744
|
} | undefined;
|
5065
4745
|
}
|
5066
4746
|
|
@@ -5106,25 +4786,6 @@ export declare namespace PBMeshCollider_CylinderMesh {
|
|
5106
4786
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshCollider_CylinderMesh;
|
5107
4787
|
}
|
5108
4788
|
|
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
|
-
|
5128
4789
|
/** PlaneMesh is a 2D rectangle described by the Entity's Transform. */
|
5129
4790
|
/**
|
5130
4791
|
* @public
|
@@ -5157,11 +4818,13 @@ export declare namespace PBMeshCollider_SphereMesh {
|
|
5157
4818
|
|
5158
4819
|
/**
|
5159
4820
|
* The MeshRenderer component renders a basic geometric shape for an Entity. It can be a cube, a
|
5160
|
-
* plane, a sphere
|
4821
|
+
* plane, a sphere or a cylinder.
|
5161
4822
|
*
|
5162
4823
|
* The cube and plane variants can include a UV texture mapping, so specific areas of a material
|
5163
4824
|
* texture are rendered on different faces of the shape. They are serialized as a sequence of 2D
|
5164
4825
|
* `float` coordinates, one for each corner of each side of each face.
|
4826
|
+
*
|
4827
|
+
* More complex shapes require the use of a `GltfContainer` component.
|
5165
4828
|
*/
|
5166
4829
|
/**
|
5167
4830
|
* @public
|
@@ -5179,9 +4842,6 @@ export declare interface PBMeshRenderer {
|
|
5179
4842
|
} | {
|
5180
4843
|
$case: "plane";
|
5181
4844
|
plane: PBMeshRenderer_PlaneMesh;
|
5182
|
-
} | {
|
5183
|
-
$case: "gltf";
|
5184
|
-
gltf: PBMeshRenderer_GltfMesh;
|
5185
4845
|
} | undefined;
|
5186
4846
|
}
|
5187
4847
|
|
@@ -5229,25 +4889,6 @@ export declare namespace PBMeshRenderer_CylinderMesh {
|
|
5229
4889
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshRenderer_CylinderMesh;
|
5230
4890
|
}
|
5231
4891
|
|
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
|
-
|
5251
4892
|
/** PlaneMesh renders a 2D rectangular shape. */
|
5252
4893
|
/**
|
5253
4894
|
* @public
|
@@ -5466,30 +5107,6 @@ export declare namespace PBPosition {
|
|
5466
5107
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPosition;
|
5467
5108
|
}
|
5468
5109
|
|
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
|
-
|
5493
5110
|
/**
|
5494
5111
|
* @public
|
5495
5112
|
*/
|
@@ -5611,39 +5228,6 @@ export declare namespace PBRealmInfo {
|
|
5611
5228
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBRealmInfo;
|
5612
5229
|
}
|
5613
5230
|
|
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
|
-
|
5647
5231
|
/**
|
5648
5232
|
* The TextShape component renders customizable floating text.
|
5649
5233
|
*
|
@@ -5708,40 +5292,6 @@ export declare namespace PBTextShape {
|
|
5708
5292
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTextShape;
|
5709
5293
|
}
|
5710
5294
|
|
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
|
-
|
5745
5295
|
/**
|
5746
5296
|
* @public
|
5747
5297
|
*/
|
@@ -5831,25 +5381,6 @@ export declare namespace PBUiBackground {
|
|
5831
5381
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiBackground;
|
5832
5382
|
}
|
5833
5383
|
|
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
|
-
|
5853
5384
|
/** This component is created by the renderer and used by the scenes to know the resolution of the UI canvas */
|
5854
5385
|
/**
|
5855
5386
|
* @public
|
@@ -5966,21 +5497,6 @@ export declare namespace PBUiInputResult {
|
|
5966
5497
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputResult;
|
5967
5498
|
}
|
5968
5499
|
|
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
|
-
|
5984
5500
|
/**
|
5985
5501
|
* @public
|
5986
5502
|
*/
|
@@ -5997,10 +5513,6 @@ export declare interface PBUiText {
|
|
5997
5513
|
fontSize?: number | undefined;
|
5998
5514
|
/** wrap text when the border is reached (default: TW_WRAP) */
|
5999
5515
|
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;
|
6004
5516
|
}
|
6005
5517
|
|
6006
5518
|
/**
|
@@ -6097,16 +5609,6 @@ export declare interface PBUiTransform {
|
|
6097
5609
|
paddingBottom: number;
|
6098
5610
|
/** default: PointerFilterMode.PFM_NONE */
|
6099
5611
|
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;
|
6110
5612
|
}
|
6111
5613
|
|
6112
5614
|
/**
|
@@ -6203,6 +5705,7 @@ export declare namespace PBVideoPlayer {
|
|
6203
5705
|
* an 'instant' transition (like using speed/time = 0)
|
6204
5706
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
6205
5707
|
* the holding entity transform).
|
5708
|
+
* * The fov defines the Field of View of the virtual camera
|
6206
5709
|
*/
|
6207
5710
|
/**
|
6208
5711
|
* @public
|
@@ -6210,6 +5713,8 @@ export declare namespace PBVideoPlayer {
|
|
6210
5713
|
export declare interface PBVirtualCamera {
|
6211
5714
|
defaultTransition?: CameraTransition | undefined;
|
6212
5715
|
lookAtEntity?: number | undefined;
|
5716
|
+
/** default: 60 */
|
5717
|
+
fov?: number | undefined;
|
6213
5718
|
}
|
6214
5719
|
|
6215
5720
|
/**
|
@@ -6236,25 +5741,6 @@ export declare namespace PBVisibilityComponent {
|
|
6236
5741
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBVisibilityComponent;
|
6237
5742
|
}
|
6238
5743
|
|
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
|
-
|
6258
5744
|
/**
|
6259
5745
|
* Represens a plane by the equation ax + by + cz + d = 0
|
6260
5746
|
* @public
|
@@ -6410,24 +5896,6 @@ export declare interface PointerEventsSystem {
|
|
6410
5896
|
* @param entity - Entity where the callback was attached
|
6411
5897
|
*/
|
6412
5898
|
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;
|
6431
5899
|
/**
|
6432
5900
|
* @public
|
6433
5901
|
* Execute callback when the user press the InputButton pointing at the entity
|
@@ -6482,37 +5950,6 @@ export declare interface PointerEventsSystem {
|
|
6482
5950
|
entity: Entity;
|
6483
5951
|
opts?: Partial<EventSystemOptions>;
|
6484
5952
|
}, 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;
|
6516
5953
|
}
|
6517
5954
|
|
6518
5955
|
/**
|
@@ -6529,10 +5966,7 @@ export declare const enum PointerEventType {
|
|
6529
5966
|
PET_UP = 0,
|
6530
5967
|
PET_DOWN = 1,
|
6531
5968
|
PET_HOVER_ENTER = 2,
|
6532
|
-
PET_HOVER_LEAVE = 3
|
6533
|
-
PET_DRAG_LOCKED = 4,
|
6534
|
-
PET_DRAG = 5,
|
6535
|
-
PET_DRAG_END = 6
|
5969
|
+
PET_HOVER_LEAVE = 3
|
6536
5970
|
}
|
6537
5971
|
|
6538
5972
|
/**
|
@@ -6552,17 +5986,6 @@ export declare type PointerFilterType = 'none' | 'block';
|
|
6552
5986
|
/** @public */
|
6553
5987
|
export declare const PointerLock: LastWriteWinElementSetComponentDefinition<PBPointerLock>;
|
6554
5988
|
|
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
|
-
|
6566
5989
|
/**
|
6567
5990
|
* Type used for defining the position of the element. i.e. margin, padding
|
6568
5991
|
* @public
|
@@ -6600,9 +6023,6 @@ export declare type PositionType = 'absolute' | 'relative';
|
|
6600
6023
|
*/
|
6601
6024
|
export declare type PositionUnit = `${number}px` | `${number}%` | number | `${number}` | ScaleUnit;
|
6602
6025
|
|
6603
|
-
/** @public */
|
6604
|
-
export declare const PrimaryPointerInfo: LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>;
|
6605
|
-
|
6606
6026
|
export declare enum ProcessMessageResultType {
|
6607
6027
|
/**
|
6608
6028
|
* Typical message and new state set.
|
@@ -7157,7 +6577,6 @@ export declare type RaycastSystemOptions = {
|
|
7157
6577
|
export declare interface ReactBasedUiSystem {
|
7158
6578
|
destroy(): void;
|
7159
6579
|
setUiRenderer(ui: UiComponent): void;
|
7160
|
-
setTextureRenderer(entity: Entity, ui: UiComponent): void;
|
7161
6580
|
}
|
7162
6581
|
|
7163
6582
|
/**
|
@@ -7611,43 +7030,6 @@ export declare namespace Schemas {
|
|
7611
7030
|
}) => void;
|
7612
7031
|
}
|
7613
7032
|
|
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
|
-
|
7651
7033
|
/**
|
7652
7034
|
* @public
|
7653
7035
|
*/
|
@@ -7655,9 +7037,6 @@ export declare interface Spec {
|
|
7655
7037
|
[key: string]: ISchema;
|
7656
7038
|
}
|
7657
7039
|
|
7658
|
-
/** @public */
|
7659
|
-
export declare const Spotlight: LastWriteWinElementSetComponentDefinition<PBSpotlight>;
|
7660
|
-
|
7661
7040
|
/* Excluded from this release type: SyncComponents */
|
7662
7041
|
|
7663
7042
|
/**
|
@@ -7727,9 +7106,6 @@ export declare namespace Texture {
|
|
7727
7106
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): Texture;
|
7728
7107
|
}
|
7729
7108
|
|
7730
|
-
/** @public */
|
7731
|
-
export declare const TextureCamera: LastWriteWinElementSetComponentDefinition<PBTextureCamera>;
|
7732
|
-
|
7733
7109
|
/**
|
7734
7110
|
* @public
|
7735
7111
|
*/
|
@@ -7822,9 +7198,6 @@ export declare interface TextureUnion {
|
|
7822
7198
|
} | {
|
7823
7199
|
$case: "videoTexture";
|
7824
7200
|
videoTexture: VideoTexture;
|
7825
|
-
} | {
|
7826
|
-
$case: "uiTexture";
|
7827
|
-
uiTexture: UiCanvasTexture;
|
7828
7201
|
} | undefined;
|
7829
7202
|
}
|
7830
7203
|
|
@@ -8032,8 +7405,6 @@ export declare interface UiBackgroundProps {
|
|
8032
7405
|
uvs?: number[];
|
8033
7406
|
/** AvatarTexture for the background */
|
8034
7407
|
avatarTexture?: UiAvatarTexture;
|
8035
|
-
/** VideoTexture for the background */
|
8036
|
-
videoTexture?: UiVideoTexture;
|
8037
7408
|
/** Texture for the background */
|
8038
7409
|
texture?: UiTexture;
|
8039
7410
|
}
|
@@ -8053,31 +7424,9 @@ export declare interface UiButtonProps extends UiLabelProps, EntityPropTypes {
|
|
8053
7424
|
disabled?: boolean;
|
8054
7425
|
}
|
8055
7426
|
|
8056
|
-
/** @public */
|
8057
|
-
export declare const UiCanvas: LastWriteWinElementSetComponentDefinition<PBUiCanvas>;
|
8058
|
-
|
8059
7427
|
/** @public */
|
8060
7428
|
export declare const UiCanvasInformation: LastWriteWinElementSetComponentDefinition<PBUiCanvasInformation>;
|
8061
7429
|
|
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
|
-
|
8081
7430
|
/**
|
8082
7431
|
* @public
|
8083
7432
|
*/
|
@@ -8147,10 +7496,6 @@ export declare interface UiLabelProps {
|
|
8147
7496
|
textAlign?: TextAlignType | undefined;
|
8148
7497
|
/** Label font type. @defaultValue 'sans-serif' */
|
8149
7498
|
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;
|
8154
7499
|
/** Behaviour when text reached. @defaultValue 'wrap' */
|
8155
7500
|
textWrap?: UiTextWrapType | undefined;
|
8156
7501
|
}
|
@@ -8160,9 +7505,6 @@ export declare interface UiLabelProps {
|
|
8160
7505
|
*/
|
8161
7506
|
export declare type uint32 = number;
|
8162
7507
|
|
8163
|
-
/** @public */
|
8164
|
-
export declare const UiScrollResult: LastWriteWinElementSetComponentDefinition<PBUiScrollResult>;
|
8165
|
-
|
8166
7508
|
/** @public */
|
8167
7509
|
export declare const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
|
8168
7510
|
|
@@ -8235,26 +7577,6 @@ export declare interface UiTransformProps {
|
|
8235
7577
|
overflow?: OverflowType;
|
8236
7578
|
/** 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) **/
|
8237
7579
|
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;
|
8258
7580
|
}
|
8259
7581
|
|
8260
7582
|
/**
|