@dcl/playground-assets 7.7.10-13859848918.commit-407cb6b → 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 +103 -799
- package/dist/beta.d.ts +103 -799
- package/dist/index.bundled.d.ts +103 -799
- 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 +103 -799
- package/etc/playground-assets.api.json +2898 -9886
- package/etc/playground-assets.api.md +71 -524
- package/package.json +4 -4
- package/README.md +0 -27
package/dist/index.bundled.d.ts
CHANGED
@@ -178,32 +178,11 @@ 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
|
|
196
|
-
|
197
|
-
|
198
|
-
/**
|
199
|
-
* @public
|
200
|
-
*/
|
201
|
-
export declare interface AvatarEquippedDataComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<AvatarEquippedDataType> {
|
202
|
-
}
|
203
|
-
|
204
|
-
export declare type AvatarEquippedDataType = Omit<PBAvatarEquippedData, 'forceRender'> & {
|
205
|
-
forceRender?: string[] | undefined;
|
206
|
-
};
|
184
|
+
/** @public */
|
185
|
+
export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
207
186
|
|
208
187
|
/** @public */
|
209
188
|
export declare const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
|
@@ -219,48 +198,8 @@ export declare const enum AvatarModifierType {
|
|
219
198
|
AMT_DISABLE_PASSPORTS = 1
|
220
199
|
}
|
221
200
|
|
222
|
-
/**
|
223
|
-
|
224
|
-
*/
|
225
|
-
export declare interface AvatarMovementSettings {
|
226
|
-
controlMode?: AvatarControlType | undefined;
|
227
|
-
/** if not explicitly set, the following properties default to user's preference settings */
|
228
|
-
runSpeed?: number | undefined;
|
229
|
-
/** how fast the player gets up to speed or comes to rest. higher = more responsive */
|
230
|
-
friction?: number | undefined;
|
231
|
-
/** how fast the player accelerates vertically when not on a solid surface, in m/s. should normally be negative */
|
232
|
-
gravity?: number | undefined;
|
233
|
-
/** how high the player can jump, in meters. should normally be positive. gravity must have the same sign for jumping to be possible */
|
234
|
-
jumpHeight?: number | undefined;
|
235
|
-
/** max fall speed in m/s. should normally be negative */
|
236
|
-
maxFallSpeed?: number | undefined;
|
237
|
-
/** speed the player turns in tank mode, in radians/s */
|
238
|
-
turnSpeed?: number | undefined;
|
239
|
-
/** speed the player walks at, in m/s */
|
240
|
-
walkSpeed?: number | undefined;
|
241
|
-
/** 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 */
|
242
|
-
allowWeightedMovement?: boolean | undefined;
|
243
|
-
}
|
244
|
-
|
245
|
-
/**
|
246
|
-
* @public
|
247
|
-
*/
|
248
|
-
export declare namespace AvatarMovementSettings {
|
249
|
-
export function encode(message: AvatarMovementSettings, writer?: _m0.Writer): _m0.Writer;
|
250
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): AvatarMovementSettings;
|
251
|
-
}
|
252
|
-
|
253
|
-
export declare const AvatarShape: AvatarShapeComponentDefinitionExtended;
|
254
|
-
|
255
|
-
/**
|
256
|
-
* @public
|
257
|
-
*/
|
258
|
-
export declare interface AvatarShapeComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<AvatarShapeType> {
|
259
|
-
}
|
260
|
-
|
261
|
-
export declare type AvatarShapeType = Omit<PBAvatarShape, 'forceRender'> & {
|
262
|
-
forceRender?: string[] | undefined;
|
263
|
-
};
|
201
|
+
/** @public */
|
202
|
+
export declare const AvatarShape: LastWriteWinElementSetComponentDefinition<PBAvatarShape>;
|
264
203
|
|
265
204
|
/**
|
266
205
|
* @public
|
@@ -523,12 +462,6 @@ export declare interface ByteBuffer {
|
|
523
462
|
*/
|
524
463
|
export declare type Callback = () => void;
|
525
464
|
|
526
|
-
/** @public */
|
527
|
-
export declare const CameraLayer: LastWriteWinElementSetComponentDefinition<PBCameraLayer>;
|
528
|
-
|
529
|
-
/** @public */
|
530
|
-
export declare const CameraLayers: LastWriteWinElementSetComponentDefinition<PBCameraLayers>;
|
531
|
-
|
532
465
|
/** @public */
|
533
466
|
export declare const CameraMode: LastWriteWinElementSetComponentDefinition<PBCameraMode>;
|
534
467
|
|
@@ -586,39 +519,6 @@ export declare const enum CameraType {
|
|
586
519
|
|
587
520
|
export declare type Children = ReactEcs.JSX.ReactNode;
|
588
521
|
|
589
|
-
/**
|
590
|
-
* @public
|
591
|
-
*/
|
592
|
-
export declare interface CinematicSettings {
|
593
|
-
/** Entity that defines the cinematic camera transform. */
|
594
|
-
cameraEntity: number;
|
595
|
-
/**
|
596
|
-
* Position -> camera's position
|
597
|
-
* Rotation -> camera's direction
|
598
|
-
* scale.z -> zoom level
|
599
|
-
* scale.x and scale.y -> unused
|
600
|
-
*/
|
601
|
-
allowManualRotation?: boolean | undefined;
|
602
|
-
/** how far the camera can rotate around the y-axis / look left/right, in radians. default unrestricted */
|
603
|
-
yawRange?: number | undefined;
|
604
|
-
/** how far the camera can rotate around the x-axis / look up-down, in radians. default unrestricted */
|
605
|
-
pitchRange?: number | undefined;
|
606
|
-
/** note: cameras can never look up/down further than Vec3::Y */
|
607
|
-
rollRange?: number | undefined;
|
608
|
-
/** minimum zoom level. must be greater than 0. defaults to the input zoom level */
|
609
|
-
zoomMin?: number | undefined;
|
610
|
-
/** maximum zoom level. must be greater than 0. defaults to the input zoom level */
|
611
|
-
zoomMax?: number | undefined;
|
612
|
-
}
|
613
|
-
|
614
|
-
/**
|
615
|
-
* @public
|
616
|
-
*/
|
617
|
-
export declare namespace CinematicSettings {
|
618
|
-
export function encode(message: CinematicSettings, writer?: _m0.Writer): _m0.Writer;
|
619
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): CinematicSettings;
|
620
|
-
}
|
621
|
-
|
622
522
|
/** ColliderLayer determines the kind of collision to detect, in OR-able bit flag form. */
|
623
523
|
/**
|
624
524
|
* @public
|
@@ -1392,18 +1292,13 @@ export declare const componentDefinitionByName: {
|
|
1392
1292
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
1393
1293
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
1394
1294
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
1395
|
-
"core::CameraLayer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraLayer>>;
|
1396
|
-
"core::CameraLayers": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraLayers>>;
|
1397
1295
|
"core::CameraMode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
|
1398
1296
|
"core::CameraModeArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraModeArea>>;
|
1399
1297
|
"core::EngineInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
|
1400
|
-
"core::GlobalLight": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGlobalLight>>;
|
1401
1298
|
"core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
|
1402
1299
|
"core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
|
1403
|
-
"core::GltfNode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNode>>;
|
1404
|
-
"core::GltfNodeState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNodeState>>;
|
1405
1300
|
"core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
|
1406
|
-
"core::
|
1301
|
+
"core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
|
1407
1302
|
"core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
|
1408
1303
|
"core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
|
1409
1304
|
"core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
@@ -1413,24 +1308,19 @@ export declare const componentDefinitionByName: {
|
|
1413
1308
|
"core::PointerEvents": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
|
1414
1309
|
"core::PointerEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
|
1415
1310
|
"core::PointerLock": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerLock>>;
|
1416
|
-
"core::PrimaryPointerInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>>;
|
1417
1311
|
"core::Raycast": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
|
1418
1312
|
"core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
1419
1313
|
"core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
1420
|
-
"core::Spotlight": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSpotlight>>;
|
1421
1314
|
"core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
|
1422
|
-
"core::TextureCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextureCamera>>;
|
1423
1315
|
"core::Tween": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
|
1424
1316
|
"core::TweenSequence": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenSequence>>;
|
1425
1317
|
"core::TweenState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenState>>;
|
1426
1318
|
"core::UiBackground": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiBackground>>;
|
1427
|
-
"core::UiCanvas": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiCanvas>>;
|
1428
1319
|
"core::UiCanvasInformation": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiCanvasInformation>>;
|
1429
1320
|
"core::UiDropdown": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdown>>;
|
1430
1321
|
"core::UiDropdownResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>>;
|
1431
1322
|
"core::UiInput": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInput>>;
|
1432
1323
|
"core::UiInputResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputResult>>;
|
1433
|
-
"core::UiScrollResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiScrollResult>>;
|
1434
1324
|
"core::UiText": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiText>>;
|
1435
1325
|
"core::UiTransform": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiTransform>>;
|
1436
1326
|
"core::VideoEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBVideoEvent>>;
|
@@ -1707,11 +1597,6 @@ export declare function createInputSystem(engine: IEngine): IInputSystem;
|
|
1707
1597
|
*/
|
1708
1598
|
export declare function createPointerEventsSystem(engine: IEngine, inputSystem: IInputSystem): PointerEventsSystem;
|
1709
1599
|
|
1710
|
-
/**
|
1711
|
-
* @public
|
1712
|
-
*/
|
1713
|
-
export declare function createReactBasedUiSystem(engine: IEngine, pointerSystem: PointerEventsSystem): ReactBasedUiSystem;
|
1714
|
-
|
1715
1600
|
/**
|
1716
1601
|
* @public
|
1717
1602
|
* @returns tween helper to be used on the scene
|
@@ -2001,9 +1886,6 @@ export declare type EntityComponents = {
|
|
2001
1886
|
onMouseUp: Callback;
|
2002
1887
|
onMouseEnter: Callback;
|
2003
1888
|
onMouseLeave: Callback;
|
2004
|
-
onMouseDrag: Callback;
|
2005
|
-
onMouseDragLocked: Callback;
|
2006
|
-
onMouseDragEnd: Callback;
|
2007
1889
|
};
|
2008
1890
|
|
2009
1891
|
/** @public */
|
@@ -2155,9 +2037,6 @@ export declare type GlobalDirectionRaycastSystemOptions = {
|
|
2155
2037
|
direction?: PBVector3;
|
2156
2038
|
};
|
2157
2039
|
|
2158
|
-
/** @public */
|
2159
|
-
export declare const GlobalLight: LastWriteWinElementSetComponentDefinition<PBGlobalLight>;
|
2160
|
-
|
2161
2040
|
export declare type GlobalTargetRaycastOptions = RaycastSystemOptions & GlobalTargetRaycastSystemOptions;
|
2162
2041
|
|
2163
2042
|
export declare type GlobalTargetRaycastSystemOptions = {
|
@@ -2170,21 +2049,6 @@ export declare const GltfContainer: LastWriteWinElementSetComponentDefinition<PB
|
|
2170
2049
|
/** @public */
|
2171
2050
|
export declare const GltfContainerLoadingState: LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>;
|
2172
2051
|
|
2173
|
-
/** @public */
|
2174
|
-
export declare const GltfNode: LastWriteWinElementSetComponentDefinition<PBGltfNode>;
|
2175
|
-
|
2176
|
-
/** @public */
|
2177
|
-
export declare const GltfNodeState: LastWriteWinElementSetComponentDefinition<PBGltfNodeState>;
|
2178
|
-
|
2179
|
-
/**
|
2180
|
-
* @public
|
2181
|
-
*/
|
2182
|
-
export declare const enum GltfNodeStateValue {
|
2183
|
-
GNSV_PENDING = 0,
|
2184
|
-
GNSV_FAILED = 1,
|
2185
|
-
GNSV_READY = 2
|
2186
|
-
}
|
2187
|
-
|
2188
2052
|
/**
|
2189
2053
|
* @public
|
2190
2054
|
*/
|
@@ -2779,8 +2643,31 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
|
|
2779
2643
|
getOrCreateMutable(entity: Entity, initialValue?: T): T;
|
2780
2644
|
}
|
2781
2645
|
|
2782
|
-
|
2783
|
-
|
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
|
+
}
|
2784
2671
|
|
2785
2672
|
/**
|
2786
2673
|
* User key event Listeners
|
@@ -2795,12 +2682,6 @@ export declare type Listeners = {
|
|
2795
2682
|
onMouseEnter?: Callback;
|
2796
2683
|
/** triggered on mouse leave event */
|
2797
2684
|
onMouseLeave?: Callback;
|
2798
|
-
/** triggered on mouse drag event */
|
2799
|
-
onMouseDrag?: Callback;
|
2800
|
-
/** triggered on mouse drag event */
|
2801
|
-
onMouseDragLocked?: Callback;
|
2802
|
-
/** triggered on mouse drag event */
|
2803
|
-
onMouseDragEnd?: Callback;
|
2804
2685
|
};
|
2805
2686
|
|
2806
2687
|
/**
|
@@ -3669,14 +3550,6 @@ export declare interface MeshColliderComponentDefinitionExtended extends LastWri
|
|
3669
3550
|
* @param colliderMask - the set of layer where the collider reacts, default: Physics and Pointer
|
3670
3551
|
*/
|
3671
3552
|
setSphere(entity: Entity, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
|
3672
|
-
/**
|
3673
|
-
* @public
|
3674
|
-
* Set a gltf internal mesh in the MeshCollider component
|
3675
|
-
* @param entity - entity to create or replace the MeshRenderer component
|
3676
|
-
* @param source - the path to the gltf
|
3677
|
-
* @param meshName - the name of the mesh in the gltf
|
3678
|
-
*/
|
3679
|
-
setGltfMesh(entity: Entity, source: string, meshName: string, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
|
3680
3553
|
}
|
3681
3554
|
|
3682
3555
|
export declare const MeshRenderer: MeshRendererComponentDefinitionExtended;
|
@@ -3713,14 +3586,6 @@ export declare interface MeshRendererComponentDefinitionExtended extends LastWri
|
|
3713
3586
|
* @param entity - entity to create or replace the MeshRenderer component
|
3714
3587
|
*/
|
3715
3588
|
setSphere(entity: Entity): void;
|
3716
|
-
/**
|
3717
|
-
* @public
|
3718
|
-
* Set a gltf internal mesh in the MeshRenderer component
|
3719
|
-
* @param entity - entity to create or replace the MeshRenderer component
|
3720
|
-
* @param source - the path to the gltf
|
3721
|
-
* @param meshName - the name of the mesh in the gltf
|
3722
|
-
*/
|
3723
|
-
setGltfMesh(entity: Entity, source: string, meshName: string): void;
|
3724
3589
|
}
|
3725
3590
|
|
3726
3591
|
/* Excluded from this release type: MessageBus */
|
@@ -4114,25 +3979,6 @@ export declare const onVideoEvent: Observable<{
|
|
4114
3979
|
totalVideoLength: number;
|
4115
3980
|
}>;
|
4116
3981
|
|
4117
|
-
/**
|
4118
|
-
* @public
|
4119
|
-
*/
|
4120
|
-
export declare interface Orthographic {
|
4121
|
-
/**
|
4122
|
-
* vertical extent of the visible range in meters
|
4123
|
-
* defaults to 4m
|
4124
|
-
*/
|
4125
|
-
verticalRange?: number | undefined;
|
4126
|
-
}
|
4127
|
-
|
4128
|
-
/**
|
4129
|
-
* @public
|
4130
|
-
*/
|
4131
|
-
export declare namespace Orthographic {
|
4132
|
-
export function encode(message: Orthographic, writer?: _m0.Writer): _m0.Writer;
|
4133
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): Orthographic;
|
4134
|
-
}
|
4135
|
-
|
4136
3982
|
/**
|
4137
3983
|
* @public
|
4138
3984
|
* The overflow property controls what happens to content that is too big to fit into an area
|
@@ -4359,8 +4205,6 @@ export declare namespace PBAvatarEmoteCommand {
|
|
4359
4205
|
export declare interface PBAvatarEquippedData {
|
4360
4206
|
wearableUrns: string[];
|
4361
4207
|
emoteUrns: string[];
|
4362
|
-
/** slots that will render even if hidden */
|
4363
|
-
forceRender: string[];
|
4364
4208
|
}
|
4365
4209
|
|
4366
4210
|
/**
|
@@ -4395,9 +4239,6 @@ export declare interface PBAvatarModifierArea {
|
|
4395
4239
|
excludeIds: string[];
|
4396
4240
|
/** list of modifiers to apply */
|
4397
4241
|
modifiers: AvatarModifierType[];
|
4398
|
-
movementSettings?: AvatarMovementSettings | undefined;
|
4399
|
-
/** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
|
4400
|
-
useColliderRange?: boolean | undefined;
|
4401
4242
|
}
|
4402
4243
|
|
4403
4244
|
/**
|
@@ -4454,8 +4295,6 @@ export declare interface PBAvatarShape {
|
|
4454
4295
|
wearables: string[];
|
4455
4296
|
/** available emotes (default empty) */
|
4456
4297
|
emotes: string[];
|
4457
|
-
/** slots that will render even if hidden */
|
4458
|
-
forceRender: string[];
|
4459
4298
|
}
|
4460
4299
|
|
4461
4300
|
/**
|
@@ -4490,51 +4329,6 @@ export declare namespace PBBillboard {
|
|
4490
4329
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBBillboard;
|
4491
4330
|
}
|
4492
4331
|
|
4493
|
-
/**
|
4494
|
-
* @public
|
4495
|
-
*/
|
4496
|
-
export declare interface PBCameraLayer {
|
4497
|
-
/**
|
4498
|
-
* layer to which these settings apply. must be > 0
|
4499
|
-
* Layer 0 is the default "real world" layer viewed by the player and cannot be modified.
|
4500
|
-
*/
|
4501
|
-
layer: number;
|
4502
|
-
/** should the sun light affect this layer? default false */
|
4503
|
-
directionalLight?: boolean | undefined;
|
4504
|
-
/** should this layer show player avatars? default false */
|
4505
|
-
showAvatars?: boolean | undefined;
|
4506
|
-
/** should this layer show the sky? default false */
|
4507
|
-
showSkybox?: boolean | undefined;
|
4508
|
-
/** should this layer show distance fog? default false */
|
4509
|
-
showFog?: boolean | undefined;
|
4510
|
-
/** ambient light overrides for this layer. default -> use same as main camera */
|
4511
|
-
ambientColorOverride?: PBColor3 | undefined;
|
4512
|
-
ambientBrightnessOverride?: number | undefined;
|
4513
|
-
}
|
4514
|
-
|
4515
|
-
/**
|
4516
|
-
* @public
|
4517
|
-
*/
|
4518
|
-
export declare namespace PBCameraLayer {
|
4519
|
-
export function encode(message: PBCameraLayer, writer?: _m0.Writer): _m0.Writer;
|
4520
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBCameraLayer;
|
4521
|
-
}
|
4522
|
-
|
4523
|
-
/**
|
4524
|
-
* @public
|
4525
|
-
*/
|
4526
|
-
export declare interface PBCameraLayers {
|
4527
|
-
layers: number[];
|
4528
|
-
}
|
4529
|
-
|
4530
|
-
/**
|
4531
|
-
* @public
|
4532
|
-
*/
|
4533
|
-
export declare namespace PBCameraLayers {
|
4534
|
-
export function encode(message: PBCameraLayers, writer?: _m0.Writer): _m0.Writer;
|
4535
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBCameraLayers;
|
4536
|
-
}
|
4537
|
-
|
4538
4332
|
/**
|
4539
4333
|
* The CameraMode component can be used to determine whether the player is using a first-person o
|
4540
4334
|
* third-person view.
|
@@ -4557,7 +4351,7 @@ export declare namespace PBCameraMode {
|
|
4557
4351
|
|
4558
4352
|
/**
|
4559
4353
|
* The CameraModeArea component can be attached to an Entity to define a region of space where
|
4560
|
-
* the player's camera mode (1st-person
|
4354
|
+
* the player's camera mode (1st-person or 3rd-person) is overridden.
|
4561
4355
|
*
|
4562
4356
|
* The Entity's Transform position determines the center-point of the region, while its size is
|
4563
4357
|
* given as a vector in the `area` property below. The Transform rotation is applied, but the scale
|
@@ -4567,8 +4361,6 @@ export declare namespace PBCameraMode {
|
|
4567
4361
|
*
|
4568
4362
|
* Note that, while commonly used to delineate a 2D area in a scene (hence the name), the region
|
4569
4363
|
* is actually a 3D volume.
|
4570
|
-
*
|
4571
|
-
* When mode is set to CtCinematic, the cinematic_settings field must also be provided.
|
4572
4364
|
*/
|
4573
4365
|
/**
|
4574
4366
|
* @public
|
@@ -4578,9 +4370,6 @@ export declare interface PBCameraModeArea {
|
|
4578
4370
|
area: PBVector3 | undefined;
|
4579
4371
|
/** the camera mode to enforce */
|
4580
4372
|
mode: CameraType;
|
4581
|
-
cinematicSettings?: CinematicSettings | undefined;
|
4582
|
-
/** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
|
4583
|
-
useColliderRange?: boolean | undefined;
|
4584
4373
|
}
|
4585
4374
|
|
4586
4375
|
/**
|
@@ -4652,39 +4441,6 @@ export declare namespace PBEngineInfo {
|
|
4652
4441
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBEngineInfo;
|
4653
4442
|
}
|
4654
4443
|
|
4655
|
-
/**
|
4656
|
-
* defines the global scene light settings. must be added to the scene root.
|
4657
|
-
* to control sunlight color, intensity, shadows etc, you can also add a PBLight to the scene root.
|
4658
|
-
*/
|
4659
|
-
/**
|
4660
|
-
* @public
|
4661
|
-
*/
|
4662
|
-
export declare interface PBGlobalLight {
|
4663
|
-
/**
|
4664
|
-
* the direction the directional light shines in.
|
4665
|
-
* default depends on time of day and explorer implementation
|
4666
|
-
*/
|
4667
|
-
direction?: PBVector3 | undefined;
|
4668
|
-
/**
|
4669
|
-
* ambient light color
|
4670
|
-
* default: White
|
4671
|
-
*/
|
4672
|
-
ambientColor?: PBColor3 | undefined;
|
4673
|
-
/**
|
4674
|
-
* ambient light intensity. the explorer default ambient brightness is multiplied by this non-physical quantity.
|
4675
|
-
* default 1
|
4676
|
-
*/
|
4677
|
-
ambientBrightness?: number | undefined;
|
4678
|
-
}
|
4679
|
-
|
4680
|
-
/**
|
4681
|
-
* @public
|
4682
|
-
*/
|
4683
|
-
export declare namespace PBGlobalLight {
|
4684
|
-
export function encode(message: PBGlobalLight, writer?: _m0.Writer): _m0.Writer;
|
4685
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGlobalLight;
|
4686
|
-
}
|
4687
|
-
|
4688
4444
|
/**
|
4689
4445
|
* GltfContainer loads a GLTF file (and any additional files packaged inside) attached to an Entity.
|
4690
4446
|
*
|
@@ -4720,25 +4476,6 @@ export declare namespace PBGltfContainer {
|
|
4720
4476
|
*/
|
4721
4477
|
export declare interface PBGltfContainerLoadingState {
|
4722
4478
|
currentState: LoadingState;
|
4723
|
-
/** all node paths in the gltf, which can be used with a GltfNode to inspect and modify the gltf contents */
|
4724
|
-
nodePaths: string[];
|
4725
|
-
/** all meshes in the gltf. unnamed meshes will be auto-assigned a name of the form `MeshX` or `MeshX/PrimitiveY` */
|
4726
|
-
meshNames: string[];
|
4727
|
-
/**
|
4728
|
-
* where X is the mesh index and Y is the primitive index (and there is more than 1 primitive). note this may
|
4729
|
-
* conflict with manually named meshes - to avoid any issues make sure all your meshes are explicitly named.
|
4730
|
-
*/
|
4731
|
-
materialNames: string[];
|
4732
|
-
/**
|
4733
|
-
* X is the material index. note this may conflict with manually named materials - to avoid any issues make
|
4734
|
-
* sure all your materials are explicitly named.
|
4735
|
-
*/
|
4736
|
-
skinNames: string[];
|
4737
|
-
/**
|
4738
|
-
* X is the skin index. note this may conflict with manually named skins - to avoid any issues make sure all
|
4739
|
-
* your skins are explicitly named.
|
4740
|
-
*/
|
4741
|
-
animationNames: string[];
|
4742
4479
|
}
|
4743
4480
|
|
4744
4481
|
/**
|
@@ -4749,170 +4486,122 @@ export declare namespace PBGltfContainerLoadingState {
|
|
4749
4486
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfContainerLoadingState;
|
4750
4487
|
}
|
4751
4488
|
|
4752
|
-
/**
|
4753
|
-
* a GltfNode links a scene entity with a node from within a gltf, allowing the scene to inspect it or modify it.
|
4754
|
-
* This component must be added to a direct child of an entity with a PBGltfContainer component, or
|
4755
|
-
* to a direct child of another entity with a GltfNode component, and the referenced gltf node must be a descendent of the gltf node
|
4756
|
-
* in the parent.
|
4757
|
-
* The name must match the path of one of the nodes within the Gltf. These are available on the GltfContainerLoadingState component.
|
4758
|
-
*
|
4759
|
-
* The renderer will attach a PBGltfNodeState to the entity describing the state. Once the state is `GNS_READY`,
|
4760
|
-
* - the `Transform` will be updated to match the position of the node within the gltf (relative to the gltf root, or the parent node),
|
4761
|
-
* - a `MeshRenderer` with a GltfMesh mesh type will be added (if the gltf node has a mesh).
|
4762
|
-
* - a `MeshCollider` with a GltfMesh mesh type will be added (if the gltf node has a collider).
|
4763
|
-
* - a `Material` component including a GltfMaterial reference will be added (if the gltf node has a material).
|
4764
|
-
*
|
4765
|
-
* After creation, if an animation moves the node, the `Transform` will be updated.
|
4766
|
-
*
|
4767
|
-
* From the scene, you can modify various components to alter the gltf node:
|
4768
|
-
* - modifying the `Transform` position/rotation/scale will move the node. The position is interpreted relative to the gltf root (or parent node),
|
4769
|
-
* regardless of any intermediate gltf node hierarchy.
|
4770
|
-
* If an animation is playing, the animation takes priority and the scene entity's position will be updated to match the animation.
|
4771
|
-
* - `Visibility` can be added to hide or show the node and it's children in the gltf hierarchy.
|
4772
|
-
* - `MeshRenderer` can be added/modified/removed to create/modify/remove a mesh on the node.
|
4773
|
-
* - `MeshCollider` can be added/modified/removed to create/modify/remove a collider on the node.
|
4774
|
-
* - `Material` can be added or modified to change the material properties. If the gltf node has a material, the original material will be
|
4775
|
-
* 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
|
4776
|
-
* PBMaterial will be maintained.
|
4777
|
-
*
|
4778
|
-
* The scene can add additional entities as children to the gltf node, but structural modifications of the gltf are not possible:
|
4779
|
-
* - changing the scene hierarchy will not change the gltf node hierarchy. Moving the entity out of the gltf will sever the link and
|
4780
|
-
* change the state to `GNS_FAILED`.
|
4781
|
-
* - deleting the scene entity will not delete the gltf node.
|
4782
|
-
*
|
4783
|
-
* Removing the GltfNode will revert any changes to the original gltf. If the GltfNode component is removed and the mesh/collider/material
|
4784
|
-
* are not removed, this will result in a duplication of these components as the previously-linked entity will retain it's components and
|
4785
|
-
* the gltf node will also be displayed.
|
4786
|
-
*/
|
4787
4489
|
/**
|
4788
4490
|
* @public
|
4789
4491
|
*/
|
4790
|
-
export declare interface
|
4791
|
-
|
4792
|
-
|
4492
|
+
export declare interface PBInputModifier {
|
4493
|
+
mode?: {
|
4494
|
+
$case: "standard";
|
4495
|
+
standard: PBInputModifier_StandardInput;
|
4496
|
+
} | undefined;
|
4793
4497
|
}
|
4794
4498
|
|
4795
4499
|
/**
|
4796
4500
|
* @public
|
4797
4501
|
*/
|
4798
|
-
export declare namespace
|
4799
|
-
export function encode(message:
|
4800
|
-
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;
|
4801
4505
|
}
|
4802
4506
|
|
4803
|
-
/**
|
4804
|
-
* The state of a linked gltf node.
|
4805
|
-
* If the state is GNSV_FAILED, the renderer may describe the failure in the error string.
|
4806
|
-
*/
|
4507
|
+
/** when a boolean = false (default) the message is ignored and doesn't consume bandwidth */
|
4807
4508
|
/**
|
4808
4509
|
* @public
|
4809
4510
|
*/
|
4810
|
-
export declare interface
|
4811
|
-
|
4812
|
-
|
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;
|
4813
4518
|
}
|
4814
4519
|
|
4815
4520
|
/**
|
4816
4521
|
* @public
|
4817
4522
|
*/
|
4818
|
-
export declare namespace
|
4819
|
-
export function encode(message:
|
4820
|
-
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;
|
4821
4526
|
}
|
4822
4527
|
|
4823
4528
|
/**
|
4824
4529
|
* @public
|
4825
4530
|
*/
|
4826
|
-
export declare interface
|
4827
|
-
|
4828
|
-
|
4829
|
-
|
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;
|
4830
4546
|
} | undefined;
|
4831
4547
|
}
|
4832
4548
|
|
4833
4549
|
/**
|
4834
4550
|
* @public
|
4835
4551
|
*/
|
4836
|
-
export declare namespace
|
4837
|
-
export function encode(message:
|
4838
|
-
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;
|
4839
4555
|
}
|
4840
4556
|
|
4841
|
-
/** when a boolean = false (default) the message is ignored and doesn't consume bandwidth */
|
4842
4557
|
/**
|
4843
4558
|
* @public
|
4844
4559
|
*/
|
4845
|
-
export declare interface
|
4846
|
-
|
4847
|
-
|
4848
|
-
disableJog?: boolean | undefined;
|
4849
|
-
disableRun?: boolean | undefined;
|
4850
|
-
disableJump?: boolean | undefined;
|
4851
|
-
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;
|
4852
4563
|
}
|
4853
4564
|
|
4854
4565
|
/**
|
4855
4566
|
* @public
|
4856
4567
|
*/
|
4857
|
-
export declare namespace
|
4858
|
-
export function encode(message:
|
4859
|
-
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;
|
4860
4571
|
}
|
4861
4572
|
|
4862
4573
|
/**
|
4863
|
-
*
|
4864
|
-
* the world has a default directional light (like sunlight) which can be overridden by adding the light component to the scene root.
|
4865
|
-
* a PBGlobalLight component can also be added to the root to control the directional light direction.
|
4866
|
-
* point lights (lightbulbs) or spotlights can be created by attaching the light component to non-root entities.
|
4574
|
+
* @public
|
4867
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
|
+
|
4868
4585
|
/**
|
4869
4586
|
* @public
|
4870
4587
|
*/
|
4871
|
-
export declare interface
|
4872
|
-
/**
|
4873
|
-
|
4874
|
-
|
4875
|
-
|
4876
|
-
|
4877
|
-
|
4878
|
-
|
4879
|
-
|
4880
|
-
* 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).
|
4881
|
-
* the default global light illuminance varies from 400 (sunrise/sunset) to 10,000 (midday).
|
4882
|
-
* for typical values, see https://en.wikipedia.org/wiki/Lux#Illuminance
|
4883
|
-
*
|
4884
|
-
* for point and spot lights, this is the lumens/m^2 at 1m distance from the light. to transform from raw lumens,
|
4885
|
-
* divide lumens by ~12 (4*pi).
|
4886
|
-
* e.g. a 100w household bulb with 1200 lumens would have an illuminance of ~100.
|
4887
|
-
* a lighthouse bulb with 200,000 lumens would have an illuminance of ~15,000 (ignoring beam reflections)
|
4888
|
-
*
|
4889
|
-
* default
|
4890
|
-
* for point/spotlights: 10,000
|
4891
|
-
* for global directional light: depends on explorer implementation. may vary on light direction, time of day, etc
|
4892
|
-
*/
|
4893
|
-
illuminance?: number | undefined;
|
4894
|
-
/**
|
4895
|
-
* whether the light should cast shadows.
|
4896
|
-
* note: even when set to true the engine may not display shadows, or may only show shadows for a limited number
|
4897
|
-
* of lights depending on the implementation, platform, and user settings.
|
4898
|
-
* default
|
4899
|
-
* for point/spotlights: false / off
|
4900
|
-
* for global directional light: true / on
|
4901
|
-
*/
|
4902
|
-
shadows?: boolean | undefined;
|
4903
|
-
/**
|
4904
|
-
* light color
|
4905
|
-
* default White
|
4906
|
-
*/
|
4907
|
-
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;
|
4908
4597
|
}
|
4909
4598
|
|
4910
4599
|
/**
|
4911
4600
|
* @public
|
4912
4601
|
*/
|
4913
|
-
export declare namespace
|
4914
|
-
export function encode(message:
|
4915
|
-
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;
|
4916
4605
|
}
|
4917
4606
|
|
4918
4607
|
/**
|
@@ -4946,14 +4635,6 @@ export declare interface PBMaterial {
|
|
4946
4635
|
$case: "pbr";
|
4947
4636
|
pbr: PBMaterial_PbrMaterial;
|
4948
4637
|
} | undefined;
|
4949
|
-
/**
|
4950
|
-
* A gltf material that may provide additional features not supported by the PbMaterial fields.
|
4951
|
-
* If both gltf and material fields are provided, the gltf will be used only for extended features not
|
4952
|
-
* supported by the PbMaterial.
|
4953
|
-
* If this is provided and the `material` field is not provided, the renderer will update the material
|
4954
|
-
* field with data that reflects the gltf material once it is loaded.
|
4955
|
-
*/
|
4956
|
-
gltf?: PBMaterial_GltfMaterial | undefined;
|
4957
4638
|
}
|
4958
4639
|
|
4959
4640
|
/**
|
@@ -4964,22 +4645,6 @@ export declare namespace PBMaterial {
|
|
4964
4645
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMaterial;
|
4965
4646
|
}
|
4966
4647
|
|
4967
|
-
/**
|
4968
|
-
* @public
|
4969
|
-
*/
|
4970
|
-
export declare interface PBMaterial_GltfMaterial {
|
4971
|
-
gltfSrc: string;
|
4972
|
-
name: string;
|
4973
|
-
}
|
4974
|
-
|
4975
|
-
/**
|
4976
|
-
* @public
|
4977
|
-
*/
|
4978
|
-
export declare namespace PBMaterial_GltfMaterial {
|
4979
|
-
export function encode(message: PBMaterial_GltfMaterial, writer?: _m0.Writer): _m0.Writer;
|
4980
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMaterial_GltfMaterial;
|
4981
|
-
}
|
4982
|
-
|
4983
4648
|
/**
|
4984
4649
|
* @public
|
4985
4650
|
*/
|
@@ -5076,9 +4741,6 @@ export declare interface PBMeshCollider {
|
|
5076
4741
|
} | {
|
5077
4742
|
$case: "plane";
|
5078
4743
|
plane: PBMeshCollider_PlaneMesh;
|
5079
|
-
} | {
|
5080
|
-
$case: "gltf";
|
5081
|
-
gltf: PBMeshCollider_GltfMesh;
|
5082
4744
|
} | undefined;
|
5083
4745
|
}
|
5084
4746
|
|
@@ -5124,25 +4786,6 @@ export declare namespace PBMeshCollider_CylinderMesh {
|
|
5124
4786
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshCollider_CylinderMesh;
|
5125
4787
|
}
|
5126
4788
|
|
5127
|
-
/** A collider constructed from a Gltf Mesh. */
|
5128
|
-
/**
|
5129
|
-
* @public
|
5130
|
-
*/
|
5131
|
-
export declare interface PBMeshCollider_GltfMesh {
|
5132
|
-
/** the GLTF file path as listed in the scene's manifest. */
|
5133
|
-
gltfSrc: string;
|
5134
|
-
/** the name of the mesh asset */
|
5135
|
-
name: string;
|
5136
|
-
}
|
5137
|
-
|
5138
|
-
/**
|
5139
|
-
* @public
|
5140
|
-
*/
|
5141
|
-
export declare namespace PBMeshCollider_GltfMesh {
|
5142
|
-
export function encode(message: PBMeshCollider_GltfMesh, writer?: _m0.Writer): _m0.Writer;
|
5143
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshCollider_GltfMesh;
|
5144
|
-
}
|
5145
|
-
|
5146
4789
|
/** PlaneMesh is a 2D rectangle described by the Entity's Transform. */
|
5147
4790
|
/**
|
5148
4791
|
* @public
|
@@ -5175,11 +4818,13 @@ export declare namespace PBMeshCollider_SphereMesh {
|
|
5175
4818
|
|
5176
4819
|
/**
|
5177
4820
|
* The MeshRenderer component renders a basic geometric shape for an Entity. It can be a cube, a
|
5178
|
-
* plane, a sphere
|
4821
|
+
* plane, a sphere or a cylinder.
|
5179
4822
|
*
|
5180
4823
|
* The cube and plane variants can include a UV texture mapping, so specific areas of a material
|
5181
4824
|
* texture are rendered on different faces of the shape. They are serialized as a sequence of 2D
|
5182
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.
|
5183
4828
|
*/
|
5184
4829
|
/**
|
5185
4830
|
* @public
|
@@ -5197,9 +4842,6 @@ export declare interface PBMeshRenderer {
|
|
5197
4842
|
} | {
|
5198
4843
|
$case: "plane";
|
5199
4844
|
plane: PBMeshRenderer_PlaneMesh;
|
5200
|
-
} | {
|
5201
|
-
$case: "gltf";
|
5202
|
-
gltf: PBMeshRenderer_GltfMesh;
|
5203
4845
|
} | undefined;
|
5204
4846
|
}
|
5205
4847
|
|
@@ -5247,25 +4889,6 @@ export declare namespace PBMeshRenderer_CylinderMesh {
|
|
5247
4889
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshRenderer_CylinderMesh;
|
5248
4890
|
}
|
5249
4891
|
|
5250
|
-
/** A mesh from a Gltf. */
|
5251
|
-
/**
|
5252
|
-
* @public
|
5253
|
-
*/
|
5254
|
-
export declare interface PBMeshRenderer_GltfMesh {
|
5255
|
-
/** the GLTF file path as listed in the scene's manifest. */
|
5256
|
-
gltfSrc: string;
|
5257
|
-
/** the name of the mesh asset */
|
5258
|
-
name: string;
|
5259
|
-
}
|
5260
|
-
|
5261
|
-
/**
|
5262
|
-
* @public
|
5263
|
-
*/
|
5264
|
-
export declare namespace PBMeshRenderer_GltfMesh {
|
5265
|
-
export function encode(message: PBMeshRenderer_GltfMesh, writer?: _m0.Writer): _m0.Writer;
|
5266
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshRenderer_GltfMesh;
|
5267
|
-
}
|
5268
|
-
|
5269
4892
|
/** PlaneMesh renders a 2D rectangular shape. */
|
5270
4893
|
/**
|
5271
4894
|
* @public
|
@@ -5484,30 +5107,6 @@ export declare namespace PBPosition {
|
|
5484
5107
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPosition;
|
5485
5108
|
}
|
5486
5109
|
|
5487
|
-
/**
|
5488
|
-
* @public
|
5489
|
-
*/
|
5490
|
-
export declare interface PBPrimaryPointerInfo {
|
5491
|
-
pointerType?: PointerType | undefined;
|
5492
|
-
/** in pixels */
|
5493
|
-
screenCoordinates?: PBVector2 | undefined;
|
5494
|
-
/** in pixels */
|
5495
|
-
screenDelta?: PBVector2 | undefined;
|
5496
|
-
/**
|
5497
|
-
* ray direction that can be used with the primary camera origin for
|
5498
|
-
* raycasting from the cursor into the world
|
5499
|
-
*/
|
5500
|
-
worldRayDirection?: PBVector3 | undefined;
|
5501
|
-
}
|
5502
|
-
|
5503
|
-
/**
|
5504
|
-
* @public
|
5505
|
-
*/
|
5506
|
-
export declare namespace PBPrimaryPointerInfo {
|
5507
|
-
export function encode(message: PBPrimaryPointerInfo, writer?: _m0.Writer): _m0.Writer;
|
5508
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPrimaryPointerInfo;
|
5509
|
-
}
|
5510
|
-
|
5511
5110
|
/**
|
5512
5111
|
* @public
|
5513
5112
|
*/
|
@@ -5629,39 +5228,6 @@ export declare namespace PBRealmInfo {
|
|
5629
5228
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBRealmInfo;
|
5630
5229
|
}
|
5631
5230
|
|
5632
|
-
/**
|
5633
|
-
* defines a spotlight.
|
5634
|
-
* spotlights are point lights that emit light only in a cone around the transform's forward direction.
|
5635
|
-
* add this component together with the PBLight component to transform a point light into a spotlight.
|
5636
|
-
* note that spotlights do not model any internal reflections / focus, they only restrict the area of effect.
|
5637
|
-
* so for e.g. a torch beam, the bulb illuminance should be multiplied by the solid angle.
|
5638
|
-
* a typical torch with a beam width of 15 degrees would use outer angle of 0.15 (7.5 degrees in radians),
|
5639
|
-
* and an illuminance approximately equal to the bulb's lumens, e.g. 1200.
|
5640
|
-
*/
|
5641
|
-
/**
|
5642
|
-
* @public
|
5643
|
-
*/
|
5644
|
-
export declare interface PBSpotlight {
|
5645
|
-
/**
|
5646
|
-
* the cone radius in radians. distance away from forward in which the light is visible.
|
5647
|
-
* for a torch a value around 0.15 is appropriate.
|
5648
|
-
*/
|
5649
|
-
angle: number;
|
5650
|
-
/**
|
5651
|
-
* optional angle at which the light is brightest. should be <= outer angle.
|
5652
|
-
* if specified, the light will fall off smoothly between `inner_angle` and `angle`.
|
5653
|
-
*/
|
5654
|
-
innerAngle?: number | undefined;
|
5655
|
-
}
|
5656
|
-
|
5657
|
-
/**
|
5658
|
-
* @public
|
5659
|
-
*/
|
5660
|
-
export declare namespace PBSpotlight {
|
5661
|
-
export function encode(message: PBSpotlight, writer?: _m0.Writer): _m0.Writer;
|
5662
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSpotlight;
|
5663
|
-
}
|
5664
|
-
|
5665
5231
|
/**
|
5666
5232
|
* The TextShape component renders customizable floating text.
|
5667
5233
|
*
|
@@ -5726,40 +5292,6 @@ export declare namespace PBTextShape {
|
|
5726
5292
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTextShape;
|
5727
5293
|
}
|
5728
5294
|
|
5729
|
-
/**
|
5730
|
-
* @public
|
5731
|
-
*/
|
5732
|
-
export declare interface PBTextureCamera {
|
5733
|
-
/** rendered texture width */
|
5734
|
-
width?: number | undefined;
|
5735
|
-
/** rendered texture height */
|
5736
|
-
height?: number | undefined;
|
5737
|
-
/**
|
5738
|
-
* which layer of entities to render. entity layers can be specified by adding PBCameraLayers to target entities.
|
5739
|
-
* defaults to 0
|
5740
|
-
*/
|
5741
|
-
layer?: number | undefined;
|
5742
|
-
/** default black */
|
5743
|
-
clearColor?: PBColor4 | undefined;
|
5744
|
-
/** default infinity */
|
5745
|
-
farPlane?: number | undefined;
|
5746
|
-
mode?: {
|
5747
|
-
$case: "perspective";
|
5748
|
-
perspective: Perspective;
|
5749
|
-
} | {
|
5750
|
-
$case: "orthographic";
|
5751
|
-
orthographic: Orthographic;
|
5752
|
-
} | undefined;
|
5753
|
-
}
|
5754
|
-
|
5755
|
-
/**
|
5756
|
-
* @public
|
5757
|
-
*/
|
5758
|
-
export declare namespace PBTextureCamera {
|
5759
|
-
export function encode(message: PBTextureCamera, writer?: _m0.Writer): _m0.Writer;
|
5760
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTextureCamera;
|
5761
|
-
}
|
5762
|
-
|
5763
5295
|
/**
|
5764
5296
|
* @public
|
5765
5297
|
*/
|
@@ -5849,25 +5381,6 @@ export declare namespace PBUiBackground {
|
|
5849
5381
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiBackground;
|
5850
5382
|
}
|
5851
5383
|
|
5852
|
-
/** The UiCanvas component can be attached to a ui root entity to specify properties of the ui texture. */
|
5853
|
-
/**
|
5854
|
-
* @public
|
5855
|
-
*/
|
5856
|
-
export declare interface PBUiCanvas {
|
5857
|
-
width: number;
|
5858
|
-
height: number;
|
5859
|
-
/** default = (0.0, 0.0, 0.0, 0.0) / transparent */
|
5860
|
-
color?: PBColor4 | undefined;
|
5861
|
-
}
|
5862
|
-
|
5863
|
-
/**
|
5864
|
-
* @public
|
5865
|
-
*/
|
5866
|
-
export declare namespace PBUiCanvas {
|
5867
|
-
export function encode(message: PBUiCanvas, writer?: _m0.Writer): _m0.Writer;
|
5868
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiCanvas;
|
5869
|
-
}
|
5870
|
-
|
5871
5384
|
/** This component is created by the renderer and used by the scenes to know the resolution of the UI canvas */
|
5872
5385
|
/**
|
5873
5386
|
* @public
|
@@ -5984,21 +5497,6 @@ export declare namespace PBUiInputResult {
|
|
5984
5497
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputResult;
|
5985
5498
|
}
|
5986
5499
|
|
5987
|
-
/**
|
5988
|
-
* @public
|
5989
|
-
*/
|
5990
|
-
export declare interface PBUiScrollResult {
|
5991
|
-
value: PBVector2 | undefined;
|
5992
|
-
}
|
5993
|
-
|
5994
|
-
/**
|
5995
|
-
* @public
|
5996
|
-
*/
|
5997
|
-
export declare namespace PBUiScrollResult {
|
5998
|
-
export function encode(message: PBUiScrollResult, writer?: _m0.Writer): _m0.Writer;
|
5999
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiScrollResult;
|
6000
|
-
}
|
6001
|
-
|
6002
5500
|
/**
|
6003
5501
|
* @public
|
6004
5502
|
*/
|
@@ -6015,10 +5513,6 @@ export declare interface PBUiText {
|
|
6015
5513
|
fontSize?: number | undefined;
|
6016
5514
|
/** wrap text when the border is reached (default: TW_WRAP) */
|
6017
5515
|
textWrap?: TextWrap | undefined;
|
6018
|
-
/** width of the outline (default: 0) */
|
6019
|
-
outlineWidth?: number | undefined;
|
6020
|
-
/** RGBA color of the outline (default: opaque black) */
|
6021
|
-
outlineColor?: PBColor4 | undefined;
|
6022
5516
|
}
|
6023
5517
|
|
6024
5518
|
/**
|
@@ -6115,16 +5609,6 @@ export declare interface PBUiTransform {
|
|
6115
5609
|
paddingBottom: number;
|
6116
5610
|
/** default: PointerFilterMode.PFM_NONE */
|
6117
5611
|
pointerFilter?: PointerFilterMode | undefined;
|
6118
|
-
/** default: 1 */
|
6119
|
-
opacity?: number | undefined;
|
6120
|
-
/** default empty */
|
6121
|
-
elementId?: string | undefined;
|
6122
|
-
/** default position=(0,0) */
|
6123
|
-
scrollPosition?: ScrollPositionValue | undefined;
|
6124
|
-
/** default ShowScrollBar.SSB_BOTH */
|
6125
|
-
scrollVisible?: ShowScrollBar | undefined;
|
6126
|
-
/** default 0 */
|
6127
|
-
zIndex?: number | undefined;
|
6128
5612
|
}
|
6129
5613
|
|
6130
5614
|
/**
|
@@ -6221,6 +5705,7 @@ export declare namespace PBVideoPlayer {
|
|
6221
5705
|
* an 'instant' transition (like using speed/time = 0)
|
6222
5706
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
6223
5707
|
* the holding entity transform).
|
5708
|
+
* * The fov defines the Field of View of the virtual camera
|
6224
5709
|
*/
|
6225
5710
|
/**
|
6226
5711
|
* @public
|
@@ -6228,6 +5713,8 @@ export declare namespace PBVideoPlayer {
|
|
6228
5713
|
export declare interface PBVirtualCamera {
|
6229
5714
|
defaultTransition?: CameraTransition | undefined;
|
6230
5715
|
lookAtEntity?: number | undefined;
|
5716
|
+
/** default: 60 */
|
5717
|
+
fov?: number | undefined;
|
6231
5718
|
}
|
6232
5719
|
|
6233
5720
|
/**
|
@@ -6254,25 +5741,6 @@ export declare namespace PBVisibilityComponent {
|
|
6254
5741
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBVisibilityComponent;
|
6255
5742
|
}
|
6256
5743
|
|
6257
|
-
/**
|
6258
|
-
* @public
|
6259
|
-
*/
|
6260
|
-
export declare interface Perspective {
|
6261
|
-
/**
|
6262
|
-
* vertical field of view in radians
|
6263
|
-
* defaults to pi/4 = 45 degrees
|
6264
|
-
*/
|
6265
|
-
fieldOfView?: number | undefined;
|
6266
|
-
}
|
6267
|
-
|
6268
|
-
/**
|
6269
|
-
* @public
|
6270
|
-
*/
|
6271
|
-
export declare namespace Perspective {
|
6272
|
-
export function encode(message: Perspective, writer?: _m0.Writer): _m0.Writer;
|
6273
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): Perspective;
|
6274
|
-
}
|
6275
|
-
|
6276
5744
|
/**
|
6277
5745
|
* Represens a plane by the equation ax + by + cz + d = 0
|
6278
5746
|
* @public
|
@@ -6428,24 +5896,6 @@ export declare interface PointerEventsSystem {
|
|
6428
5896
|
* @param entity - Entity where the callback was attached
|
6429
5897
|
*/
|
6430
5898
|
removeOnPointerHoverLeave(entity: Entity): void;
|
6431
|
-
/**
|
6432
|
-
* @public
|
6433
|
-
* Remove the callback for onPointerDrag event
|
6434
|
-
* @param entity - Entity where the callback was attached
|
6435
|
-
*/
|
6436
|
-
removeOnPointerDrag(entity: Entity): void;
|
6437
|
-
/**
|
6438
|
-
* @public
|
6439
|
-
* Remove the callback for onPointerDragLocked event
|
6440
|
-
* @param entity - Entity where the callback was attached
|
6441
|
-
*/
|
6442
|
-
removeOnPointerDragLocked(entity: Entity): void;
|
6443
|
-
/**
|
6444
|
-
* @public
|
6445
|
-
* Remove the callback for onPointerDragEnd event
|
6446
|
-
* @param entity - Entity where the callback was attached
|
6447
|
-
*/
|
6448
|
-
removeOnPointerDragEnd(entity: Entity): void;
|
6449
5899
|
/**
|
6450
5900
|
* @public
|
6451
5901
|
* Execute callback when the user press the InputButton pointing at the entity
|
@@ -6500,37 +5950,6 @@ export declare interface PointerEventsSystem {
|
|
6500
5950
|
entity: Entity;
|
6501
5951
|
opts?: Partial<EventSystemOptions>;
|
6502
5952
|
}, cb: EventSystemCallback): void;
|
6503
|
-
/**
|
6504
|
-
* @public
|
6505
|
-
* Execute callback when the user clicks and drags the pointer from inside the entity
|
6506
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
6507
|
-
* @param cb - Function to execute when click fires
|
6508
|
-
*/
|
6509
|
-
onPointerDrag(pointerData: {
|
6510
|
-
entity: Entity;
|
6511
|
-
opts?: Partial<EventSystemOptions>;
|
6512
|
-
}, cb: EventSystemCallback): void;
|
6513
|
-
/**
|
6514
|
-
* @public
|
6515
|
-
* Execute callback when the user clicks and drags the pointer from inside the entity,
|
6516
|
-
* locking the cursor in place
|
6517
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
6518
|
-
* @param cb - Function to execute when click fires
|
6519
|
-
*/
|
6520
|
-
onPointerDragLocked(pointerData: {
|
6521
|
-
entity: Entity;
|
6522
|
-
opts?: Partial<EventSystemOptions>;
|
6523
|
-
}, cb: EventSystemCallback): void;
|
6524
|
-
/**
|
6525
|
-
* @public
|
6526
|
-
* Execute callback when the user releases the button after a drag
|
6527
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
6528
|
-
* @param cb - Function to execute when click fires
|
6529
|
-
*/
|
6530
|
-
onPointerDragEnd(pointerData: {
|
6531
|
-
entity: Entity;
|
6532
|
-
opts?: Partial<EventSystemOptions>;
|
6533
|
-
}, cb: EventSystemCallback): void;
|
6534
5953
|
}
|
6535
5954
|
|
6536
5955
|
/**
|
@@ -6547,10 +5966,7 @@ export declare const enum PointerEventType {
|
|
6547
5966
|
PET_UP = 0,
|
6548
5967
|
PET_DOWN = 1,
|
6549
5968
|
PET_HOVER_ENTER = 2,
|
6550
|
-
PET_HOVER_LEAVE = 3
|
6551
|
-
PET_DRAG_LOCKED = 4,
|
6552
|
-
PET_DRAG = 5,
|
6553
|
-
PET_DRAG_END = 6
|
5969
|
+
PET_HOVER_LEAVE = 3
|
6554
5970
|
}
|
6555
5971
|
|
6556
5972
|
/**
|
@@ -6570,17 +5986,6 @@ export declare type PointerFilterType = 'none' | 'block';
|
|
6570
5986
|
/** @public */
|
6571
5987
|
export declare const PointerLock: LastWriteWinElementSetComponentDefinition<PBPointerLock>;
|
6572
5988
|
|
6573
|
-
/**
|
6574
|
-
* @public
|
6575
|
-
*/
|
6576
|
-
export declare const enum PointerType {
|
6577
|
-
POT_NONE = 0,
|
6578
|
-
POT_MOUSE = 1,
|
6579
|
-
POT_PAD = 2,
|
6580
|
-
POT_TOUCH = 3,
|
6581
|
-
POT_WAND = 4
|
6582
|
-
}
|
6583
|
-
|
6584
5989
|
/**
|
6585
5990
|
* Type used for defining the position of the element. i.e. margin, padding
|
6586
5991
|
* @public
|
@@ -6618,9 +6023,6 @@ export declare type PositionType = 'absolute' | 'relative';
|
|
6618
6023
|
*/
|
6619
6024
|
export declare type PositionUnit = `${number}px` | `${number}%` | number | `${number}` | ScaleUnit;
|
6620
6025
|
|
6621
|
-
/** @public */
|
6622
|
-
export declare const PrimaryPointerInfo: LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>;
|
6623
|
-
|
6624
6026
|
export declare enum ProcessMessageResultType {
|
6625
6027
|
/**
|
6626
6028
|
* Typical message and new state set.
|
@@ -7175,7 +6577,6 @@ export declare type RaycastSystemOptions = {
|
|
7175
6577
|
export declare interface ReactBasedUiSystem {
|
7176
6578
|
destroy(): void;
|
7177
6579
|
setUiRenderer(ui: UiComponent): void;
|
7178
|
-
setTextureRenderer(entity: Entity, ui: UiComponent): void;
|
7179
6580
|
}
|
7180
6581
|
|
7181
6582
|
/**
|
@@ -7629,43 +7030,6 @@ export declare namespace Schemas {
|
|
7629
7030
|
}) => void;
|
7630
7031
|
}
|
7631
7032
|
|
7632
|
-
/**
|
7633
|
-
* @public
|
7634
|
-
*/
|
7635
|
-
export declare interface ScrollPositionValue {
|
7636
|
-
value?: {
|
7637
|
-
$case: "position";
|
7638
|
-
position: PBVector2;
|
7639
|
-
} | {
|
7640
|
-
$case: "reference";
|
7641
|
-
reference: string;
|
7642
|
-
} | undefined;
|
7643
|
-
}
|
7644
|
-
|
7645
|
-
/**
|
7646
|
-
* @public
|
7647
|
-
*/
|
7648
|
-
export declare namespace ScrollPositionValue {
|
7649
|
-
export function encode(message: ScrollPositionValue, writer?: _m0.Writer): _m0.Writer;
|
7650
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): ScrollPositionValue;
|
7651
|
-
}
|
7652
|
-
|
7653
|
-
/**
|
7654
|
-
* @public
|
7655
|
-
* The scroll-visible determines if the scrollbars are shown when the scroll overflow is enabled
|
7656
|
-
*/
|
7657
|
-
export declare type ScrollVisibleType = 'horizontal' | 'vertical' | 'both' | 'hidden';
|
7658
|
-
|
7659
|
-
/**
|
7660
|
-
* @public
|
7661
|
-
*/
|
7662
|
-
export declare const enum ShowScrollBar {
|
7663
|
-
SSB_BOTH = 0,
|
7664
|
-
SSB_ONLY_VERTICAL = 1,
|
7665
|
-
SSB_ONLY_HORIZONTAL = 2,
|
7666
|
-
SSB_HIDDEN = 3
|
7667
|
-
}
|
7668
|
-
|
7669
7033
|
/**
|
7670
7034
|
* @public
|
7671
7035
|
*/
|
@@ -7673,9 +7037,6 @@ export declare interface Spec {
|
|
7673
7037
|
[key: string]: ISchema;
|
7674
7038
|
}
|
7675
7039
|
|
7676
|
-
/** @public */
|
7677
|
-
export declare const Spotlight: LastWriteWinElementSetComponentDefinition<PBSpotlight>;
|
7678
|
-
|
7679
7040
|
/* Excluded from this release type: SyncComponents */
|
7680
7041
|
|
7681
7042
|
/**
|
@@ -7745,9 +7106,6 @@ export declare namespace Texture {
|
|
7745
7106
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): Texture;
|
7746
7107
|
}
|
7747
7108
|
|
7748
|
-
/** @public */
|
7749
|
-
export declare const TextureCamera: LastWriteWinElementSetComponentDefinition<PBTextureCamera>;
|
7750
|
-
|
7751
7109
|
/**
|
7752
7110
|
* @public
|
7753
7111
|
*/
|
@@ -7840,9 +7198,6 @@ export declare interface TextureUnion {
|
|
7840
7198
|
} | {
|
7841
7199
|
$case: "videoTexture";
|
7842
7200
|
videoTexture: VideoTexture;
|
7843
|
-
} | {
|
7844
|
-
$case: "uiTexture";
|
7845
|
-
uiTexture: UiCanvasTexture;
|
7846
7201
|
} | undefined;
|
7847
7202
|
}
|
7848
7203
|
|
@@ -8050,8 +7405,6 @@ export declare interface UiBackgroundProps {
|
|
8050
7405
|
uvs?: number[];
|
8051
7406
|
/** AvatarTexture for the background */
|
8052
7407
|
avatarTexture?: UiAvatarTexture;
|
8053
|
-
/** VideoTexture for the background */
|
8054
|
-
videoTexture?: UiVideoTexture;
|
8055
7408
|
/** Texture for the background */
|
8056
7409
|
texture?: UiTexture;
|
8057
7410
|
}
|
@@ -8071,31 +7424,9 @@ export declare interface UiButtonProps extends UiLabelProps, EntityPropTypes {
|
|
8071
7424
|
disabled?: boolean;
|
8072
7425
|
}
|
8073
7426
|
|
8074
|
-
/** @public */
|
8075
|
-
export declare const UiCanvas: LastWriteWinElementSetComponentDefinition<PBUiCanvas>;
|
8076
|
-
|
8077
7427
|
/** @public */
|
8078
7428
|
export declare const UiCanvasInformation: LastWriteWinElementSetComponentDefinition<PBUiCanvasInformation>;
|
8079
7429
|
|
8080
|
-
/**
|
8081
|
-
* @public
|
8082
|
-
*/
|
8083
|
-
export declare interface UiCanvasTexture {
|
8084
|
-
uiCanvasEntity: number;
|
8085
|
-
/** default = TextureWrapMode.Clamp */
|
8086
|
-
wrapMode?: TextureWrapMode | undefined;
|
8087
|
-
/** default = FilterMode.Bilinear */
|
8088
|
-
filterMode?: TextureFilterMode | undefined;
|
8089
|
-
}
|
8090
|
-
|
8091
|
-
/**
|
8092
|
-
* @public
|
8093
|
-
*/
|
8094
|
-
export declare namespace UiCanvasTexture {
|
8095
|
-
export function encode(message: UiCanvasTexture, writer?: _m0.Writer): _m0.Writer;
|
8096
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): UiCanvasTexture;
|
8097
|
-
}
|
8098
|
-
|
8099
7430
|
/**
|
8100
7431
|
* @public
|
8101
7432
|
*/
|
@@ -8165,10 +7496,6 @@ export declare interface UiLabelProps {
|
|
8165
7496
|
textAlign?: TextAlignType | undefined;
|
8166
7497
|
/** Label font type. @defaultValue 'sans-serif' */
|
8167
7498
|
font?: UiFontType | undefined;
|
8168
|
-
/** Outline width of the text. @defaultValue 0 */
|
8169
|
-
outlineWidth?: number | undefined;
|
8170
|
-
/** Outline color of the text. @defaultValue `{ r: 0, g: 0, b: 0, a: 1 }` */
|
8171
|
-
outlineColor?: PBColor4 | undefined;
|
8172
7499
|
/** Behaviour when text reached. @defaultValue 'wrap' */
|
8173
7500
|
textWrap?: UiTextWrapType | undefined;
|
8174
7501
|
}
|
@@ -8178,9 +7505,6 @@ export declare interface UiLabelProps {
|
|
8178
7505
|
*/
|
8179
7506
|
export declare type uint32 = number;
|
8180
7507
|
|
8181
|
-
/** @public */
|
8182
|
-
export declare const UiScrollResult: LastWriteWinElementSetComponentDefinition<PBUiScrollResult>;
|
8183
|
-
|
8184
7508
|
/** @public */
|
8185
7509
|
export declare const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
|
8186
7510
|
|
@@ -8253,26 +7577,6 @@ export declare interface UiTransformProps {
|
|
8253
7577
|
overflow?: OverflowType;
|
8254
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) **/
|
8255
7579
|
pointerFilter?: PointerFilterType;
|
8256
|
-
/** The opacity property sets the opacity level for an element, it's accumulated across children @defaultValue 1 */
|
8257
|
-
opacity?: number;
|
8258
|
-
/** A reference value to identify the element, default empty */
|
8259
|
-
elementId?: string;
|
8260
|
-
/** default position=(0,0) if it aplies, a vector or a reference-id */
|
8261
|
-
scrollPosition?: PBVector2 | string;
|
8262
|
-
/** default ShowScrollBar.SSB_BOTH */
|
8263
|
-
scrollVisible?: ScrollVisibleType;
|
8264
|
-
/** default 0 */
|
8265
|
-
zIndex?: number;
|
8266
|
-
}
|
8267
|
-
|
8268
|
-
/**
|
8269
|
-
* Texture
|
8270
|
-
* @public
|
8271
|
-
*/
|
8272
|
-
export declare interface UiVideoTexture {
|
8273
|
-
videoPlayerEntity: Entity;
|
8274
|
-
wrapMode?: TextureWrapType;
|
8275
|
-
filterMode?: TextureFilterType;
|
8276
7580
|
}
|
8277
7581
|
|
8278
7582
|
/**
|