@3dverse/api 0.18.0 → 0.20.0
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/_prebuild/wrapper.d.ts +242 -144
- package/dist/index.js +6 -14
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +6 -14
- package/dist/index.mjs.map +2 -2
- package/package.json +2 -2
|
@@ -171,7 +171,7 @@ export type FolderAccess = {
|
|
|
171
171
|
export type SourceFileId = string;
|
|
172
172
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
173
173
|
export type AssetId = string;
|
|
174
|
-
export type AssetType = 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | '
|
|
174
|
+
export type AssetType = 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'nav_mesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material';
|
|
175
175
|
/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
|
|
176
176
|
export type AssetMeta = {
|
|
177
177
|
/** What the asset is, which tells the tool opening it */
|
|
@@ -258,9 +258,9 @@ export type AssetListFilters = {
|
|
|
258
258
|
/** Look for assets containing the given name (case-insensitive) */
|
|
259
259
|
asset_name?: string;
|
|
260
260
|
/** @deprecated Deprecated. Use asset_types instead. Look for assets of the given type */
|
|
261
|
-
asset_type?: (Array<'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | '
|
|
261
|
+
asset_type?: (Array<'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'nav_mesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material'> | 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'nav_mesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material') & any;
|
|
262
262
|
/** Look for assets of the given types */
|
|
263
|
-
asset_types?: Array<'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | '
|
|
263
|
+
asset_types?: Array<'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'nav_mesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material'>;
|
|
264
264
|
/** Look for assets associated with or without libraries */
|
|
265
265
|
library?: Array<string> | string | 'exclude';
|
|
266
266
|
/**
|
|
@@ -483,7 +483,7 @@ export type AssetsByContainer = {
|
|
|
483
483
|
};
|
|
484
484
|
name: string;
|
|
485
485
|
}>;
|
|
486
|
-
|
|
486
|
+
nav_meshes?: Array<{
|
|
487
487
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
488
488
|
asset_id: string;
|
|
489
489
|
/** Whether the content service stores a thumbnail of the asset */
|
|
@@ -1063,7 +1063,7 @@ export type AssetCreatableWithType = {
|
|
|
1063
1063
|
pipelineDescription?: {
|
|
1064
1064
|
/** Index of the stencil state for back face rendering */
|
|
1065
1065
|
backFaceStencilOpStateIndex?: number;
|
|
1066
|
-
/** Color blend attachement states */
|
|
1066
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
1067
1067
|
blendStateIndices?: Array<number>;
|
|
1068
1068
|
/** Cull mode */
|
|
1069
1069
|
cullMode?: number;
|
|
@@ -1098,7 +1098,7 @@ export type AssetCreatableWithType = {
|
|
|
1098
1098
|
pipelineDescription?: {
|
|
1099
1099
|
/** Index of the stencil state for back face rendering */
|
|
1100
1100
|
backFaceStencilOpStateIndex?: number;
|
|
1101
|
-
/** Color blend attachement states */
|
|
1101
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
1102
1102
|
blendStateIndices?: Array<number>;
|
|
1103
1103
|
/** Cull mode */
|
|
1104
1104
|
cullMode?: number;
|
|
@@ -1180,7 +1180,7 @@ export type AssetCreatableWithType = {
|
|
|
1180
1180
|
pipelineDescription?: {
|
|
1181
1181
|
/** Index of the stencil state for back face rendering */
|
|
1182
1182
|
backFaceStencilOpStateIndex?: number;
|
|
1183
|
-
/** Color blend attachement states */
|
|
1183
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
1184
1184
|
blendStateIndices?: Array<number>;
|
|
1185
1185
|
/** Cull mode */
|
|
1186
1186
|
cullMode?: number;
|
|
@@ -1265,7 +1265,7 @@ export type AssetCreatableWithType = {
|
|
|
1265
1265
|
pipelineDescription?: {
|
|
1266
1266
|
/** Index of the stencil state for back face rendering */
|
|
1267
1267
|
backFaceStencilOpStateIndex?: number;
|
|
1268
|
-
/** Color blend attachement states */
|
|
1268
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
1269
1269
|
blendStateIndices?: Array<number>;
|
|
1270
1270
|
/** Cull mode */
|
|
1271
1271
|
cullMode?: number;
|
|
@@ -1458,10 +1458,12 @@ export type AssetCreatableWithType = {
|
|
|
1458
1458
|
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
1459
1459
|
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
1460
1460
|
openMode?: 'read' | 'write' | 'readwrite';
|
|
1461
|
-
/**
|
|
1461
|
+
/** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
|
|
1462
1462
|
spec?: {
|
|
1463
1463
|
[_additionalproperties_: string]: number | boolean;
|
|
1464
|
-
}
|
|
1464
|
+
} | Array<{
|
|
1465
|
+
[_additionalproperties_: string]: number | boolean;
|
|
1466
|
+
}>;
|
|
1465
1467
|
};
|
|
1466
1468
|
/** Parameter type */
|
|
1467
1469
|
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
@@ -1614,10 +1616,12 @@ export type AssetCreatableWithType = {
|
|
|
1614
1616
|
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
1615
1617
|
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
1616
1618
|
openMode?: 'read' | 'write' | 'readwrite';
|
|
1617
|
-
/**
|
|
1619
|
+
/** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
|
|
1618
1620
|
spec?: {
|
|
1619
1621
|
[_additionalproperties_: string]: number | boolean;
|
|
1620
|
-
}
|
|
1622
|
+
} | Array<{
|
|
1623
|
+
[_additionalproperties_: string]: number | boolean;
|
|
1624
|
+
}>;
|
|
1621
1625
|
};
|
|
1622
1626
|
/** Parameter type */
|
|
1623
1627
|
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
@@ -1702,10 +1706,12 @@ export type AssetCreatableWithType = {
|
|
|
1702
1706
|
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
1703
1707
|
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
1704
1708
|
openMode?: 'read' | 'write' | 'readwrite';
|
|
1705
|
-
/**
|
|
1709
|
+
/** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
|
|
1706
1710
|
spec?: {
|
|
1707
1711
|
[_additionalproperties_: string]: number | boolean;
|
|
1708
|
-
}
|
|
1712
|
+
} | Array<{
|
|
1713
|
+
[_additionalproperties_: string]: number | boolean;
|
|
1714
|
+
}>;
|
|
1709
1715
|
};
|
|
1710
1716
|
/** Parameter type */
|
|
1711
1717
|
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
@@ -2136,7 +2142,7 @@ export type AssetCreationFromDescription = ({
|
|
|
2136
2142
|
pipelineDescription?: {
|
|
2137
2143
|
/** Index of the stencil state for back face rendering */
|
|
2138
2144
|
backFaceStencilOpStateIndex?: number;
|
|
2139
|
-
/** Color blend attachement states */
|
|
2145
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
2140
2146
|
blendStateIndices?: Array<number>;
|
|
2141
2147
|
/** Cull mode */
|
|
2142
2148
|
cullMode?: number;
|
|
@@ -2171,7 +2177,7 @@ export type AssetCreationFromDescription = ({
|
|
|
2171
2177
|
pipelineDescription?: {
|
|
2172
2178
|
/** Index of the stencil state for back face rendering */
|
|
2173
2179
|
backFaceStencilOpStateIndex?: number;
|
|
2174
|
-
/** Color blend attachement states */
|
|
2180
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
2175
2181
|
blendStateIndices?: Array<number>;
|
|
2176
2182
|
/** Cull mode */
|
|
2177
2183
|
cullMode?: number;
|
|
@@ -2253,7 +2259,7 @@ export type AssetCreationFromDescription = ({
|
|
|
2253
2259
|
pipelineDescription?: {
|
|
2254
2260
|
/** Index of the stencil state for back face rendering */
|
|
2255
2261
|
backFaceStencilOpStateIndex?: number;
|
|
2256
|
-
/** Color blend attachement states */
|
|
2262
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
2257
2263
|
blendStateIndices?: Array<number>;
|
|
2258
2264
|
/** Cull mode */
|
|
2259
2265
|
cullMode?: number;
|
|
@@ -2338,7 +2344,7 @@ export type AssetCreationFromDescription = ({
|
|
|
2338
2344
|
pipelineDescription?: {
|
|
2339
2345
|
/** Index of the stencil state for back face rendering */
|
|
2340
2346
|
backFaceStencilOpStateIndex?: number;
|
|
2341
|
-
/** Color blend attachement states */
|
|
2347
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
2342
2348
|
blendStateIndices?: Array<number>;
|
|
2343
2349
|
/** Cull mode */
|
|
2344
2350
|
cullMode?: number;
|
|
@@ -2531,10 +2537,12 @@ export type AssetCreationFromDescription = ({
|
|
|
2531
2537
|
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
2532
2538
|
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
2533
2539
|
openMode?: 'read' | 'write' | 'readwrite';
|
|
2534
|
-
/**
|
|
2540
|
+
/** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
|
|
2535
2541
|
spec?: {
|
|
2536
2542
|
[_additionalproperties_: string]: number | boolean;
|
|
2537
|
-
}
|
|
2543
|
+
} | Array<{
|
|
2544
|
+
[_additionalproperties_: string]: number | boolean;
|
|
2545
|
+
}>;
|
|
2538
2546
|
};
|
|
2539
2547
|
/** Parameter type */
|
|
2540
2548
|
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
@@ -2687,10 +2695,12 @@ export type AssetCreationFromDescription = ({
|
|
|
2687
2695
|
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
2688
2696
|
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
2689
2697
|
openMode?: 'read' | 'write' | 'readwrite';
|
|
2690
|
-
/**
|
|
2698
|
+
/** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
|
|
2691
2699
|
spec?: {
|
|
2692
2700
|
[_additionalproperties_: string]: number | boolean;
|
|
2693
|
-
}
|
|
2701
|
+
} | Array<{
|
|
2702
|
+
[_additionalproperties_: string]: number | boolean;
|
|
2703
|
+
}>;
|
|
2694
2704
|
};
|
|
2695
2705
|
/** Parameter type */
|
|
2696
2706
|
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
@@ -2775,10 +2785,12 @@ export type AssetCreationFromDescription = ({
|
|
|
2775
2785
|
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
2776
2786
|
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
2777
2787
|
openMode?: 'read' | 'write' | 'readwrite';
|
|
2778
|
-
/**
|
|
2788
|
+
/** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
|
|
2779
2789
|
spec?: {
|
|
2780
2790
|
[_additionalproperties_: string]: number | boolean;
|
|
2781
|
-
}
|
|
2791
|
+
} | Array<{
|
|
2792
|
+
[_additionalproperties_: string]: number | boolean;
|
|
2793
|
+
}>;
|
|
2782
2794
|
};
|
|
2783
2795
|
/** Parameter type */
|
|
2784
2796
|
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
@@ -2870,12 +2882,12 @@ export type DuplicationRequestId = string;
|
|
|
2870
2882
|
export type DuplicationRequest = {
|
|
2871
2883
|
/** The account duplicating the assets, absent for a user's request */
|
|
2872
2884
|
account_id?: string;
|
|
2873
|
-
asset_types?: Array<'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | '
|
|
2885
|
+
asset_types?: Array<'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'nav_mesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material'>;
|
|
2874
2886
|
/** The copies, sorted by id. A completed or failed request has none left. */
|
|
2875
2887
|
assets: Array<{
|
|
2876
2888
|
/** The id of the copy */
|
|
2877
2889
|
asset_id: string;
|
|
2878
|
-
asset_type: 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | '
|
|
2890
|
+
asset_type: 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'nav_mesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material';
|
|
2879
2891
|
/** What it depends on, copies and sources alike */
|
|
2880
2892
|
dependencies: Array<{
|
|
2881
2893
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
@@ -2913,7 +2925,7 @@ export type DuplicationRequest = {
|
|
|
2913
2925
|
/** How many times the request was leased */
|
|
2914
2926
|
attempts: number;
|
|
2915
2927
|
created_at: string;
|
|
2916
|
-
/** How deep the dependencies of the assets duplicated are duplicated with them. */
|
|
2928
|
+
/** How deep the dependencies of the assets duplicated, and the assets the tools use for them, are duplicated with them. */
|
|
2917
2929
|
depth: 'none' | 'all' | number;
|
|
2918
2930
|
/** Duplication request unique identifier */
|
|
2919
2931
|
duplication_request_id: string;
|
|
@@ -2922,7 +2934,7 @@ export type DuplicationRequest = {
|
|
|
2922
2934
|
/** When a draft, a completed request or a failed one is deleted */
|
|
2923
2935
|
expires_at?: string;
|
|
2924
2936
|
folders_by_type: Array<{
|
|
2925
|
-
asset_type: 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | '
|
|
2937
|
+
asset_type: 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'nav_mesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material';
|
|
2926
2938
|
/** Folder unique identifier */
|
|
2927
2939
|
folder_id: string;
|
|
2928
2940
|
}>;
|
|
@@ -3143,14 +3155,21 @@ export type AssetGenerationOptions = {
|
|
|
3143
3155
|
submesh_indices_per_mesh: Array<Array<number>>;
|
|
3144
3156
|
};
|
|
3145
3157
|
} | {
|
|
3146
|
-
asset_type: '
|
|
3147
|
-
data_pipeline: '
|
|
3148
|
-
/**
|
|
3158
|
+
asset_type: 'nav_mesh';
|
|
3159
|
+
data_pipeline: 'nav-mesh-baker';
|
|
3160
|
+
/** List of mesh references with submesh instances for baking, and how Recast bakes it: each setting left out takes its default. The data pipeline scheduler adds the asset's asset_name. All triangles use a default area cost of 1.0 (walkable). */
|
|
3149
3161
|
options: {
|
|
3150
|
-
/**
|
|
3151
|
-
|
|
3162
|
+
/** Name of the navmesh asset (shown in the navmesh description). Defaults to "navmesh" if omitted. */
|
|
3163
|
+
asset_name?: string;
|
|
3152
3164
|
/** Border around a tile, in voxels */
|
|
3153
3165
|
border_size?: number;
|
|
3166
|
+
/** Axis-aligned bounding box restricting which geometry is baked into the navmesh. Triangles outside are discarded; triangles partially inside are clipped. Omit to bake all geometry. */
|
|
3167
|
+
bounding_box?: {
|
|
3168
|
+
/** Maximum point of the box */
|
|
3169
|
+
max: Array<number>;
|
|
3170
|
+
/** Minimum point of the box */
|
|
3171
|
+
min: Array<number>;
|
|
3172
|
+
};
|
|
3154
3173
|
/** Build a bounding volume tree for each tile */
|
|
3155
3174
|
build_bv_tree?: boolean;
|
|
3156
3175
|
/** Build the detail mesh of each tile */
|
|
@@ -3171,14 +3190,32 @@ export type AssetGenerationOptions = {
|
|
|
3171
3190
|
max_verts_per_poly?: number;
|
|
3172
3191
|
/** Area under which a region is merged into a larger one, in voxels */
|
|
3173
3192
|
merge_region_area?: number;
|
|
3174
|
-
/**
|
|
3175
|
-
|
|
3193
|
+
/** List of mesh references with submesh instances for baking */
|
|
3194
|
+
meshes: Array<{
|
|
3195
|
+
/** UUID of the mesh asset */
|
|
3196
|
+
mesh_id: string;
|
|
3197
|
+
/** Submeshes with instances from this mesh */
|
|
3198
|
+
submeshes: Array<{
|
|
3199
|
+
/** Instances of this submesh with transforms */
|
|
3200
|
+
instances: Array<{
|
|
3201
|
+
/** World-space transform (position, orientation, scale) */
|
|
3202
|
+
transform: {
|
|
3203
|
+
/** World orientation as quaternion (x, y, z, w) */
|
|
3204
|
+
orientation: Array<number>;
|
|
3205
|
+
/** World position in meters */
|
|
3206
|
+
position: Array<number>;
|
|
3207
|
+
/** World scale (x, y, z) */
|
|
3208
|
+
scale: Array<number>;
|
|
3209
|
+
};
|
|
3210
|
+
}>;
|
|
3211
|
+
/** Index of the submesh within the mesh's submesh array */
|
|
3212
|
+
submesh_id: number;
|
|
3213
|
+
}>;
|
|
3214
|
+
}>;
|
|
3176
3215
|
/** Area of the smallest region kept, in voxels */
|
|
3177
3216
|
min_region_area?: number;
|
|
3178
3217
|
/** How the walkable area is partitioned into regions */
|
|
3179
3218
|
partition_type?: 'watershed' | 'monotone' | 'layers';
|
|
3180
|
-
/** For each mesh of mesh_ids, at the same index, the submeshes baked */
|
|
3181
|
-
submesh_indices_per_mesh: Array<Array<number>>;
|
|
3182
3219
|
/** Size of a tile, in voxels */
|
|
3183
3220
|
tile_size?: number;
|
|
3184
3221
|
/** Height of a step an agent climbs, in voxels */
|
|
@@ -3219,7 +3256,7 @@ export type EnvironmentAssetListFilters = {
|
|
|
3219
3256
|
/** Include the assets shared with the platform, from any environment */
|
|
3220
3257
|
include_public_assets?: boolean;
|
|
3221
3258
|
};
|
|
3222
|
-
export type AssetContainer = 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | '
|
|
3259
|
+
export type AssetContainer = 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'nav_meshes' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'shader_contexts' | 'skeletons' | 'sounds' | 'textures' | 'textures_3d' | 'volume_materials';
|
|
3223
3260
|
/** A change of an asset's metadata, merged into them, a key set to null removed, the others kept */
|
|
3224
3261
|
export type AssetMetaChange = {
|
|
3225
3262
|
kind?: 'slang' | 'glsl' | null;
|
|
@@ -3230,10 +3267,10 @@ export type AssetMetaChange = {
|
|
|
3230
3267
|
};
|
|
3231
3268
|
/** An asset as platform-management holds it, where it is included, and how it was edited */
|
|
3232
3269
|
export type AssetDetails = {
|
|
3233
|
-
asset_container: 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | '
|
|
3270
|
+
asset_container: 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'nav_meshes' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'shader_contexts' | 'skeletons' | 'sounds' | 'textures' | 'textures_3d' | 'volume_materials';
|
|
3234
3271
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
3235
3272
|
asset_id: string;
|
|
3236
|
-
asset_type: 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | '
|
|
3273
|
+
asset_type: 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'nav_mesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material';
|
|
3237
3274
|
contributors?: Array<{
|
|
3238
3275
|
contribution_count: number;
|
|
3239
3276
|
/** A user of an environment: a registered user, an API key's user, or an account's user. */
|
|
@@ -3630,7 +3667,7 @@ export type AssetDescription = {
|
|
|
3630
3667
|
channels: Array<{
|
|
3631
3668
|
/** Offset in bytes from the beginning of the associated buffer where the first element of the first attribute can be found */
|
|
3632
3669
|
dataOffset: number;
|
|
3633
|
-
/** Size of this channel in bytes */
|
|
3670
|
+
/** Size of this channel in bytes. Note that every channel must be aligned to 16 bytes. */
|
|
3634
3671
|
dataSize: number;
|
|
3635
3672
|
/** Number of elements that make one attribute. 2 for vec2, 3 for vec3, 16 for mat4, etc. */
|
|
3636
3673
|
elementCount: number;
|
|
@@ -3659,7 +3696,7 @@ export type AssetDescription = {
|
|
|
3659
3696
|
channels: Array<{
|
|
3660
3697
|
/** Offset in bytes from the beginning of the associated buffer where the first element of the first attribute can be found */
|
|
3661
3698
|
dataOffset: number;
|
|
3662
|
-
/** Size of this channel in bytes */
|
|
3699
|
+
/** Size of this channel in bytes. Note that every channel must be aligned to 16 bytes. */
|
|
3663
3700
|
dataSize: number;
|
|
3664
3701
|
/** Number of elements that make one attribute. 2 for vec2, 3 for vec3, 16 for mat4, etc. */
|
|
3665
3702
|
elementCount: number;
|
|
@@ -3698,12 +3735,7 @@ export type AssetDescription = {
|
|
|
3698
3735
|
/** Unique identifier for the asset */
|
|
3699
3736
|
uuid: string;
|
|
3700
3737
|
} | {
|
|
3701
|
-
/**
|
|
3702
|
-
areaCosts?: Array<{
|
|
3703
|
-
areaId: number;
|
|
3704
|
-
cost: number;
|
|
3705
|
-
}>;
|
|
3706
|
-
/** World-space axis-aligned bounding box of the entire navmesh */
|
|
3738
|
+
/** World-space axis-aligned bounding box of the entire nav mesh */
|
|
3707
3739
|
boundingBox: {
|
|
3708
3740
|
/** Maximum point of the box */
|
|
3709
3741
|
max: Array<number>;
|
|
@@ -3748,7 +3780,7 @@ export type AssetDescription = {
|
|
|
3748
3780
|
channels: Array<{
|
|
3749
3781
|
/** Offset in bytes from the beginning of the associated buffer where the first element of the first attribute can be found */
|
|
3750
3782
|
dataOffset: number;
|
|
3751
|
-
/** Size of this channel in bytes */
|
|
3783
|
+
/** Size of this channel in bytes. Note that every channel must be aligned to 16 bytes. */
|
|
3752
3784
|
dataSize: number;
|
|
3753
3785
|
/** Number of elements that make one attribute. 2 for vec2, 3 for vec3, 16 for mat4, etc. */
|
|
3754
3786
|
elementCount: number;
|
|
@@ -3851,7 +3883,7 @@ export type AssetDescription = {
|
|
|
3851
3883
|
pipelineDescription?: {
|
|
3852
3884
|
/** Index of the stencil state for back face rendering */
|
|
3853
3885
|
backFaceStencilOpStateIndex?: number;
|
|
3854
|
-
/** Color blend attachement states */
|
|
3886
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
3855
3887
|
blendStateIndices?: Array<number>;
|
|
3856
3888
|
/** Cull mode */
|
|
3857
3889
|
cullMode?: number;
|
|
@@ -3886,7 +3918,7 @@ export type AssetDescription = {
|
|
|
3886
3918
|
pipelineDescription?: {
|
|
3887
3919
|
/** Index of the stencil state for back face rendering */
|
|
3888
3920
|
backFaceStencilOpStateIndex?: number;
|
|
3889
|
-
/** Color blend attachement states */
|
|
3921
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
3890
3922
|
blendStateIndices?: Array<number>;
|
|
3891
3923
|
/** Cull mode */
|
|
3892
3924
|
cullMode?: number;
|
|
@@ -3968,7 +4000,7 @@ export type AssetDescription = {
|
|
|
3968
4000
|
pipelineDescription?: {
|
|
3969
4001
|
/** Index of the stencil state for back face rendering */
|
|
3970
4002
|
backFaceStencilOpStateIndex?: number;
|
|
3971
|
-
/** Color blend attachement states */
|
|
4003
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
3972
4004
|
blendStateIndices?: Array<number>;
|
|
3973
4005
|
/** Cull mode */
|
|
3974
4006
|
cullMode?: number;
|
|
@@ -4053,7 +4085,7 @@ export type AssetDescription = {
|
|
|
4053
4085
|
pipelineDescription?: {
|
|
4054
4086
|
/** Index of the stencil state for back face rendering */
|
|
4055
4087
|
backFaceStencilOpStateIndex?: number;
|
|
4056
|
-
/** Color blend attachement states */
|
|
4088
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
4057
4089
|
blendStateIndices?: Array<number>;
|
|
4058
4090
|
/** Cull mode */
|
|
4059
4091
|
cullMode?: number;
|
|
@@ -4246,10 +4278,12 @@ export type AssetDescription = {
|
|
|
4246
4278
|
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
4247
4279
|
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
4248
4280
|
openMode?: 'read' | 'write' | 'readwrite';
|
|
4249
|
-
/**
|
|
4281
|
+
/** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
|
|
4250
4282
|
spec?: {
|
|
4251
4283
|
[_additionalproperties_: string]: number | boolean;
|
|
4252
|
-
}
|
|
4284
|
+
} | Array<{
|
|
4285
|
+
[_additionalproperties_: string]: number | boolean;
|
|
4286
|
+
}>;
|
|
4253
4287
|
};
|
|
4254
4288
|
/** Parameter type */
|
|
4255
4289
|
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
@@ -4390,10 +4424,12 @@ export type AssetDescription = {
|
|
|
4390
4424
|
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
4391
4425
|
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
4392
4426
|
openMode?: 'read' | 'write' | 'readwrite';
|
|
4393
|
-
/**
|
|
4427
|
+
/** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
|
|
4394
4428
|
spec?: {
|
|
4395
4429
|
[_additionalproperties_: string]: number | boolean;
|
|
4396
|
-
}
|
|
4430
|
+
} | Array<{
|
|
4431
|
+
[_additionalproperties_: string]: number | boolean;
|
|
4432
|
+
}>;
|
|
4397
4433
|
};
|
|
4398
4434
|
/** Parameter type */
|
|
4399
4435
|
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
@@ -4478,10 +4514,12 @@ export type AssetDescription = {
|
|
|
4478
4514
|
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
4479
4515
|
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
4480
4516
|
openMode?: 'read' | 'write' | 'readwrite';
|
|
4481
|
-
/**
|
|
4517
|
+
/** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
|
|
4482
4518
|
spec?: {
|
|
4483
4519
|
[_additionalproperties_: string]: number | boolean;
|
|
4484
|
-
}
|
|
4520
|
+
} | Array<{
|
|
4521
|
+
[_additionalproperties_: string]: number | boolean;
|
|
4522
|
+
}>;
|
|
4485
4523
|
};
|
|
4486
4524
|
/** Parameter type */
|
|
4487
4525
|
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
@@ -4551,10 +4589,12 @@ export type AssetDescription = {
|
|
|
4551
4589
|
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
4552
4590
|
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
4553
4591
|
openMode?: 'read' | 'write' | 'readwrite';
|
|
4554
|
-
/**
|
|
4592
|
+
/** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
|
|
4555
4593
|
spec?: {
|
|
4556
4594
|
[_additionalproperties_: string]: number | boolean;
|
|
4557
|
-
}
|
|
4595
|
+
} | Array<{
|
|
4596
|
+
[_additionalproperties_: string]: number | boolean;
|
|
4597
|
+
}>;
|
|
4558
4598
|
};
|
|
4559
4599
|
/** Parameter type */
|
|
4560
4600
|
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
@@ -5028,7 +5068,7 @@ export type EditableAssetDescription = {
|
|
|
5028
5068
|
pipelineDescription?: {
|
|
5029
5069
|
/** Index of the stencil state for back face rendering */
|
|
5030
5070
|
backFaceStencilOpStateIndex?: number;
|
|
5031
|
-
/** Color blend attachement states */
|
|
5071
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
5032
5072
|
blendStateIndices?: Array<number>;
|
|
5033
5073
|
/** Cull mode */
|
|
5034
5074
|
cullMode?: number;
|
|
@@ -5063,7 +5103,7 @@ export type EditableAssetDescription = {
|
|
|
5063
5103
|
pipelineDescription?: {
|
|
5064
5104
|
/** Index of the stencil state for back face rendering */
|
|
5065
5105
|
backFaceStencilOpStateIndex?: number;
|
|
5066
|
-
/** Color blend attachement states */
|
|
5106
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
5067
5107
|
blendStateIndices?: Array<number>;
|
|
5068
5108
|
/** Cull mode */
|
|
5069
5109
|
cullMode?: number;
|
|
@@ -5145,7 +5185,7 @@ export type EditableAssetDescription = {
|
|
|
5145
5185
|
pipelineDescription?: {
|
|
5146
5186
|
/** Index of the stencil state for back face rendering */
|
|
5147
5187
|
backFaceStencilOpStateIndex?: number;
|
|
5148
|
-
/** Color blend attachement states */
|
|
5188
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
5149
5189
|
blendStateIndices?: Array<number>;
|
|
5150
5190
|
/** Cull mode */
|
|
5151
5191
|
cullMode?: number;
|
|
@@ -5230,7 +5270,7 @@ export type EditableAssetDescription = {
|
|
|
5230
5270
|
pipelineDescription?: {
|
|
5231
5271
|
/** Index of the stencil state for back face rendering */
|
|
5232
5272
|
backFaceStencilOpStateIndex?: number;
|
|
5233
|
-
/** Color blend attachement states */
|
|
5273
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
5234
5274
|
blendStateIndices?: Array<number>;
|
|
5235
5275
|
/** Cull mode */
|
|
5236
5276
|
cullMode?: number;
|
|
@@ -5423,10 +5463,12 @@ export type EditableAssetDescription = {
|
|
|
5423
5463
|
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
5424
5464
|
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
5425
5465
|
openMode?: 'read' | 'write' | 'readwrite';
|
|
5426
|
-
/**
|
|
5466
|
+
/** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
|
|
5427
5467
|
spec?: {
|
|
5428
5468
|
[_additionalproperties_: string]: number | boolean;
|
|
5429
|
-
}
|
|
5469
|
+
} | Array<{
|
|
5470
|
+
[_additionalproperties_: string]: number | boolean;
|
|
5471
|
+
}>;
|
|
5430
5472
|
};
|
|
5431
5473
|
/** Parameter type */
|
|
5432
5474
|
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
@@ -5567,10 +5609,12 @@ export type EditableAssetDescription = {
|
|
|
5567
5609
|
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
5568
5610
|
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
5569
5611
|
openMode?: 'read' | 'write' | 'readwrite';
|
|
5570
|
-
/**
|
|
5612
|
+
/** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
|
|
5571
5613
|
spec?: {
|
|
5572
5614
|
[_additionalproperties_: string]: number | boolean;
|
|
5573
|
-
}
|
|
5615
|
+
} | Array<{
|
|
5616
|
+
[_additionalproperties_: string]: number | boolean;
|
|
5617
|
+
}>;
|
|
5574
5618
|
};
|
|
5575
5619
|
/** Parameter type */
|
|
5576
5620
|
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
@@ -5655,10 +5699,12 @@ export type EditableAssetDescription = {
|
|
|
5655
5699
|
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
5656
5700
|
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
5657
5701
|
openMode?: 'read' | 'write' | 'readwrite';
|
|
5658
|
-
/**
|
|
5702
|
+
/** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
|
|
5659
5703
|
spec?: {
|
|
5660
5704
|
[_additionalproperties_: string]: number | boolean;
|
|
5661
|
-
}
|
|
5705
|
+
} | Array<{
|
|
5706
|
+
[_additionalproperties_: string]: number | boolean;
|
|
5707
|
+
}>;
|
|
5662
5708
|
};
|
|
5663
5709
|
/** Parameter type */
|
|
5664
5710
|
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
@@ -5726,7 +5772,7 @@ export type EditableAssetDescription = {
|
|
|
5726
5772
|
/** Unique identifier for the asset */
|
|
5727
5773
|
uuid: string;
|
|
5728
5774
|
};
|
|
5729
|
-
export type AssetContainerWithPayload = 'animations' | 'animation_graphs' | 'animation_sequences' | 'collision_geometries' | 'meshes' | 'modules' | '
|
|
5775
|
+
export type AssetContainerWithPayload = 'animations' | 'animation_graphs' | 'animation_sequences' | 'collision_geometries' | 'meshes' | 'modules' | 'nav_meshes' | 'point_clouds' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_3d';
|
|
5730
5776
|
export type AssetContainerWithGraph = 'animation_graphs' | 'render_graphs' | 'scripts' | 'shaders';
|
|
5731
5777
|
/** A tool keeping a document of an asset, and when it last wrote it */
|
|
5732
5778
|
export type AssetDocumentSummary = {
|
|
@@ -5749,27 +5795,47 @@ export type AssetDocument = {
|
|
|
5749
5795
|
};
|
|
5750
5796
|
};
|
|
5751
5797
|
export type AssetContainerWithCode = 'animation_graphs' | 'animation_sequences' | 'modules' | 'scripts' | 'shaders';
|
|
5752
|
-
/** The code replacing an asset's, as its caller sends it. Left open, to be extended through `allOf`, as the route adds the user: a body taking it alone closes it with `unevaluatedProperties: false`. */
|
|
5753
|
-
export type AssetCode = {
|
|
5754
|
-
/** The
|
|
5798
|
+
/** The code replacing an asset's, as its caller sends it: a shader's, or that of an asset built from C++, as the asset's container tells. Left open, to be extended through `allOf`, as the route adds the user: a body taking it alone closes it with `unevaluatedProperties: false`. */
|
|
5799
|
+
export type AssetCode = StrictUnion<{
|
|
5800
|
+
/** The shader's Slang, one file importing modules */
|
|
5755
5801
|
code: string;
|
|
5756
|
-
/** Whether to build its debug
|
|
5802
|
+
/** Whether to build its debug payload too, for the engine's developers */
|
|
5757
5803
|
debug?: boolean;
|
|
5758
|
-
/** The modules
|
|
5759
|
-
modules
|
|
5760
|
-
/** The shader context its push constant holds
|
|
5761
|
-
shader_context
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5804
|
+
/** The modules it imports: those they import come with them, and it can import nothing else */
|
|
5805
|
+
modules: Array<string>;
|
|
5806
|
+
/** The shader context its push constant holds */
|
|
5807
|
+
shader_context: string;
|
|
5808
|
+
/** The textures its fields default to, which the caller must be able to read: each a `[DefaultTexture]` of the code names must be one of them */
|
|
5809
|
+
textures?: Array<string>;
|
|
5810
|
+
} | {
|
|
5811
|
+
/** The C++, built against the asset type's precompiled header, which it needs not include */
|
|
5765
5812
|
code: string;
|
|
5766
|
-
/** Whether to build its debug library too, with its symbols,
|
|
5813
|
+
/** Whether to build its debug library too, with its symbols, for the engine's developers */
|
|
5767
5814
|
debug?: boolean;
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5815
|
+
modules?: never;
|
|
5816
|
+
shader_context?: never;
|
|
5817
|
+
textures?: never;
|
|
5818
|
+
}>;
|
|
5819
|
+
export type AssetCodeInput = StrictUnion<{
|
|
5820
|
+
/** The shader's Slang, one file importing modules */
|
|
5821
|
+
code: string;
|
|
5822
|
+
/** Whether to build its debug payload too, for the engine's developers */
|
|
5823
|
+
debug?: boolean;
|
|
5824
|
+
/** The modules it imports: those they import come with them, and it can import nothing else */
|
|
5825
|
+
modules: Array<string>;
|
|
5826
|
+
/** The shader context its push constant holds */
|
|
5827
|
+
shader_context: string;
|
|
5828
|
+
/** The textures its fields default to, which the caller must be able to read: each a `[DefaultTexture]` of the code names must be one of them */
|
|
5829
|
+
textures?: Array<string>;
|
|
5830
|
+
} | {
|
|
5831
|
+
/** The C++, built against the asset type's precompiled header, which it needs not include */
|
|
5832
|
+
code: string;
|
|
5833
|
+
/** Whether to build its debug library too, with its symbols, for the engine's developers */
|
|
5834
|
+
debug?: boolean;
|
|
5835
|
+
modules?: never;
|
|
5836
|
+
shader_context?: never;
|
|
5837
|
+
textures?: never;
|
|
5838
|
+
}>;
|
|
5773
5839
|
/** The build of an asset's code, which replaced the asset's. */
|
|
5774
5840
|
export type AssetCodeBuild = {
|
|
5775
5841
|
/** Whether the asset's description changed, which a script's code tells */
|
|
@@ -6079,8 +6145,8 @@ export type Entity = {
|
|
|
6079
6145
|
};
|
|
6080
6146
|
};
|
|
6081
6147
|
/** Reference to a navigation mesh asset. */
|
|
6082
|
-
|
|
6083
|
-
/** Referenced
|
|
6148
|
+
nav_mesh_ref?: {
|
|
6149
|
+
/** Referenced nav mesh (UUID). */
|
|
6084
6150
|
value?: string;
|
|
6085
6151
|
};
|
|
6086
6152
|
/** Orthographic projection lens with configurable zoom and depth range. */
|
|
@@ -6650,8 +6716,8 @@ export type SceneEntity = {
|
|
|
6650
6716
|
};
|
|
6651
6717
|
};
|
|
6652
6718
|
/** Reference to a navigation mesh asset. */
|
|
6653
|
-
|
|
6654
|
-
/** Referenced
|
|
6719
|
+
nav_mesh_ref?: {
|
|
6720
|
+
/** Referenced nav mesh (UUID). */
|
|
6655
6721
|
value?: string;
|
|
6656
6722
|
};
|
|
6657
6723
|
/** Orthographic projection lens with configurable zoom and depth range. */
|
|
@@ -7300,7 +7366,7 @@ export type ConversionCreated = {
|
|
|
7300
7366
|
used_assets?: Array<{
|
|
7301
7367
|
/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
|
|
7302
7368
|
asset_id: string;
|
|
7303
|
-
asset_type: 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | '
|
|
7369
|
+
asset_type: 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'nav_mesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material';
|
|
7304
7370
|
}>;
|
|
7305
7371
|
};
|
|
7306
7372
|
/** A conversion, or one of its steps, moved on, before it completed. */
|
|
@@ -7743,7 +7809,7 @@ export type AssetCreationFromDescriptionInput = ({
|
|
|
7743
7809
|
pipelineDescription?: {
|
|
7744
7810
|
/** Index of the stencil state for back face rendering */
|
|
7745
7811
|
backFaceStencilOpStateIndex?: number;
|
|
7746
|
-
/** Color blend attachement states */
|
|
7812
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
7747
7813
|
blendStateIndices?: Array<number>;
|
|
7748
7814
|
/** Cull mode */
|
|
7749
7815
|
cullMode?: number;
|
|
@@ -7778,7 +7844,7 @@ export type AssetCreationFromDescriptionInput = ({
|
|
|
7778
7844
|
pipelineDescription?: {
|
|
7779
7845
|
/** Index of the stencil state for back face rendering */
|
|
7780
7846
|
backFaceStencilOpStateIndex?: number;
|
|
7781
|
-
/** Color blend attachement states */
|
|
7847
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
7782
7848
|
blendStateIndices?: Array<number>;
|
|
7783
7849
|
/** Cull mode */
|
|
7784
7850
|
cullMode?: number;
|
|
@@ -7860,7 +7926,7 @@ export type AssetCreationFromDescriptionInput = ({
|
|
|
7860
7926
|
pipelineDescription?: {
|
|
7861
7927
|
/** Index of the stencil state for back face rendering */
|
|
7862
7928
|
backFaceStencilOpStateIndex?: number;
|
|
7863
|
-
/** Color blend attachement states */
|
|
7929
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
7864
7930
|
blendStateIndices?: Array<number>;
|
|
7865
7931
|
/** Cull mode */
|
|
7866
7932
|
cullMode?: number;
|
|
@@ -7945,7 +8011,7 @@ export type AssetCreationFromDescriptionInput = ({
|
|
|
7945
8011
|
pipelineDescription?: {
|
|
7946
8012
|
/** Index of the stencil state for back face rendering */
|
|
7947
8013
|
backFaceStencilOpStateIndex?: number;
|
|
7948
|
-
/** Color blend attachement states */
|
|
8014
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
7949
8015
|
blendStateIndices?: Array<number>;
|
|
7950
8016
|
/** Cull mode */
|
|
7951
8017
|
cullMode?: number;
|
|
@@ -8138,10 +8204,12 @@ export type AssetCreationFromDescriptionInput = ({
|
|
|
8138
8204
|
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
8139
8205
|
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
8140
8206
|
openMode?: 'read' | 'write' | 'readwrite';
|
|
8141
|
-
/**
|
|
8207
|
+
/** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
|
|
8142
8208
|
spec?: {
|
|
8143
8209
|
[_additionalproperties_: string]: number | boolean;
|
|
8144
|
-
}
|
|
8210
|
+
} | Array<{
|
|
8211
|
+
[_additionalproperties_: string]: number | boolean;
|
|
8212
|
+
}>;
|
|
8145
8213
|
};
|
|
8146
8214
|
/** Parameter type */
|
|
8147
8215
|
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
@@ -8288,10 +8356,12 @@ export type AssetCreationFromDescriptionInput = ({
|
|
|
8288
8356
|
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
8289
8357
|
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
8290
8358
|
openMode?: 'read' | 'write' | 'readwrite';
|
|
8291
|
-
/**
|
|
8359
|
+
/** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
|
|
8292
8360
|
spec?: {
|
|
8293
8361
|
[_additionalproperties_: string]: number | boolean;
|
|
8294
|
-
}
|
|
8362
|
+
} | Array<{
|
|
8363
|
+
[_additionalproperties_: string]: number | boolean;
|
|
8364
|
+
}>;
|
|
8295
8365
|
};
|
|
8296
8366
|
/** Parameter type */
|
|
8297
8367
|
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
@@ -8376,10 +8446,12 @@ export type AssetCreationFromDescriptionInput = ({
|
|
|
8376
8446
|
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
8377
8447
|
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
8378
8448
|
openMode?: 'read' | 'write' | 'readwrite';
|
|
8379
|
-
/**
|
|
8449
|
+
/** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
|
|
8380
8450
|
spec?: {
|
|
8381
8451
|
[_additionalproperties_: string]: number | boolean;
|
|
8382
|
-
}
|
|
8452
|
+
} | Array<{
|
|
8453
|
+
[_additionalproperties_: string]: number | boolean;
|
|
8454
|
+
}>;
|
|
8383
8455
|
};
|
|
8384
8456
|
/** Parameter type */
|
|
8385
8457
|
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
@@ -8759,7 +8831,7 @@ export type EditableAssetDescriptionInput = {
|
|
|
8759
8831
|
pipelineDescription?: {
|
|
8760
8832
|
/** Index of the stencil state for back face rendering */
|
|
8761
8833
|
backFaceStencilOpStateIndex?: number;
|
|
8762
|
-
/** Color blend attachement states */
|
|
8834
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
8763
8835
|
blendStateIndices?: Array<number>;
|
|
8764
8836
|
/** Cull mode */
|
|
8765
8837
|
cullMode?: number;
|
|
@@ -8794,7 +8866,7 @@ export type EditableAssetDescriptionInput = {
|
|
|
8794
8866
|
pipelineDescription?: {
|
|
8795
8867
|
/** Index of the stencil state for back face rendering */
|
|
8796
8868
|
backFaceStencilOpStateIndex?: number;
|
|
8797
|
-
/** Color blend attachement states */
|
|
8869
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
8798
8870
|
blendStateIndices?: Array<number>;
|
|
8799
8871
|
/** Cull mode */
|
|
8800
8872
|
cullMode?: number;
|
|
@@ -8876,7 +8948,7 @@ export type EditableAssetDescriptionInput = {
|
|
|
8876
8948
|
pipelineDescription?: {
|
|
8877
8949
|
/** Index of the stencil state for back face rendering */
|
|
8878
8950
|
backFaceStencilOpStateIndex?: number;
|
|
8879
|
-
/** Color blend attachement states */
|
|
8951
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
8880
8952
|
blendStateIndices?: Array<number>;
|
|
8881
8953
|
/** Cull mode */
|
|
8882
8954
|
cullMode?: number;
|
|
@@ -8961,7 +9033,7 @@ export type EditableAssetDescriptionInput = {
|
|
|
8961
9033
|
pipelineDescription?: {
|
|
8962
9034
|
/** Index of the stencil state for back face rendering */
|
|
8963
9035
|
backFaceStencilOpStateIndex?: number;
|
|
8964
|
-
/** Color blend attachement states */
|
|
9036
|
+
/** Color blend attachement states: an index in blendStateDescriptions per color attachment, -1 for none */
|
|
8965
9037
|
blendStateIndices?: Array<number>;
|
|
8966
9038
|
/** Cull mode */
|
|
8967
9039
|
cullMode?: number;
|
|
@@ -9154,10 +9226,12 @@ export type EditableAssetDescriptionInput = {
|
|
|
9154
9226
|
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
9155
9227
|
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
9156
9228
|
openMode?: 'read' | 'write' | 'readwrite';
|
|
9157
|
-
/**
|
|
9229
|
+
/** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
|
|
9158
9230
|
spec?: {
|
|
9159
9231
|
[_additionalproperties_: string]: number | boolean;
|
|
9160
|
-
}
|
|
9232
|
+
} | Array<{
|
|
9233
|
+
[_additionalproperties_: string]: number | boolean;
|
|
9234
|
+
}>;
|
|
9161
9235
|
};
|
|
9162
9236
|
/** Parameter type */
|
|
9163
9237
|
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
@@ -9292,10 +9366,12 @@ export type EditableAssetDescriptionInput = {
|
|
|
9292
9366
|
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
9293
9367
|
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
9294
9368
|
openMode?: 'read' | 'write' | 'readwrite';
|
|
9295
|
-
/**
|
|
9369
|
+
/** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
|
|
9296
9370
|
spec?: {
|
|
9297
9371
|
[_additionalproperties_: string]: number | boolean;
|
|
9298
|
-
}
|
|
9372
|
+
} | Array<{
|
|
9373
|
+
[_additionalproperties_: string]: number | boolean;
|
|
9374
|
+
}>;
|
|
9299
9375
|
};
|
|
9300
9376
|
/** Parameter type */
|
|
9301
9377
|
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
@@ -9380,10 +9456,12 @@ export type EditableAssetDescriptionInput = {
|
|
|
9380
9456
|
format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
|
|
9381
9457
|
/** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
|
|
9382
9458
|
openMode?: 'read' | 'write' | 'readwrite';
|
|
9383
|
-
/**
|
|
9459
|
+
/** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
|
|
9384
9460
|
spec?: {
|
|
9385
9461
|
[_additionalproperties_: string]: number | boolean;
|
|
9386
|
-
}
|
|
9462
|
+
} | Array<{
|
|
9463
|
+
[_additionalproperties_: string]: number | boolean;
|
|
9464
|
+
}>;
|
|
9387
9465
|
};
|
|
9388
9466
|
/** Parameter type */
|
|
9389
9467
|
type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
|
|
@@ -10384,14 +10462,21 @@ export declare function createImport({ folder_id, body, }: {
|
|
|
10384
10462
|
submesh_indices_per_mesh: Array<Array<number>>;
|
|
10385
10463
|
};
|
|
10386
10464
|
} | {
|
|
10387
|
-
asset_type: '
|
|
10388
|
-
data_pipeline: '
|
|
10389
|
-
/**
|
|
10465
|
+
asset_type: 'nav_mesh';
|
|
10466
|
+
data_pipeline: 'nav-mesh-baker';
|
|
10467
|
+
/** List of mesh references with submesh instances for baking, and how Recast bakes it: each setting left out takes its default. The data pipeline scheduler adds the asset's asset_name. All triangles use a default area cost of 1.0 (walkable). */
|
|
10390
10468
|
options: {
|
|
10391
|
-
/**
|
|
10392
|
-
|
|
10469
|
+
/** Name of the navmesh asset (shown in the navmesh description). Defaults to "navmesh" if omitted. */
|
|
10470
|
+
asset_name?: string;
|
|
10393
10471
|
/** Border around a tile, in voxels */
|
|
10394
10472
|
border_size?: number;
|
|
10473
|
+
/** Axis-aligned bounding box restricting which geometry is baked into the navmesh. Triangles outside are discarded; triangles partially inside are clipped. Omit to bake all geometry. */
|
|
10474
|
+
bounding_box?: {
|
|
10475
|
+
/** Maximum point of the box */
|
|
10476
|
+
max: Array<number>;
|
|
10477
|
+
/** Minimum point of the box */
|
|
10478
|
+
min: Array<number>;
|
|
10479
|
+
};
|
|
10395
10480
|
/** Build a bounding volume tree for each tile */
|
|
10396
10481
|
build_bv_tree?: boolean;
|
|
10397
10482
|
/** Build the detail mesh of each tile */
|
|
@@ -10412,14 +10497,32 @@ export declare function createImport({ folder_id, body, }: {
|
|
|
10412
10497
|
max_verts_per_poly?: number;
|
|
10413
10498
|
/** Area under which a region is merged into a larger one, in voxels */
|
|
10414
10499
|
merge_region_area?: number;
|
|
10415
|
-
/**
|
|
10416
|
-
|
|
10500
|
+
/** List of mesh references with submesh instances for baking */
|
|
10501
|
+
meshes: Array<{
|
|
10502
|
+
/** UUID of the mesh asset */
|
|
10503
|
+
mesh_id: string;
|
|
10504
|
+
/** Submeshes with instances from this mesh */
|
|
10505
|
+
submeshes: Array<{
|
|
10506
|
+
/** Instances of this submesh with transforms */
|
|
10507
|
+
instances: Array<{
|
|
10508
|
+
/** World-space transform (position, orientation, scale) */
|
|
10509
|
+
transform: {
|
|
10510
|
+
/** World orientation as quaternion (x, y, z, w) */
|
|
10511
|
+
orientation: Array<number>;
|
|
10512
|
+
/** World position in meters */
|
|
10513
|
+
position: Array<number>;
|
|
10514
|
+
/** World scale (x, y, z) */
|
|
10515
|
+
scale: Array<number>;
|
|
10516
|
+
};
|
|
10517
|
+
}>;
|
|
10518
|
+
/** Index of the submesh within the mesh's submesh array */
|
|
10519
|
+
submesh_id: number;
|
|
10520
|
+
}>;
|
|
10521
|
+
}>;
|
|
10417
10522
|
/** Area of the smallest region kept, in voxels */
|
|
10418
10523
|
min_region_area?: number;
|
|
10419
10524
|
/** How the walkable area is partitioned into regions */
|
|
10420
10525
|
partition_type?: 'watershed' | 'monotone' | 'layers';
|
|
10421
|
-
/** For each mesh of mesh_ids, at the same index, the submeshes baked */
|
|
10422
|
-
submesh_indices_per_mesh: Array<Array<number>>;
|
|
10423
10526
|
/** Size of a tile, in voxels */
|
|
10424
10527
|
tile_size?: number;
|
|
10425
10528
|
/** Height of a step an agent climbs, in voxels */
|
|
@@ -11041,10 +11144,11 @@ export declare function getAssetCode({ asset_container_with_code, asset_id, }: {
|
|
|
11041
11144
|
* Replaces the code of a script, animation sequence, animation graph or shader, once asset-compiler built it: code
|
|
11042
11145
|
* which fails to build replaces nothing, and answers its diagnostics. A script, animation sequence or animation graph
|
|
11043
11146
|
* is C++. A script's description is read from its code, and the answer tells whether it changed; the caller must be
|
|
11044
|
-
* able to read the assets it references. A shader is one file of Slang, imported
|
|
11045
|
-
* it requires `modules`, those it imports, which come with those they import,
|
|
11046
|
-
*
|
|
11047
|
-
*
|
|
11147
|
+
* able to read the assets it references, and takes `code` and `debug` alone. A shader is one file of Slang, imported
|
|
11148
|
+
* modules by name, naming no other file; it requires `modules`, those it imports, which come with those they import,
|
|
11149
|
+
* and `shader_context`, the context its push constant holds, and lists in `textures` those its fields default to
|
|
11150
|
+
* (`[DefaultTexture("<uuid>")]`), all of which the caller must be able to read. Its description is read from its code.
|
|
11151
|
+
* The build takes a few seconds.
|
|
11048
11152
|
* @throws {InvalidParameter}
|
|
11049
11153
|
* @throws {MissingAuthorizationHeader}
|
|
11050
11154
|
* @throws {InvalidApiKey}
|
|
@@ -11054,17 +11158,11 @@ export declare function getAssetCode({ asset_container_with_code, asset_id, }: {
|
|
|
11054
11158
|
* @throws {InsufficientPermissions}
|
|
11055
11159
|
* @throws {TooManyRequests}
|
|
11056
11160
|
*/
|
|
11057
|
-
export declare function replaceAssetCode({ asset_container_with_code, asset_id,
|
|
11161
|
+
export declare function replaceAssetCode({ asset_container_with_code, asset_id, asset_code, }: {
|
|
11058
11162
|
asset_container_with_code: AssetContainerWithCode;
|
|
11059
11163
|
asset_id: AssetId;
|
|
11060
|
-
/** The code: C++,
|
|
11061
|
-
|
|
11062
|
-
/** Whether to build its debug library too, with its symbols, or a shader's debug payload, for the engine's developers */
|
|
11063
|
-
debug?: boolean;
|
|
11064
|
-
/** The modules a shader imports, required for a shader, refused for another type: those they import come with them, and it can import nothing else */
|
|
11065
|
-
modules?: Array<string>;
|
|
11066
|
-
/** The shader context its push constant holds, required for a shader, refused for another type */
|
|
11067
|
-
shader_context?: string;
|
|
11164
|
+
/** The code replacing an asset's, as its caller sends it: a shader's, or that of an asset built from C++, as the asset's container tells. Left open, to be extended through `allOf`, as the route adds the user: a body taking it alone closes it with `unevaluatedProperties: false`. */
|
|
11165
|
+
asset_code: AssetCodeInput;
|
|
11068
11166
|
}, headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): AxiosPromise<AssetCodeBuild>;
|
|
11069
11167
|
/**
|
|
11070
11168
|
* Gets the asset thumbnail from the specified asset.
|
|
@@ -11162,7 +11260,7 @@ export declare function getSceneAABB({ scene_id, }: {
|
|
|
11162
11260
|
* @throws {InsufficientPermissions}
|
|
11163
11261
|
* @throws {TooManyRequests}
|
|
11164
11262
|
*/
|
|
11165
|
-
export declare function createEntity({ scene_id, animation_controller, animation_sequence_controller, bone, box_geometry, camera, capsule_geometry, character_controller, collision_geometry_ref, constraint, constraint_actuator, culling_geometry, custom_lens, cylinder_geometry, debug_name, decal_projector, environment, joint, label, lineage, local_aabb, local_transform, material, material_ref, measure, mesh_ref, morph_targets,
|
|
11263
|
+
export declare function createEntity({ scene_id, animation_controller, animation_sequence_controller, bone, box_geometry, camera, capsule_geometry, character_controller, collision_geometry_ref, constraint, constraint_actuator, culling_geometry, custom_lens, cylinder_geometry, debug_name, decal_projector, environment, joint, label, lineage, local_aabb, local_transform, material, material_ref, measure, mesh_ref, morph_targets, nav_mesh_ref, orthographic_lens, overrider, perspective_lens, physics_material, plane_geometry, point_cloud_ref, point_light, reflection_probe, rigid_body, scene_ref, script_element, script_map, shadow_caster, skeleton_ref, sound_ref, sphere_geometry, spline, spot_light, tags, vehicle_controller, volume_filter, volume_material_ref, volume_ref, }: {
|
|
11166
11264
|
scene_id: AssetId;
|
|
11167
11265
|
/** Drives skeletal animation using an Animation Graph and Animation Set; animates descendant skinned meshes whose skeletons are compatible with the set. */
|
|
11168
11266
|
animation_controller?: {
|
|
@@ -11450,8 +11548,8 @@ export declare function createEntity({ scene_id, animation_controller, animation
|
|
|
11450
11548
|
};
|
|
11451
11549
|
};
|
|
11452
11550
|
/** Reference to a navigation mesh asset. */
|
|
11453
|
-
|
|
11454
|
-
/** Referenced
|
|
11551
|
+
nav_mesh_ref?: {
|
|
11552
|
+
/** Referenced nav mesh (UUID). */
|
|
11455
11553
|
value?: string;
|
|
11456
11554
|
};
|
|
11457
11555
|
/** Orthographic projection lens with configurable zoom and depth range. */
|
|
@@ -11758,7 +11856,7 @@ export declare function getEntity({ scene_id, entity_id, compute_global_transfor
|
|
|
11758
11856
|
* @throws {InsufficientPermissions}
|
|
11759
11857
|
* @throws {TooManyRequests}
|
|
11760
11858
|
*/
|
|
11761
|
-
export declare function updateEntity({ scene_id, entity_id, animation_controller, animation_sequence_controller, bone, box_geometry, camera, capsule_geometry, character_controller, collision_geometry_ref, constraint, constraint_actuator, culling_geometry, custom_lens, cylinder_geometry, debug_name, decal_projector, environment, joint, label, lineage, local_aabb, local_transform, material, material_ref, measure, mesh_ref, morph_targets,
|
|
11859
|
+
export declare function updateEntity({ scene_id, entity_id, animation_controller, animation_sequence_controller, bone, box_geometry, camera, capsule_geometry, character_controller, collision_geometry_ref, constraint, constraint_actuator, culling_geometry, custom_lens, cylinder_geometry, debug_name, decal_projector, environment, joint, label, lineage, local_aabb, local_transform, material, material_ref, measure, mesh_ref, morph_targets, nav_mesh_ref, orthographic_lens, overrider, perspective_lens, physics_material, plane_geometry, point_cloud_ref, point_light, reflection_probe, rigid_body, scene_ref, script_element, script_map, shadow_caster, skeleton_ref, sound_ref, sphere_geometry, spline, spot_light, tags, vehicle_controller, volume_filter, volume_material_ref, volume_ref, }: {
|
|
11762
11860
|
scene_id: AssetId;
|
|
11763
11861
|
entity_id: string;
|
|
11764
11862
|
/** Drives skeletal animation using an Animation Graph and Animation Set; animates descendant skinned meshes whose skeletons are compatible with the set. */
|
|
@@ -12047,8 +12145,8 @@ export declare function updateEntity({ scene_id, entity_id, animation_controller
|
|
|
12047
12145
|
};
|
|
12048
12146
|
};
|
|
12049
12147
|
/** Reference to a navigation mesh asset. */
|
|
12050
|
-
|
|
12051
|
-
/** Referenced
|
|
12148
|
+
nav_mesh_ref?: {
|
|
12149
|
+
/** Referenced nav mesh (UUID). */
|
|
12052
12150
|
value?: string;
|
|
12053
12151
|
};
|
|
12054
12152
|
/** Orthographic projection lens with configurable zoom and depth range. */
|
|
@@ -12584,8 +12682,8 @@ export declare function updateEntity({ scene_id, entity_id, animation_controller
|
|
|
12584
12682
|
[_additionalproperties_: string]: number;
|
|
12585
12683
|
};
|
|
12586
12684
|
};
|
|
12587
|
-
|
|
12588
|
-
/** Referenced
|
|
12685
|
+
nav_mesh_ref: {
|
|
12686
|
+
/** Referenced nav mesh (UUID). */
|
|
12589
12687
|
value?: string;
|
|
12590
12688
|
};
|
|
12591
12689
|
orthographic_lens: {
|