@dcl/playground-assets 7.8.22-16482785086.commit-b7d3158 → 7.8.22-16501351655.commit-8cc205e
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 +69 -833
- package/dist/beta.d.ts +69 -833
- package/dist/index.bundled.d.ts +69 -833
- package/dist/index.js +7 -7
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/apis.d.ts +0 -12
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +69 -833
- package/etc/playground-assets.api.json +2195 -9414
- package/etc/playground-assets.api.md +41 -530
- package/package.json +4 -4
@@ -178,31 +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 type AvatarEquippedDataComponentDefinitionExtended = LastWriteWinElementSetComponentDefinition<AvatarEquippedDataType>;
|
202
|
-
|
203
|
-
export declare type AvatarEquippedDataType = Omit<PBAvatarEquippedData, 'forceRender'> & {
|
204
|
-
forceRender?: string[] | undefined;
|
205
|
-
};
|
184
|
+
/** @public */
|
185
|
+
export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
206
186
|
|
207
187
|
/** @public */
|
208
188
|
export declare const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
|
@@ -218,47 +198,8 @@ export declare const enum AvatarModifierType {
|
|
218
198
|
AMT_DISABLE_PASSPORTS = 1
|
219
199
|
}
|
220
200
|
|
221
|
-
/**
|
222
|
-
|
223
|
-
*/
|
224
|
-
export declare interface AvatarMovementSettings {
|
225
|
-
controlMode?: AvatarControlType | undefined;
|
226
|
-
/** if not explicitly set, the following properties default to user's preference settings */
|
227
|
-
runSpeed?: number | undefined;
|
228
|
-
/** how fast the player gets up to speed or comes to rest. higher = more responsive */
|
229
|
-
friction?: number | undefined;
|
230
|
-
/** how fast the player accelerates vertically when not on a solid surface, in m/s. should normally be negative */
|
231
|
-
gravity?: number | undefined;
|
232
|
-
/** how high the player can jump, in meters. should normally be positive. gravity must have the same sign for jumping to be possible */
|
233
|
-
jumpHeight?: number | undefined;
|
234
|
-
/** max fall speed in m/s. should normally be negative */
|
235
|
-
maxFallSpeed?: number | undefined;
|
236
|
-
/** speed the player turns in tank mode, in radians/s */
|
237
|
-
turnSpeed?: number | undefined;
|
238
|
-
/** speed the player walks at, in m/s */
|
239
|
-
walkSpeed?: number | undefined;
|
240
|
-
/** 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 */
|
241
|
-
allowWeightedMovement?: boolean | undefined;
|
242
|
-
}
|
243
|
-
|
244
|
-
/**
|
245
|
-
* @public
|
246
|
-
*/
|
247
|
-
export declare namespace AvatarMovementSettings {
|
248
|
-
export function encode(message: AvatarMovementSettings, writer?: _m0.Writer): _m0.Writer;
|
249
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): AvatarMovementSettings;
|
250
|
-
}
|
251
|
-
|
252
|
-
export declare const AvatarShape: AvatarShapeComponentDefinitionExtended;
|
253
|
-
|
254
|
-
/**
|
255
|
-
* @public
|
256
|
-
*/
|
257
|
-
export declare type AvatarShapeComponentDefinitionExtended = LastWriteWinElementSetComponentDefinition<AvatarShapeType>;
|
258
|
-
|
259
|
-
export declare type AvatarShapeType = Omit<PBAvatarShape, 'forceRender'> & {
|
260
|
-
forceRender?: string[] | undefined;
|
261
|
-
};
|
201
|
+
/** @public */
|
202
|
+
export declare const AvatarShape: LastWriteWinElementSetComponentDefinition<PBAvatarShape>;
|
262
203
|
|
263
204
|
/**
|
264
205
|
* @public
|
@@ -527,19 +468,11 @@ export declare interface ByteBuffer {
|
|
527
468
|
}
|
528
469
|
|
529
470
|
/**
|
530
|
-
*
|
531
|
-
*
|
532
|
-
* @public @deprecated This type is no longer used in the sdk api, EventSystemCallback is
|
533
|
-
* used for listeners instead
|
471
|
+
* Callback function to be triggered on a specified event
|
472
|
+
* @public
|
534
473
|
*/
|
535
474
|
export declare type Callback = () => void;
|
536
475
|
|
537
|
-
/** @public */
|
538
|
-
export declare const CameraLayer: LastWriteWinElementSetComponentDefinition<PBCameraLayer>;
|
539
|
-
|
540
|
-
/** @public */
|
541
|
-
export declare const CameraLayers: LastWriteWinElementSetComponentDefinition<PBCameraLayers>;
|
542
|
-
|
543
476
|
/** @public */
|
544
477
|
export declare const CameraMode: LastWriteWinElementSetComponentDefinition<PBCameraMode>;
|
545
478
|
|
@@ -597,39 +530,6 @@ export declare const enum CameraType {
|
|
597
530
|
|
598
531
|
export declare type Children = ReactEcs.JSX.ReactNode;
|
599
532
|
|
600
|
-
/**
|
601
|
-
* @public
|
602
|
-
*/
|
603
|
-
export declare interface CinematicSettings {
|
604
|
-
/** Entity that defines the cinematic camera transform. */
|
605
|
-
cameraEntity: number;
|
606
|
-
/**
|
607
|
-
* Position -> camera's position
|
608
|
-
* Rotation -> camera's direction
|
609
|
-
* scale.z -> zoom level
|
610
|
-
* scale.x and scale.y -> unused
|
611
|
-
*/
|
612
|
-
allowManualRotation?: boolean | undefined;
|
613
|
-
/** how far the camera can rotate around the y-axis / look left/right, in radians. default unrestricted */
|
614
|
-
yawRange?: number | undefined;
|
615
|
-
/** how far the camera can rotate around the x-axis / look up-down, in radians. default unrestricted */
|
616
|
-
pitchRange?: number | undefined;
|
617
|
-
/** note: cameras can never look up/down further than Vec3::Y */
|
618
|
-
rollRange?: number | undefined;
|
619
|
-
/** minimum zoom level. must be greater than 0. defaults to the input zoom level */
|
620
|
-
zoomMin?: number | undefined;
|
621
|
-
/** maximum zoom level. must be greater than 0. defaults to the input zoom level */
|
622
|
-
zoomMax?: number | undefined;
|
623
|
-
}
|
624
|
-
|
625
|
-
/**
|
626
|
-
* @public
|
627
|
-
*/
|
628
|
-
export declare namespace CinematicSettings {
|
629
|
-
export function encode(message: CinematicSettings, writer?: _m0.Writer): _m0.Writer;
|
630
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): CinematicSettings;
|
631
|
-
}
|
632
|
-
|
633
533
|
/** ColliderLayer determines the kind of collision to detect, in OR-able bit flag form. */
|
634
534
|
/**
|
635
535
|
* @public
|
@@ -1403,18 +1303,13 @@ export declare const componentDefinitionByName: {
|
|
1403
1303
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
1404
1304
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
1405
1305
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
1406
|
-
"core::CameraLayer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraLayer>>;
|
1407
|
-
"core::CameraLayers": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraLayers>>;
|
1408
1306
|
"core::CameraMode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
|
1409
1307
|
"core::CameraModeArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraModeArea>>;
|
1410
1308
|
"core::EngineInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
|
1411
|
-
"core::GlobalLight": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGlobalLight>>;
|
1412
1309
|
"core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
|
1413
1310
|
"core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
|
1414
|
-
"core::
|
1415
|
-
"core::GltfNodeState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNodeState>>;
|
1311
|
+
"core::GltfNodeModifiers": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNodeModifiers>>;
|
1416
1312
|
"core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
|
1417
|
-
"core::Light": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLight>>;
|
1418
1313
|
"core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
|
1419
1314
|
"core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
|
1420
1315
|
"core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
@@ -1428,20 +1323,17 @@ export declare const componentDefinitionByName: {
|
|
1428
1323
|
"core::Raycast": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
|
1429
1324
|
"core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
1430
1325
|
"core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
1431
|
-
"core::
|
1326
|
+
"core::SkyboxTime": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkyboxTime>>;
|
1432
1327
|
"core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
|
1433
|
-
"core::TextureCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextureCamera>>;
|
1434
1328
|
"core::Tween": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
|
1435
1329
|
"core::TweenSequence": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenSequence>>;
|
1436
1330
|
"core::TweenState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenState>>;
|
1437
1331
|
"core::UiBackground": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiBackground>>;
|
1438
|
-
"core::UiCanvas": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiCanvas>>;
|
1439
1332
|
"core::UiCanvasInformation": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiCanvasInformation>>;
|
1440
1333
|
"core::UiDropdown": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdown>>;
|
1441
1334
|
"core::UiDropdownResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>>;
|
1442
1335
|
"core::UiInput": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInput>>;
|
1443
1336
|
"core::UiInputResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputResult>>;
|
1444
|
-
"core::UiScrollResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiScrollResult>>;
|
1445
1337
|
"core::UiText": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiText>>;
|
1446
1338
|
"core::UiTransform": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiTransform>>;
|
1447
1339
|
"core::VideoEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBVideoEvent>>;
|
@@ -2008,18 +1900,10 @@ export declare type EntityComponents = {
|
|
2008
1900
|
uiBackground: PBUiBackground;
|
2009
1901
|
uiInput: PBUiInput;
|
2010
1902
|
uiDropdown: PBUiDropdown;
|
2011
|
-
onMouseDown:
|
2012
|
-
onMouseUp:
|
2013
|
-
onMouseEnter:
|
2014
|
-
onMouseLeave:
|
2015
|
-
onMouseDrag: EventSystemCallback;
|
2016
|
-
onMouseDragLocked: EventSystemCallback;
|
2017
|
-
onMouseDragEnd: EventSystemCallback;
|
2018
|
-
onInputDown: MultiCallback;
|
2019
|
-
onInputUp: MultiCallback;
|
2020
|
-
onInputDrag: MultiCallback;
|
2021
|
-
onInputDragLocked: MultiCallback;
|
2022
|
-
onInputDragEnd: MultiCallback;
|
1903
|
+
onMouseDown: Callback;
|
1904
|
+
onMouseUp: Callback;
|
1905
|
+
onMouseEnter: Callback;
|
1906
|
+
onMouseLeave: Callback;
|
2023
1907
|
};
|
2024
1908
|
|
2025
1909
|
/** @public */
|
@@ -2097,13 +1981,6 @@ export declare type EventSystemOptions = {
|
|
2097
1981
|
showHighlight?: boolean;
|
2098
1982
|
};
|
2099
1983
|
|
2100
|
-
/**
|
2101
|
-
* @public
|
2102
|
-
*/
|
2103
|
-
export declare type EventSystemOptionsCallback = EventSystemOptions & {
|
2104
|
-
cb: EventSystemCallback;
|
2105
|
-
};
|
2106
|
-
|
2107
1984
|
/**
|
2108
1985
|
* Excludes property keys from T where the property is assignable to U
|
2109
1986
|
* @public
|
@@ -2178,9 +2055,6 @@ export declare type GlobalDirectionRaycastSystemOptions = {
|
|
2178
2055
|
direction?: PBVector3;
|
2179
2056
|
};
|
2180
2057
|
|
2181
|
-
/** @public */
|
2182
|
-
export declare const GlobalLight: LastWriteWinElementSetComponentDefinition<PBGlobalLight>;
|
2183
|
-
|
2184
2058
|
export declare type GlobalTargetRaycastOptions = RaycastSystemOptions & GlobalTargetRaycastSystemOptions;
|
2185
2059
|
|
2186
2060
|
export declare type GlobalTargetRaycastSystemOptions = {
|
@@ -2194,19 +2068,7 @@ export declare const GltfContainer: LastWriteWinElementSetComponentDefinition<PB
|
|
2194
2068
|
export declare const GltfContainerLoadingState: LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>;
|
2195
2069
|
|
2196
2070
|
/** @public */
|
2197
|
-
export declare const
|
2198
|
-
|
2199
|
-
/** @public */
|
2200
|
-
export declare const GltfNodeState: LastWriteWinElementSetComponentDefinition<PBGltfNodeState>;
|
2201
|
-
|
2202
|
-
/**
|
2203
|
-
* @public
|
2204
|
-
*/
|
2205
|
-
export declare const enum GltfNodeStateValue {
|
2206
|
-
GNSV_PENDING = 0,
|
2207
|
-
GNSV_FAILED = 1,
|
2208
|
-
GNSV_READY = 2
|
2209
|
-
}
|
2071
|
+
export declare const GltfNodeModifiers: LastWriteWinElementSetComponentDefinition<PBGltfNodeModifiers>;
|
2210
2072
|
|
2211
2073
|
/**
|
2212
2074
|
* @public
|
@@ -2555,12 +2417,6 @@ export declare type IInputSystem = {
|
|
2555
2417
|
* @returns the input command info or undefined if there is no command in the last tick-update
|
2556
2418
|
*/
|
2557
2419
|
getInputCommand: (inputAction: InputAction, pointerEventType: PointerEventType, entity?: Entity) => PBPointerEventsResult | null;
|
2558
|
-
/**
|
2559
|
-
* @public
|
2560
|
-
* Get an ordered iterator over events received within the current frame.
|
2561
|
-
* @returns the iterator
|
2562
|
-
*/
|
2563
|
-
getInputCommands: () => Generator<PBPointerEventsResult>;
|
2564
2420
|
};
|
2565
2421
|
|
2566
2422
|
/**
|
@@ -2824,38 +2680,19 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
|
|
2824
2680
|
getOrCreateMutable(entity: Entity, initialValue?: T): T;
|
2825
2681
|
}
|
2826
2682
|
|
2827
|
-
/** @public */
|
2828
|
-
export declare const Light: LastWriteWinElementSetComponentDefinition<PBLight>;
|
2829
|
-
|
2830
2683
|
/**
|
2831
2684
|
* User key event Listeners
|
2832
2685
|
* @public
|
2833
2686
|
*/
|
2834
2687
|
export declare type Listeners = {
|
2835
2688
|
/** triggered on mouse down event */
|
2836
|
-
onMouseDown?:
|
2689
|
+
onMouseDown?: Callback;
|
2837
2690
|
/** triggered on mouse up event */
|
2838
|
-
onMouseUp?:
|
2691
|
+
onMouseUp?: Callback;
|
2839
2692
|
/** triggered on mouse hover event */
|
2840
|
-
onMouseEnter?:
|
2693
|
+
onMouseEnter?: Callback;
|
2841
2694
|
/** triggered on mouse leave event */
|
2842
|
-
onMouseLeave?:
|
2843
|
-
/** triggered on mouse drag event */
|
2844
|
-
onMouseDrag?: EventSystemCallback;
|
2845
|
-
/** triggered on mouse drag event */
|
2846
|
-
onMouseDragLocked?: EventSystemCallback;
|
2847
|
-
/** triggered on mouse drag event */
|
2848
|
-
onMouseDragEnd?: EventSystemCallback;
|
2849
|
-
/** triggered on input down event */
|
2850
|
-
onInputDown?: MultiCallback;
|
2851
|
-
/** triggered on input up event */
|
2852
|
-
onInputUp?: MultiCallback;
|
2853
|
-
/** triggered on input drag event */
|
2854
|
-
onInputDrag?: MultiCallback;
|
2855
|
-
/** triggered on input drag event */
|
2856
|
-
onInputDragLocked?: MultiCallback;
|
2857
|
-
/** triggered on input drag event */
|
2858
|
-
onInputDragEnd?: MultiCallback;
|
2695
|
+
onMouseLeave?: Callback;
|
2859
2696
|
};
|
2860
2697
|
|
2861
2698
|
/**
|
@@ -3724,14 +3561,6 @@ export declare interface MeshColliderComponentDefinitionExtended extends LastWri
|
|
3724
3561
|
* @param colliderMask - the set of layer where the collider reacts, default: Physics and Pointer
|
3725
3562
|
*/
|
3726
3563
|
setSphere(entity: Entity, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
|
3727
|
-
/**
|
3728
|
-
* @public
|
3729
|
-
* Set a gltf internal mesh in the MeshCollider component
|
3730
|
-
* @param entity - entity to create or replace the MeshRenderer component
|
3731
|
-
* @param source - the path to the gltf
|
3732
|
-
* @param meshName - the name of the mesh in the gltf
|
3733
|
-
*/
|
3734
|
-
setGltfMesh(entity: Entity, source: string, meshName: string, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
|
3735
3564
|
}
|
3736
3565
|
|
3737
3566
|
export declare const MeshRenderer: MeshRendererComponentDefinitionExtended;
|
@@ -3768,14 +3597,6 @@ export declare interface MeshRendererComponentDefinitionExtended extends LastWri
|
|
3768
3597
|
* @param entity - entity to create or replace the MeshRenderer component
|
3769
3598
|
*/
|
3770
3599
|
setSphere(entity: Entity): void;
|
3771
|
-
/**
|
3772
|
-
* @public
|
3773
|
-
* Set a gltf internal mesh in the MeshRenderer component
|
3774
|
-
* @param entity - entity to create or replace the MeshRenderer component
|
3775
|
-
* @param source - the path to the gltf
|
3776
|
-
* @param meshName - the name of the mesh in the gltf
|
3777
|
-
*/
|
3778
|
-
setGltfMesh(entity: Entity, source: string, meshName: string): void;
|
3779
3600
|
}
|
3780
3601
|
|
3781
3602
|
/**
|
@@ -3808,19 +3629,6 @@ export declare namespace Move {
|
|
3808
3629
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): Move;
|
3809
3630
|
}
|
3810
3631
|
|
3811
|
-
/**
|
3812
|
-
* a record object mapping `InputAction`s to functions.
|
3813
|
-
*
|
3814
|
-
* @example
|
3815
|
-
* onInputDown={{
|
3816
|
-
* [InputAction.IA_PRIMARY]: (eventData) => { console.log("primary") },
|
3817
|
-
* [InputAction.IA_SECONDARY]: () => { console.log("secondary") },
|
3818
|
-
* }}
|
3819
|
-
*
|
3820
|
-
* @public
|
3821
|
-
*/
|
3822
|
-
export declare type MultiCallback = Partial<Record<InputAction, EventSystemCallback>>;
|
3823
|
-
|
3824
3632
|
export declare const Name: NameComponent;
|
3825
3633
|
|
3826
3634
|
export declare type NameComponent = LastWriteWinElementSetComponentDefinition<NameType>;
|
@@ -4201,25 +4009,6 @@ export declare const onVideoEvent: Observable<{
|
|
4201
4009
|
totalVideoLength: number;
|
4202
4010
|
}>;
|
4203
4011
|
|
4204
|
-
/**
|
4205
|
-
* @public
|
4206
|
-
*/
|
4207
|
-
export declare interface Orthographic {
|
4208
|
-
/**
|
4209
|
-
* vertical extent of the visible range in meters
|
4210
|
-
* defaults to 4m
|
4211
|
-
*/
|
4212
|
-
verticalRange?: number | undefined;
|
4213
|
-
}
|
4214
|
-
|
4215
|
-
/**
|
4216
|
-
* @public
|
4217
|
-
*/
|
4218
|
-
export declare namespace Orthographic {
|
4219
|
-
export function encode(message: Orthographic, writer?: _m0.Writer): _m0.Writer;
|
4220
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): Orthographic;
|
4221
|
-
}
|
4222
|
-
|
4223
4012
|
/**
|
4224
4013
|
* @public
|
4225
4014
|
* The overflow property controls what happens to content that is too big to fit into an area
|
@@ -4446,8 +4235,6 @@ export declare namespace PBAvatarEmoteCommand {
|
|
4446
4235
|
export declare interface PBAvatarEquippedData {
|
4447
4236
|
wearableUrns: string[];
|
4448
4237
|
emoteUrns: string[];
|
4449
|
-
/** slots that will render even if hidden */
|
4450
|
-
forceRender: string[];
|
4451
4238
|
}
|
4452
4239
|
|
4453
4240
|
/**
|
@@ -4482,9 +4269,6 @@ export declare interface PBAvatarModifierArea {
|
|
4482
4269
|
excludeIds: string[];
|
4483
4270
|
/** list of modifiers to apply */
|
4484
4271
|
modifiers: AvatarModifierType[];
|
4485
|
-
movementSettings?: AvatarMovementSettings | undefined;
|
4486
|
-
/** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
|
4487
|
-
useColliderRange?: boolean | undefined;
|
4488
4272
|
}
|
4489
4273
|
|
4490
4274
|
/**
|
@@ -4541,8 +4325,6 @@ export declare interface PBAvatarShape {
|
|
4541
4325
|
wearables: string[];
|
4542
4326
|
/** available emotes (default empty) */
|
4543
4327
|
emotes: string[];
|
4544
|
-
/** slots that will render even if hidden */
|
4545
|
-
forceRender: string[];
|
4546
4328
|
}
|
4547
4329
|
|
4548
4330
|
/**
|
@@ -4577,51 +4359,6 @@ export declare namespace PBBillboard {
|
|
4577
4359
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBBillboard;
|
4578
4360
|
}
|
4579
4361
|
|
4580
|
-
/**
|
4581
|
-
* @public
|
4582
|
-
*/
|
4583
|
-
export declare interface PBCameraLayer {
|
4584
|
-
/**
|
4585
|
-
* layer to which these settings apply. must be > 0
|
4586
|
-
* Layer 0 is the default "real world" layer viewed by the player and cannot be modified.
|
4587
|
-
*/
|
4588
|
-
layer: number;
|
4589
|
-
/** should the sun light affect this layer? default false */
|
4590
|
-
directionalLight?: boolean | undefined;
|
4591
|
-
/** should this layer show player avatars? default false */
|
4592
|
-
showAvatars?: boolean | undefined;
|
4593
|
-
/** should this layer show the sky? default false */
|
4594
|
-
showSkybox?: boolean | undefined;
|
4595
|
-
/** should this layer show distance fog? default false */
|
4596
|
-
showFog?: boolean | undefined;
|
4597
|
-
/** ambient light overrides for this layer. default -> use same as main camera */
|
4598
|
-
ambientColorOverride?: PBColor3 | undefined;
|
4599
|
-
ambientBrightnessOverride?: number | undefined;
|
4600
|
-
}
|
4601
|
-
|
4602
|
-
/**
|
4603
|
-
* @public
|
4604
|
-
*/
|
4605
|
-
export declare namespace PBCameraLayer {
|
4606
|
-
export function encode(message: PBCameraLayer, writer?: _m0.Writer): _m0.Writer;
|
4607
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBCameraLayer;
|
4608
|
-
}
|
4609
|
-
|
4610
|
-
/**
|
4611
|
-
* @public
|
4612
|
-
*/
|
4613
|
-
export declare interface PBCameraLayers {
|
4614
|
-
layers: number[];
|
4615
|
-
}
|
4616
|
-
|
4617
|
-
/**
|
4618
|
-
* @public
|
4619
|
-
*/
|
4620
|
-
export declare namespace PBCameraLayers {
|
4621
|
-
export function encode(message: PBCameraLayers, writer?: _m0.Writer): _m0.Writer;
|
4622
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBCameraLayers;
|
4623
|
-
}
|
4624
|
-
|
4625
4362
|
/**
|
4626
4363
|
* The CameraMode component can be used to determine whether the player is using a first-person o
|
4627
4364
|
* third-person view.
|
@@ -4644,7 +4381,7 @@ export declare namespace PBCameraMode {
|
|
4644
4381
|
|
4645
4382
|
/**
|
4646
4383
|
* The CameraModeArea component can be attached to an Entity to define a region of space where
|
4647
|
-
* the player's camera mode (1st-person
|
4384
|
+
* the player's camera mode (1st-person or 3rd-person) is overridden.
|
4648
4385
|
*
|
4649
4386
|
* The Entity's Transform position determines the center-point of the region, while its size is
|
4650
4387
|
* given as a vector in the `area` property below. The Transform rotation is applied, but the scale
|
@@ -4654,8 +4391,6 @@ export declare namespace PBCameraMode {
|
|
4654
4391
|
*
|
4655
4392
|
* Note that, while commonly used to delineate a 2D area in a scene (hence the name), the region
|
4656
4393
|
* is actually a 3D volume.
|
4657
|
-
*
|
4658
|
-
* When mode is set to CtCinematic, the cinematic_settings field must also be provided.
|
4659
4394
|
*/
|
4660
4395
|
/**
|
4661
4396
|
* @public
|
@@ -4665,9 +4400,6 @@ export declare interface PBCameraModeArea {
|
|
4665
4400
|
area: PBVector3 | undefined;
|
4666
4401
|
/** the camera mode to enforce */
|
4667
4402
|
mode: CameraType;
|
4668
|
-
cinematicSettings?: CinematicSettings | undefined;
|
4669
|
-
/** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
|
4670
|
-
useColliderRange?: boolean | undefined;
|
4671
4403
|
}
|
4672
4404
|
|
4673
4405
|
/**
|
@@ -4739,39 +4471,6 @@ export declare namespace PBEngineInfo {
|
|
4739
4471
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBEngineInfo;
|
4740
4472
|
}
|
4741
4473
|
|
4742
|
-
/**
|
4743
|
-
* defines the global scene light settings. must be added to the scene root.
|
4744
|
-
* to control sunlight color, intensity, shadows etc, you can also add a PBLight to the scene root.
|
4745
|
-
*/
|
4746
|
-
/**
|
4747
|
-
* @public
|
4748
|
-
*/
|
4749
|
-
export declare interface PBGlobalLight {
|
4750
|
-
/**
|
4751
|
-
* the direction the directional light shines in.
|
4752
|
-
* default depends on time of day and explorer implementation
|
4753
|
-
*/
|
4754
|
-
direction?: PBVector3 | undefined;
|
4755
|
-
/**
|
4756
|
-
* ambient light color
|
4757
|
-
* default: White
|
4758
|
-
*/
|
4759
|
-
ambientColor?: PBColor3 | undefined;
|
4760
|
-
/**
|
4761
|
-
* ambient light intensity. the explorer default ambient brightness is multiplied by this non-physical quantity.
|
4762
|
-
* default 1
|
4763
|
-
*/
|
4764
|
-
ambientBrightness?: number | undefined;
|
4765
|
-
}
|
4766
|
-
|
4767
|
-
/**
|
4768
|
-
* @public
|
4769
|
-
*/
|
4770
|
-
export declare namespace PBGlobalLight {
|
4771
|
-
export function encode(message: PBGlobalLight, writer?: _m0.Writer): _m0.Writer;
|
4772
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGlobalLight;
|
4773
|
-
}
|
4774
|
-
|
4775
4474
|
/**
|
4776
4475
|
* GltfContainer loads a GLTF file (and any additional files packaged inside) attached to an Entity.
|
4777
4476
|
*
|
@@ -4807,25 +4506,6 @@ export declare namespace PBGltfContainer {
|
|
4807
4506
|
*/
|
4808
4507
|
export declare interface PBGltfContainerLoadingState {
|
4809
4508
|
currentState: LoadingState;
|
4810
|
-
/** all node paths in the gltf, which can be used with a GltfNode to inspect and modify the gltf contents */
|
4811
|
-
nodePaths: string[];
|
4812
|
-
/** all meshes in the gltf. unnamed meshes will be auto-assigned a name of the form `MeshX` or `MeshX/PrimitiveY` */
|
4813
|
-
meshNames: string[];
|
4814
|
-
/**
|
4815
|
-
* where X is the mesh index and Y is the primitive index (and there is more than 1 primitive). note this may
|
4816
|
-
* conflict with manually named meshes - to avoid any issues make sure all your meshes are explicitly named.
|
4817
|
-
*/
|
4818
|
-
materialNames: string[];
|
4819
|
-
/**
|
4820
|
-
* X is the material index. note this may conflict with manually named materials - to avoid any issues make
|
4821
|
-
* sure all your materials are explicitly named.
|
4822
|
-
*/
|
4823
|
-
skinNames: string[];
|
4824
|
-
/**
|
4825
|
-
* X is the skin index. note this may conflict with manually named skins - to avoid any issues make sure all
|
4826
|
-
* your skins are explicitly named.
|
4827
|
-
*/
|
4828
|
-
animationNames: string[];
|
4829
4509
|
}
|
4830
4510
|
|
4831
4511
|
/**
|
@@ -4837,74 +4517,48 @@ export declare namespace PBGltfContainerLoadingState {
|
|
4837
4517
|
}
|
4838
4518
|
|
4839
4519
|
/**
|
4840
|
-
*
|
4841
|
-
* This component must be added to a direct child of an entity with a PBGltfContainer component, or
|
4842
|
-
* to a direct child of another entity with a GltfNode component, and the referenced gltf node must be a descendent of the gltf node
|
4843
|
-
* in the parent.
|
4844
|
-
* The name must match the path of one of the nodes within the Gltf. These are available on the GltfContainerLoadingState component.
|
4845
|
-
*
|
4846
|
-
* The renderer will attach a PBGltfNodeState to the entity describing the state. Once the state is `GNS_READY`,
|
4847
|
-
* - the `Transform` will be updated to match the position of the node within the gltf (relative to the gltf root, or the parent node),
|
4848
|
-
* - a `MeshRenderer` with a GltfMesh mesh type will be added (if the gltf node has a mesh).
|
4849
|
-
* - a `MeshCollider` with a GltfMesh mesh type will be added (if the gltf node has a collider).
|
4850
|
-
* - a `Material` component including a GltfMaterial reference will be added (if the gltf node has a material).
|
4520
|
+
* GltfNodeModifiers component is to be used attached to entities that have the GltfContainer component.
|
4851
4521
|
*
|
4852
|
-
*
|
4522
|
+
* This allows to override either the Material or the Casting Shadows behaviour of the target GLTF Node.
|
4853
4523
|
*
|
4854
|
-
*
|
4855
|
-
*
|
4856
|
-
*
|
4857
|
-
*
|
4858
|
-
* - `Visibility` can be added to hide or show the node and it's children in the gltf hierarchy.
|
4859
|
-
* - `MeshRenderer` can be added/modified/removed to create/modify/remove a mesh on the node.
|
4860
|
-
* - `MeshCollider` can be added/modified/removed to create/modify/remove a collider on the node.
|
4861
|
-
* - `Material` can be added or modified to change the material properties. If the gltf node has a material, the original material will be
|
4862
|
-
* 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
|
4863
|
-
* PBMaterial will be maintained.
|
4864
|
-
*
|
4865
|
-
* The scene can add additional entities as children to the gltf node, but structural modifications of the gltf are not possible:
|
4866
|
-
* - changing the scene hierarchy will not change the gltf node hierarchy. Moving the entity out of the gltf will sever the link and
|
4867
|
-
* change the state to `GNS_FAILED`.
|
4868
|
-
* - deleting the scene entity will not delete the gltf node.
|
4869
|
-
*
|
4870
|
-
* Removing the GltfNode will revert any changes to the original gltf. If the GltfNode component is removed and the mesh/collider/material
|
4871
|
-
* are not removed, this will result in a duplication of these components as the previously-linked entity will retain it's components and
|
4872
|
-
* the gltf node will also be displayed.
|
4524
|
+
* * If the 'path' of the first modifier in the collection is an empty string: the configuration will
|
4525
|
+
* affect all of the GLTF Nodes (as a global modifier).
|
4526
|
+
* * Otherwise, for the modifiers whose 'path' is found in the GLTF hierarchy, the modifier will affect only
|
4527
|
+
* the target Nodes.
|
4873
4528
|
*/
|
4874
4529
|
/**
|
4875
4530
|
* @public
|
4876
4531
|
*/
|
4877
|
-
export declare interface
|
4878
|
-
|
4879
|
-
path: string;
|
4532
|
+
export declare interface PBGltfNodeModifiers {
|
4533
|
+
modifiers: PBGltfNodeModifiers_GltfNodeModifier[];
|
4880
4534
|
}
|
4881
4535
|
|
4882
4536
|
/**
|
4883
4537
|
* @public
|
4884
4538
|
*/
|
4885
|
-
export declare namespace
|
4886
|
-
export function encode(message:
|
4887
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number):
|
4539
|
+
export declare namespace PBGltfNodeModifiers {
|
4540
|
+
export function encode(message: PBGltfNodeModifiers, writer?: _m0.Writer): _m0.Writer;
|
4541
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNodeModifiers;
|
4888
4542
|
}
|
4889
4543
|
|
4890
|
-
/**
|
4891
|
-
* The state of a linked gltf node.
|
4892
|
-
* If the state is GNSV_FAILED, the renderer may describe the failure in the error string.
|
4893
|
-
*/
|
4894
4544
|
/**
|
4895
4545
|
* @public
|
4896
4546
|
*/
|
4897
|
-
export declare interface
|
4898
|
-
|
4899
|
-
|
4547
|
+
export declare interface PBGltfNodeModifiers_GltfNodeModifier {
|
4548
|
+
/** The GLTF hierarchy path of the target Node to be affected */
|
4549
|
+
path: string;
|
4550
|
+
/** The casting shadows enabled override */
|
4551
|
+
castShadows?: boolean | undefined;
|
4552
|
+
/** The Material that will be overridden on the target Node */
|
4553
|
+
material?: PBMaterial | undefined;
|
4900
4554
|
}
|
4901
4555
|
|
4902
4556
|
/**
|
4903
4557
|
* @public
|
4904
4558
|
*/
|
4905
|
-
export declare namespace
|
4906
|
-
export function encode(message:
|
4907
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number):
|
4559
|
+
export declare namespace PBGltfNodeModifiers_GltfNodeModifier {
|
4560
|
+
export function encode(message: PBGltfNodeModifiers_GltfNodeModifier, writer?: _m0.Writer): _m0.Writer;
|
4561
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNodeModifiers_GltfNodeModifier;
|
4908
4562
|
}
|
4909
4563
|
|
4910
4564
|
/**
|
@@ -4946,62 +4600,6 @@ export declare namespace PBInputModifier_StandardInput {
|
|
4946
4600
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
|
4947
4601
|
}
|
4948
4602
|
|
4949
|
-
/**
|
4950
|
-
* defines a light source.
|
4951
|
-
* the world has a default directional light (like sunlight) which can be overridden by adding the light component to the scene root.
|
4952
|
-
* a PBGlobalLight component can also be added to the root to control the directional light direction.
|
4953
|
-
* point lights (lightbulbs) or spotlights can be created by attaching the light component to non-root entities.
|
4954
|
-
*/
|
4955
|
-
/**
|
4956
|
-
* @public
|
4957
|
-
*/
|
4958
|
-
export declare interface PBLight {
|
4959
|
-
/**
|
4960
|
-
* whether the light is on
|
4961
|
-
* default true
|
4962
|
-
*/
|
4963
|
-
enabled?: boolean | undefined;
|
4964
|
-
/**
|
4965
|
-
* light brightness in lux (lumens/m^2).
|
4966
|
-
*
|
4967
|
-
* 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).
|
4968
|
-
* the default global light illuminance varies from 400 (sunrise/sunset) to 10,000 (midday).
|
4969
|
-
* for typical values, see https://en.wikipedia.org/wiki/Lux#Illuminance
|
4970
|
-
*
|
4971
|
-
* for point and spot lights, this is the lumens/m^2 at 1m distance from the light. to transform from raw lumens,
|
4972
|
-
* divide lumens by ~12 (4*pi).
|
4973
|
-
* e.g. a 100w household bulb with 1200 lumens would have an illuminance of ~100.
|
4974
|
-
* a lighthouse bulb with 200,000 lumens would have an illuminance of ~15,000 (ignoring beam reflections)
|
4975
|
-
*
|
4976
|
-
* default
|
4977
|
-
* for point/spotlights: 10,000
|
4978
|
-
* for global directional light: depends on explorer implementation. may vary on light direction, time of day, etc
|
4979
|
-
*/
|
4980
|
-
illuminance?: number | undefined;
|
4981
|
-
/**
|
4982
|
-
* whether the light should cast shadows.
|
4983
|
-
* note: even when set to true the engine may not display shadows, or may only show shadows for a limited number
|
4984
|
-
* of lights depending on the implementation, platform, and user settings.
|
4985
|
-
* default
|
4986
|
-
* for point/spotlights: false / off
|
4987
|
-
* for global directional light: true / on
|
4988
|
-
*/
|
4989
|
-
shadows?: boolean | undefined;
|
4990
|
-
/**
|
4991
|
-
* light color
|
4992
|
-
* default White
|
4993
|
-
*/
|
4994
|
-
color?: PBColor3 | undefined;
|
4995
|
-
}
|
4996
|
-
|
4997
|
-
/**
|
4998
|
-
* @public
|
4999
|
-
*/
|
5000
|
-
export declare namespace PBLight {
|
5001
|
-
export function encode(message: PBLight, writer?: _m0.Writer): _m0.Writer;
|
5002
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLight;
|
5003
|
-
}
|
5004
|
-
|
5005
4603
|
/**
|
5006
4604
|
* PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
|
5007
4605
|
* This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
|
@@ -5033,14 +4631,6 @@ export declare interface PBMaterial {
|
|
5033
4631
|
$case: "pbr";
|
5034
4632
|
pbr: PBMaterial_PbrMaterial;
|
5035
4633
|
} | undefined;
|
5036
|
-
/**
|
5037
|
-
* A gltf material that may provide additional features not supported by the PbMaterial fields.
|
5038
|
-
* If both gltf and material fields are provided, the gltf will be used only for extended features not
|
5039
|
-
* supported by the PbMaterial.
|
5040
|
-
* If this is provided and the `material` field is not provided, the renderer will update the material
|
5041
|
-
* field with data that reflects the gltf material once it is loaded.
|
5042
|
-
*/
|
5043
|
-
gltf?: PBMaterial_GltfMaterial | undefined;
|
5044
4634
|
}
|
5045
4635
|
|
5046
4636
|
/**
|
@@ -5051,22 +4641,6 @@ export declare namespace PBMaterial {
|
|
5051
4641
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMaterial;
|
5052
4642
|
}
|
5053
4643
|
|
5054
|
-
/**
|
5055
|
-
* @public
|
5056
|
-
*/
|
5057
|
-
export declare interface PBMaterial_GltfMaterial {
|
5058
|
-
gltfSrc: string;
|
5059
|
-
name: string;
|
5060
|
-
}
|
5061
|
-
|
5062
|
-
/**
|
5063
|
-
* @public
|
5064
|
-
*/
|
5065
|
-
export declare namespace PBMaterial_GltfMaterial {
|
5066
|
-
export function encode(message: PBMaterial_GltfMaterial, writer?: _m0.Writer): _m0.Writer;
|
5067
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMaterial_GltfMaterial;
|
5068
|
-
}
|
5069
|
-
|
5070
4644
|
/**
|
5071
4645
|
* @public
|
5072
4646
|
*/
|
@@ -5163,9 +4737,6 @@ export declare interface PBMeshCollider {
|
|
5163
4737
|
} | {
|
5164
4738
|
$case: "plane";
|
5165
4739
|
plane: PBMeshCollider_PlaneMesh;
|
5166
|
-
} | {
|
5167
|
-
$case: "gltf";
|
5168
|
-
gltf: PBMeshCollider_GltfMesh;
|
5169
4740
|
} | undefined;
|
5170
4741
|
}
|
5171
4742
|
|
@@ -5211,25 +4782,6 @@ export declare namespace PBMeshCollider_CylinderMesh {
|
|
5211
4782
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshCollider_CylinderMesh;
|
5212
4783
|
}
|
5213
4784
|
|
5214
|
-
/** A collider constructed from a Gltf Mesh. */
|
5215
|
-
/**
|
5216
|
-
* @public
|
5217
|
-
*/
|
5218
|
-
export declare interface PBMeshCollider_GltfMesh {
|
5219
|
-
/** the GLTF file path as listed in the scene's manifest. */
|
5220
|
-
gltfSrc: string;
|
5221
|
-
/** the name of the mesh asset */
|
5222
|
-
name: string;
|
5223
|
-
}
|
5224
|
-
|
5225
|
-
/**
|
5226
|
-
* @public
|
5227
|
-
*/
|
5228
|
-
export declare namespace PBMeshCollider_GltfMesh {
|
5229
|
-
export function encode(message: PBMeshCollider_GltfMesh, writer?: _m0.Writer): _m0.Writer;
|
5230
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshCollider_GltfMesh;
|
5231
|
-
}
|
5232
|
-
|
5233
4785
|
/** PlaneMesh is a 2D rectangle described by the Entity's Transform. */
|
5234
4786
|
/**
|
5235
4787
|
* @public
|
@@ -5262,11 +4814,13 @@ export declare namespace PBMeshCollider_SphereMesh {
|
|
5262
4814
|
|
5263
4815
|
/**
|
5264
4816
|
* The MeshRenderer component renders a basic geometric shape for an Entity. It can be a cube, a
|
5265
|
-
* plane, a sphere
|
4817
|
+
* plane, a sphere or a cylinder.
|
5266
4818
|
*
|
5267
4819
|
* The cube and plane variants can include a UV texture mapping, so specific areas of a material
|
5268
4820
|
* texture are rendered on different faces of the shape. They are serialized as a sequence of 2D
|
5269
4821
|
* `float` coordinates, one for each corner of each side of each face.
|
4822
|
+
*
|
4823
|
+
* More complex shapes require the use of a `GltfContainer` component.
|
5270
4824
|
*/
|
5271
4825
|
/**
|
5272
4826
|
* @public
|
@@ -5284,9 +4838,6 @@ export declare interface PBMeshRenderer {
|
|
5284
4838
|
} | {
|
5285
4839
|
$case: "plane";
|
5286
4840
|
plane: PBMeshRenderer_PlaneMesh;
|
5287
|
-
} | {
|
5288
|
-
$case: "gltf";
|
5289
|
-
gltf: PBMeshRenderer_GltfMesh;
|
5290
4841
|
} | undefined;
|
5291
4842
|
}
|
5292
4843
|
|
@@ -5334,25 +4885,6 @@ export declare namespace PBMeshRenderer_CylinderMesh {
|
|
5334
4885
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshRenderer_CylinderMesh;
|
5335
4886
|
}
|
5336
4887
|
|
5337
|
-
/** A mesh from a Gltf. */
|
5338
|
-
/**
|
5339
|
-
* @public
|
5340
|
-
*/
|
5341
|
-
export declare interface PBMeshRenderer_GltfMesh {
|
5342
|
-
/** the GLTF file path as listed in the scene's manifest. */
|
5343
|
-
gltfSrc: string;
|
5344
|
-
/** the name of the mesh asset */
|
5345
|
-
name: string;
|
5346
|
-
}
|
5347
|
-
|
5348
|
-
/**
|
5349
|
-
* @public
|
5350
|
-
*/
|
5351
|
-
export declare namespace PBMeshRenderer_GltfMesh {
|
5352
|
-
export function encode(message: PBMeshRenderer_GltfMesh, writer?: _m0.Writer): _m0.Writer;
|
5353
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshRenderer_GltfMesh;
|
5354
|
-
}
|
5355
|
-
|
5356
4888
|
/** PlaneMesh renders a 2D rectangular shape. */
|
5357
4889
|
/**
|
5358
4890
|
* @public
|
@@ -5601,10 +5133,7 @@ export declare interface PBPrimaryPointerInfo {
|
|
5601
5133
|
screenCoordinates?: PBVector2 | undefined;
|
5602
5134
|
/** Movement since last frame (pixels) */
|
5603
5135
|
screenDelta?: PBVector2 | undefined;
|
5604
|
-
/**
|
5605
|
-
* ray direction that can be used with the primary camera origin for
|
5606
|
-
* raycasting from the cursor into the world
|
5607
|
-
*/
|
5136
|
+
/** Direction vector for 3D ray casting */
|
5608
5137
|
worldRayDirection?: PBVector3 | undefined;
|
5609
5138
|
}
|
5610
5139
|
|
@@ -5745,36 +5274,25 @@ export declare namespace PBRealmInfo {
|
|
5745
5274
|
}
|
5746
5275
|
|
5747
5276
|
/**
|
5748
|
-
*
|
5749
|
-
*
|
5750
|
-
* add this component together with the PBLight component to transform a point light into a spotlight.
|
5751
|
-
* note that spotlights do not model any internal reflections / focus, they only restrict the area of effect.
|
5752
|
-
* so for e.g. a torch beam, the bulb illuminance should be multiplied by the solid angle.
|
5753
|
-
* a typical torch with a beam width of 15 degrees would use outer angle of 0.15 (7.5 degrees in radians),
|
5754
|
-
* and an illuminance approximately equal to the bulb's lumens, e.g. 1200.
|
5277
|
+
* The SkyboxTime component allows controlling the time of day for the skybox,
|
5278
|
+
* affecting the lighting and appearance of the sky in the scene.
|
5755
5279
|
*/
|
5756
5280
|
/**
|
5757
5281
|
* @public
|
5758
5282
|
*/
|
5759
|
-
export declare interface
|
5760
|
-
/**
|
5761
|
-
|
5762
|
-
|
5763
|
-
|
5764
|
-
angle: number;
|
5765
|
-
/**
|
5766
|
-
* optional angle at which the light is brightest. should be <= outer angle.
|
5767
|
-
* if specified, the light will fall off smoothly between `inner_angle` and `angle`.
|
5768
|
-
*/
|
5769
|
-
innerAngle?: number | undefined;
|
5283
|
+
export declare interface PBSkyboxTime {
|
5284
|
+
/** fixed time of day, represented as a number of seconds since the start of the day, where 0 is 00:00hs, 43200 is 12:00hs and 86400 is 24:00hs */
|
5285
|
+
fixedTime: number;
|
5286
|
+
/** default = TransitionMode.TM_FORWARD, controls the direction of time transitions */
|
5287
|
+
transitionMode?: TransitionMode | undefined;
|
5770
5288
|
}
|
5771
5289
|
|
5772
5290
|
/**
|
5773
5291
|
* @public
|
5774
5292
|
*/
|
5775
|
-
export declare namespace
|
5776
|
-
export function encode(message:
|
5777
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number):
|
5293
|
+
export declare namespace PBSkyboxTime {
|
5294
|
+
export function encode(message: PBSkyboxTime, writer?: _m0.Writer): _m0.Writer;
|
5295
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSkyboxTime;
|
5778
5296
|
}
|
5779
5297
|
|
5780
5298
|
/**
|
@@ -5841,46 +5359,6 @@ export declare namespace PBTextShape {
|
|
5841
5359
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTextShape;
|
5842
5360
|
}
|
5843
5361
|
|
5844
|
-
/**
|
5845
|
-
* @public
|
5846
|
-
*/
|
5847
|
-
export declare interface PBTextureCamera {
|
5848
|
-
/** rendered texture width */
|
5849
|
-
width?: number | undefined;
|
5850
|
-
/** rendered texture height */
|
5851
|
-
height?: number | undefined;
|
5852
|
-
/**
|
5853
|
-
* which layer of entities to render. entity layers can be specified by adding PBCameraLayers to target entities.
|
5854
|
-
* defaults to 0
|
5855
|
-
*/
|
5856
|
-
layer?: number | undefined;
|
5857
|
-
/** default black */
|
5858
|
-
clearColor?: PBColor4 | undefined;
|
5859
|
-
/** default infinity */
|
5860
|
-
farPlane?: number | undefined;
|
5861
|
-
mode?: {
|
5862
|
-
$case: "perspective";
|
5863
|
-
perspective: Perspective;
|
5864
|
-
} | {
|
5865
|
-
$case: "orthographic";
|
5866
|
-
orthographic: Orthographic;
|
5867
|
-
} | undefined;
|
5868
|
-
/**
|
5869
|
-
* controls whether this camera acts as a receiver for audio on sources with matching `PBCameraLayers`.
|
5870
|
-
* range: 0 (off) - 1 (full volume)
|
5871
|
-
* default: 0
|
5872
|
-
*/
|
5873
|
-
volume?: number | undefined;
|
5874
|
-
}
|
5875
|
-
|
5876
|
-
/**
|
5877
|
-
* @public
|
5878
|
-
*/
|
5879
|
-
export declare namespace PBTextureCamera {
|
5880
|
-
export function encode(message: PBTextureCamera, writer?: _m0.Writer): _m0.Writer;
|
5881
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTextureCamera;
|
5882
|
-
}
|
5883
|
-
|
5884
5362
|
/**
|
5885
5363
|
* @public
|
5886
5364
|
*/
|
@@ -5970,25 +5448,6 @@ export declare namespace PBUiBackground {
|
|
5970
5448
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiBackground;
|
5971
5449
|
}
|
5972
5450
|
|
5973
|
-
/** The UiCanvas component can be attached to a ui root entity to specify properties of the ui texture. */
|
5974
|
-
/**
|
5975
|
-
* @public
|
5976
|
-
*/
|
5977
|
-
export declare interface PBUiCanvas {
|
5978
|
-
width: number;
|
5979
|
-
height: number;
|
5980
|
-
/** default = (0.0, 0.0, 0.0, 0.0) / transparent */
|
5981
|
-
color?: PBColor4 | undefined;
|
5982
|
-
}
|
5983
|
-
|
5984
|
-
/**
|
5985
|
-
* @public
|
5986
|
-
*/
|
5987
|
-
export declare namespace PBUiCanvas {
|
5988
|
-
export function encode(message: PBUiCanvas, writer?: _m0.Writer): _m0.Writer;
|
5989
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiCanvas;
|
5990
|
-
}
|
5991
|
-
|
5992
5451
|
/** This component is created by the renderer and used by the scenes to know the resolution of the UI canvas */
|
5993
5452
|
/**
|
5994
5453
|
* @public
|
@@ -6105,21 +5564,6 @@ export declare namespace PBUiInputResult {
|
|
6105
5564
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputResult;
|
6106
5565
|
}
|
6107
5566
|
|
6108
|
-
/**
|
6109
|
-
* @public
|
6110
|
-
*/
|
6111
|
-
export declare interface PBUiScrollResult {
|
6112
|
-
value: PBVector2 | undefined;
|
6113
|
-
}
|
6114
|
-
|
6115
|
-
/**
|
6116
|
-
* @public
|
6117
|
-
*/
|
6118
|
-
export declare namespace PBUiScrollResult {
|
6119
|
-
export function encode(message: PBUiScrollResult, writer?: _m0.Writer): _m0.Writer;
|
6120
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiScrollResult;
|
6121
|
-
}
|
6122
|
-
|
6123
5567
|
/**
|
6124
5568
|
* @public
|
6125
5569
|
*/
|
@@ -6136,10 +5580,6 @@ export declare interface PBUiText {
|
|
6136
5580
|
fontSize?: number | undefined;
|
6137
5581
|
/** wrap text when the border is reached (default: TW_WRAP) */
|
6138
5582
|
textWrap?: TextWrap | undefined;
|
6139
|
-
/** width of the outline (default: 0) */
|
6140
|
-
outlineWidth?: number | undefined;
|
6141
|
-
/** RGBA color of the outline (default: opaque black) */
|
6142
|
-
outlineColor?: PBColor4 | undefined;
|
6143
5583
|
}
|
6144
5584
|
|
6145
5585
|
/**
|
@@ -6267,12 +5707,6 @@ export declare interface PBUiTransform {
|
|
6267
5707
|
borderRightColor?: PBColor4 | undefined;
|
6268
5708
|
/** default: 1 */
|
6269
5709
|
opacity?: number | undefined;
|
6270
|
-
/** reference for scroll_position. default empty */
|
6271
|
-
elementId?: string | undefined;
|
6272
|
-
/** default position=(0,0) */
|
6273
|
-
scrollPosition?: ScrollPositionValue | undefined;
|
6274
|
-
/** default ShowScrollBar.SSB_BOTH */
|
6275
|
-
scrollVisible?: ShowScrollBar | undefined;
|
6276
5710
|
/** default: 0 — controls render stacking order. Higher values appear in front of lower values. */
|
6277
5711
|
zIndex?: number | undefined;
|
6278
5712
|
}
|
@@ -6404,25 +5838,6 @@ export declare namespace PBVisibilityComponent {
|
|
6404
5838
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBVisibilityComponent;
|
6405
5839
|
}
|
6406
5840
|
|
6407
|
-
/**
|
6408
|
-
* @public
|
6409
|
-
*/
|
6410
|
-
export declare interface Perspective {
|
6411
|
-
/**
|
6412
|
-
* vertical field of view in radians
|
6413
|
-
* defaults to pi/4 = 45 degrees
|
6414
|
-
*/
|
6415
|
-
fieldOfView?: number | undefined;
|
6416
|
-
}
|
6417
|
-
|
6418
|
-
/**
|
6419
|
-
* @public
|
6420
|
-
*/
|
6421
|
-
export declare namespace Perspective {
|
6422
|
-
export function encode(message: Perspective, writer?: _m0.Writer): _m0.Writer;
|
6423
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): Perspective;
|
6424
|
-
}
|
6425
|
-
|
6426
5841
|
/**
|
6427
5842
|
* Represens a plane by the equation ax + by + cz + d = 0
|
6428
5843
|
* @public
|
@@ -6578,37 +5993,11 @@ export declare interface PointerEventsSystem {
|
|
6578
5993
|
* @param entity - Entity where the callback was attached
|
6579
5994
|
*/
|
6580
5995
|
removeOnPointerHoverLeave(entity: Entity): void;
|
6581
|
-
/**
|
6582
|
-
* @public
|
6583
|
-
* Remove the callback for onPointerDrag event
|
6584
|
-
* @param entity - Entity where the callback was attached
|
6585
|
-
*/
|
6586
|
-
removeOnPointerDrag(entity: Entity): void;
|
6587
|
-
/**
|
6588
|
-
* @public
|
6589
|
-
* Remove the callback for onPointerDragLocked event
|
6590
|
-
* @param entity - Entity where the callback was attached
|
6591
|
-
*/
|
6592
|
-
removeOnPointerDragLocked(entity: Entity): void;
|
6593
|
-
/**
|
6594
|
-
* @public
|
6595
|
-
* Remove the callback for onPointerDragEnd event
|
6596
|
-
* @param entity - Entity where the callback was attached
|
6597
|
-
*/
|
6598
|
-
removeOnPointerDragEnd(entity: Entity): void;
|
6599
|
-
/**
|
6600
|
-
* @public
|
6601
|
-
* Execute callbacks when the user presses one of the InputButtons pointing at the entity
|
6602
|
-
* @param pointerData - Entity to attach the callbacks, list of options to trigger Feedback, Button, and Callback
|
6603
|
-
*/
|
6604
|
-
onPointerDown(pointerData: {
|
6605
|
-
entity: Entity;
|
6606
|
-
optsList: EventSystemOptionsCallback[];
|
6607
|
-
}): void;
|
6608
5996
|
/**
|
6609
5997
|
* @public
|
6610
5998
|
* Execute callback when the user press the InputButton pointing at the entity
|
6611
5999
|
* @param pointerData - Entity to attach the callback, Opts to trigger Feedback and Button
|
6000
|
+
* @param cb - Function to execute when click fires
|
6612
6001
|
*/
|
6613
6002
|
onPointerDown(pointerData: {
|
6614
6003
|
entity: Entity;
|
@@ -6621,15 +6010,6 @@ export declare interface PointerEventsSystem {
|
|
6621
6010
|
* @param opts - Opts to trigger Feedback and Button
|
6622
6011
|
*/
|
6623
6012
|
onPointerDown(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
|
6624
|
-
/**
|
6625
|
-
* @public
|
6626
|
-
* Execute callbacks when the user releases one of the InputButtons pointing at the entity
|
6627
|
-
* @param pointerData - Entity to attach the callbacks, list of options to trigger Feedback, Button, and Callback
|
6628
|
-
*/
|
6629
|
-
onPointerUp(pointerData: {
|
6630
|
-
entity: Entity;
|
6631
|
-
optsList: EventSystemOptionsCallback[];
|
6632
|
-
}): void;
|
6633
6013
|
/**
|
6634
6014
|
* @public
|
6635
6015
|
* Execute callback when the user releases the InputButton pointing at the entity
|
@@ -6667,64 +6047,6 @@ export declare interface PointerEventsSystem {
|
|
6667
6047
|
entity: Entity;
|
6668
6048
|
opts?: Partial<EventSystemOptions>;
|
6669
6049
|
}, cb: EventSystemCallback): void;
|
6670
|
-
/**
|
6671
|
-
* @public
|
6672
|
-
* Execute callbacks when the user drags the pointer from inside the entity
|
6673
|
-
* @param pointerData - Entity to attach the callbacks, list of options to trigger Feedback, Button, and Callback
|
6674
|
-
*/
|
6675
|
-
onPointerDrag(pointerData: {
|
6676
|
-
entity: Entity;
|
6677
|
-
optsList: EventSystemOptionsCallback[];
|
6678
|
-
}): void;
|
6679
|
-
/**
|
6680
|
-
* @public
|
6681
|
-
* Execute callback when the user clicks and drags the pointer from inside the entity
|
6682
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
6683
|
-
* @param cb - Function to execute when click fires
|
6684
|
-
*/
|
6685
|
-
onPointerDrag(pointerData: {
|
6686
|
-
entity: Entity;
|
6687
|
-
opts?: Partial<EventSystemOptions>;
|
6688
|
-
}, cb: EventSystemCallback): void;
|
6689
|
-
/**
|
6690
|
-
* @public
|
6691
|
-
* Execute callbacks when the user drags the pointer from inside the entity, locking the cursor in place.
|
6692
|
-
* @param pointerData - Entity to attach the callbacks, list of options to trigger Feedback, Button, and Callback
|
6693
|
-
*/
|
6694
|
-
onPointerDragLocked(pointerData: {
|
6695
|
-
entity: Entity;
|
6696
|
-
optsList: EventSystemOptionsCallback[];
|
6697
|
-
}): void;
|
6698
|
-
/**
|
6699
|
-
* @public
|
6700
|
-
* Execute callback when the user clicks and drags the pointer from inside the entity,
|
6701
|
-
* locking the cursor in place
|
6702
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
6703
|
-
* @param cb - Function to execute when click fires
|
6704
|
-
*/
|
6705
|
-
onPointerDragLocked(pointerData: {
|
6706
|
-
entity: Entity;
|
6707
|
-
opts?: Partial<EventSystemOptions>;
|
6708
|
-
}, cb: EventSystemCallback): void;
|
6709
|
-
/**
|
6710
|
-
* @public
|
6711
|
-
* Execute callbacks when the user releases a button after a drag
|
6712
|
-
* @param pointerData - Entity to attach the callbacks, list of options to trigger Feedback, Button, and Callback
|
6713
|
-
*/
|
6714
|
-
onPointerDragEnd(pointerData: {
|
6715
|
-
entity: Entity;
|
6716
|
-
optsList: EventSystemOptionsCallback[];
|
6717
|
-
}): void;
|
6718
|
-
/**
|
6719
|
-
* @public
|
6720
|
-
* Execute callback when the user releases the button after a drag
|
6721
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
6722
|
-
* @param cb - Function to execute when click fires
|
6723
|
-
*/
|
6724
|
-
onPointerDragEnd(pointerData: {
|
6725
|
-
entity: Entity;
|
6726
|
-
opts?: Partial<EventSystemOptions>;
|
6727
|
-
}, cb: EventSystemCallback): void;
|
6728
6050
|
}
|
6729
6051
|
|
6730
6052
|
/**
|
@@ -6741,10 +6063,7 @@ export declare const enum PointerEventType {
|
|
6741
6063
|
PET_UP = 0,
|
6742
6064
|
PET_DOWN = 1,
|
6743
6065
|
PET_HOVER_ENTER = 2,
|
6744
|
-
PET_HOVER_LEAVE = 3
|
6745
|
-
PET_DRAG_LOCKED = 4,
|
6746
|
-
PET_DRAG = 5,
|
6747
|
-
PET_DRAG_END = 6
|
6066
|
+
PET_HOVER_LEAVE = 3
|
6748
6067
|
}
|
6749
6068
|
|
6750
6069
|
/**
|
@@ -6775,10 +6094,7 @@ export declare const enum PointerType {
|
|
6775
6094
|
/** POT_NONE - No pointer input */
|
6776
6095
|
POT_NONE = 0,
|
6777
6096
|
/** POT_MOUSE - Traditional mouse input */
|
6778
|
-
POT_MOUSE = 1
|
6779
|
-
POT_PAD = 2,
|
6780
|
-
POT_TOUCH = 3,
|
6781
|
-
POT_WAND = 4
|
6097
|
+
POT_MOUSE = 1
|
6782
6098
|
}
|
6783
6099
|
|
6784
6100
|
/**
|
@@ -7375,7 +6691,6 @@ export declare type RaycastSystemOptions = {
|
|
7375
6691
|
export declare interface ReactBasedUiSystem {
|
7376
6692
|
destroy(): void;
|
7377
6693
|
setUiRenderer(ui: UiComponent): void;
|
7378
|
-
setTextureRenderer(entity: Entity, ui: UiComponent): void;
|
7379
6694
|
}
|
7380
6695
|
|
7381
6696
|
/**
|
@@ -7838,42 +7153,8 @@ export declare namespace Schemas {
|
|
7838
7153
|
}) => void;
|
7839
7154
|
}
|
7840
7155
|
|
7841
|
-
/**
|
7842
|
-
|
7843
|
-
*/
|
7844
|
-
export declare interface ScrollPositionValue {
|
7845
|
-
value?: {
|
7846
|
-
$case: "position";
|
7847
|
-
position: PBVector2;
|
7848
|
-
} | {
|
7849
|
-
$case: "reference";
|
7850
|
-
reference: string;
|
7851
|
-
} | undefined;
|
7852
|
-
}
|
7853
|
-
|
7854
|
-
/**
|
7855
|
-
* @public
|
7856
|
-
*/
|
7857
|
-
export declare namespace ScrollPositionValue {
|
7858
|
-
export function encode(message: ScrollPositionValue, writer?: _m0.Writer): _m0.Writer;
|
7859
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): ScrollPositionValue;
|
7860
|
-
}
|
7861
|
-
|
7862
|
-
/**
|
7863
|
-
* @public
|
7864
|
-
* The scroll-visible determines if the scrollbars are shown when the scroll overflow is enabled
|
7865
|
-
*/
|
7866
|
-
export declare type ScrollVisibleType = 'horizontal' | 'vertical' | 'both' | 'hidden';
|
7867
|
-
|
7868
|
-
/**
|
7869
|
-
* @public
|
7870
|
-
*/
|
7871
|
-
export declare const enum ShowScrollBar {
|
7872
|
-
SSB_BOTH = 0,
|
7873
|
-
SSB_ONLY_VERTICAL = 1,
|
7874
|
-
SSB_ONLY_HORIZONTAL = 2,
|
7875
|
-
SSB_HIDDEN = 3
|
7876
|
-
}
|
7156
|
+
/** @public */
|
7157
|
+
export declare const SkyboxTime: LastWriteWinElementSetComponentDefinition<PBSkyboxTime>;
|
7877
7158
|
|
7878
7159
|
/**
|
7879
7160
|
* @public
|
@@ -7882,9 +7163,6 @@ export declare interface Spec {
|
|
7882
7163
|
[key: string]: ISchema;
|
7883
7164
|
}
|
7884
7165
|
|
7885
|
-
/** @public */
|
7886
|
-
export declare const Spotlight: LastWriteWinElementSetComponentDefinition<PBSpotlight>;
|
7887
|
-
|
7888
7166
|
/**
|
7889
7167
|
* @alpha
|
7890
7168
|
* This is going to be used for sync components through a server.
|
@@ -7959,9 +7237,6 @@ export declare namespace Texture {
|
|
7959
7237
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): Texture;
|
7960
7238
|
}
|
7961
7239
|
|
7962
|
-
/** @public */
|
7963
|
-
export declare const TextureCamera: LastWriteWinElementSetComponentDefinition<PBTextureCamera>;
|
7964
|
-
|
7965
7240
|
/**
|
7966
7241
|
* @public
|
7967
7242
|
*/
|
@@ -8054,9 +7329,6 @@ export declare interface TextureUnion {
|
|
8054
7329
|
} | {
|
8055
7330
|
$case: "videoTexture";
|
8056
7331
|
videoTexture: VideoTexture;
|
8057
|
-
} | {
|
8058
|
-
$case: "uiTexture";
|
8059
|
-
uiTexture: UiCanvasTexture;
|
8060
7332
|
} | undefined;
|
8061
7333
|
}
|
8062
7334
|
|
@@ -8150,6 +7422,17 @@ export declare type TransformType = {
|
|
8150
7422
|
*/
|
8151
7423
|
export declare type TransformTypeWithOptionals = Partial<TransformType>;
|
8152
7424
|
|
7425
|
+
/** Controls the direction for animated skybox transitions */
|
7426
|
+
/**
|
7427
|
+
* @public
|
7428
|
+
*/
|
7429
|
+
export declare const enum TransitionMode {
|
7430
|
+
/** TM_FORWARD - transitions forward (default) */
|
7431
|
+
TM_FORWARD = 0,
|
7432
|
+
/** TM_BACKWARD - transitions backward */
|
7433
|
+
TM_BACKWARD = 1
|
7434
|
+
}
|
7435
|
+
|
8153
7436
|
/**
|
8154
7437
|
* @public
|
8155
7438
|
*/
|
@@ -8264,8 +7547,6 @@ export declare interface UiBackgroundProps {
|
|
8264
7547
|
uvs?: number[];
|
8265
7548
|
/** AvatarTexture for the background */
|
8266
7549
|
avatarTexture?: UiAvatarTexture;
|
8267
|
-
/** VideoTexture for the background */
|
8268
|
-
videoTexture?: UiVideoTexture;
|
8269
7550
|
/** Texture for the background */
|
8270
7551
|
texture?: UiTexture;
|
8271
7552
|
}
|
@@ -8285,31 +7566,9 @@ export declare interface UiButtonProps extends UiLabelProps, EntityPropTypes {
|
|
8285
7566
|
disabled?: boolean;
|
8286
7567
|
}
|
8287
7568
|
|
8288
|
-
/** @public */
|
8289
|
-
export declare const UiCanvas: LastWriteWinElementSetComponentDefinition<PBUiCanvas>;
|
8290
|
-
|
8291
7569
|
/** @public */
|
8292
7570
|
export declare const UiCanvasInformation: LastWriteWinElementSetComponentDefinition<PBUiCanvasInformation>;
|
8293
7571
|
|
8294
|
-
/**
|
8295
|
-
* @public
|
8296
|
-
*/
|
8297
|
-
export declare interface UiCanvasTexture {
|
8298
|
-
uiCanvasEntity: number;
|
8299
|
-
/** default = TextureWrapMode.Clamp */
|
8300
|
-
wrapMode?: TextureWrapMode | undefined;
|
8301
|
-
/** default = FilterMode.Bilinear */
|
8302
|
-
filterMode?: TextureFilterMode | undefined;
|
8303
|
-
}
|
8304
|
-
|
8305
|
-
/**
|
8306
|
-
* @public
|
8307
|
-
*/
|
8308
|
-
export declare namespace UiCanvasTexture {
|
8309
|
-
export function encode(message: UiCanvasTexture, writer?: _m0.Writer): _m0.Writer;
|
8310
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): UiCanvasTexture;
|
8311
|
-
}
|
8312
|
-
|
8313
7572
|
/**
|
8314
7573
|
* @public
|
8315
7574
|
*/
|
@@ -8379,10 +7638,6 @@ export declare interface UiLabelProps {
|
|
8379
7638
|
textAlign?: TextAlignType | undefined;
|
8380
7639
|
/** Label font type. @defaultValue 'sans-serif' */
|
8381
7640
|
font?: UiFontType | undefined;
|
8382
|
-
/** Outline width of the text. @defaultValue 0 */
|
8383
|
-
outlineWidth?: number | undefined;
|
8384
|
-
/** Outline color of the text. @defaultValue `{ r: 0, g: 0, b: 0, a: 1 }` */
|
8385
|
-
outlineColor?: PBColor4 | undefined;
|
8386
7641
|
/** Behaviour when text reached. @defaultValue 'wrap' */
|
8387
7642
|
textWrap?: UiTextWrapType | undefined;
|
8388
7643
|
}
|
@@ -8392,9 +7647,6 @@ export declare interface UiLabelProps {
|
|
8392
7647
|
*/
|
8393
7648
|
export declare type uint32 = number;
|
8394
7649
|
|
8395
|
-
/** @public */
|
8396
|
-
export declare const UiScrollResult: LastWriteWinElementSetComponentDefinition<PBUiScrollResult>;
|
8397
|
-
|
8398
7650
|
/** @public */
|
8399
7651
|
export declare const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
|
8400
7652
|
|
@@ -8472,26 +7724,10 @@ export declare interface UiTransformProps {
|
|
8472
7724
|
borderWidth?: Partial<Position> | PositionUnit;
|
8473
7725
|
/** The opacity property sets the opacity level for an element, it's accumulated across children @defaultValue 1 */
|
8474
7726
|
opacity?: number;
|
8475
|
-
/** A reference value to identify the element, default empty */
|
8476
|
-
elementId?: string;
|
8477
|
-
/** default position=(0,0) if it aplies, a vector or a reference-id */
|
8478
|
-
scrollPosition?: PBVector2 | string;
|
8479
|
-
/** default ShowScrollBar.SSB_BOTH */
|
8480
|
-
scrollVisible?: ScrollVisibleType;
|
8481
7727
|
/** default 0 */
|
8482
7728
|
zIndex?: number;
|
8483
7729
|
}
|
8484
7730
|
|
8485
|
-
/**
|
8486
|
-
* Texture
|
8487
|
-
* @public
|
8488
|
-
*/
|
8489
|
-
export declare interface UiVideoTexture {
|
8490
|
-
videoPlayerEntity: Entity;
|
8491
|
-
wrapMode?: TextureWrapType;
|
8492
|
-
filterMode?: TextureFilterType;
|
8493
|
-
}
|
8494
|
-
|
8495
7731
|
/**
|
8496
7732
|
* @public
|
8497
7733
|
*/
|