@cesdk/engine 1.65.0-rc.1 → 1.65.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/index.d.ts CHANGED
@@ -8153,9 +8153,10 @@ export declare class SceneAPI {
8153
8153
  * @category Scene Loading
8154
8154
  * @param sceneContent - The scene file contents, a base64 string.
8155
8155
  * @param overrideEditorConfig - Whether to override editor configuration with settings and data from the scene file. Defaults to false.
8156
+ * @param waitForResources - Whether to wait for all resources to finish loading before resolving. Defaults to false.
8156
8157
  * @returns A handle to the loaded scene.
8157
8158
  */
8158
- loadFromString(sceneContent: string, overrideEditorConfig?: boolean): Promise<DesignBlockId>;
8159
+ loadFromString(sceneContent: string, overrideEditorConfig?: boolean, waitForResources?: boolean): Promise<DesignBlockId>;
8159
8160
  /**
8160
8161
  * Load a scene from the URL to the scene file.
8161
8162
  *
@@ -8169,9 +8170,10 @@ export declare class SceneAPI {
8169
8170
  * @category Scene Loading
8170
8171
  * @param url - The URL of the scene file.
8171
8172
  * @param overrideEditorConfig - Whether to override editor configuration with settings and data from the scene file. Defaults to false.
8173
+ * @param waitForResources - Whether to wait for all resources to finish loading before resolving. Defaults to false.
8172
8174
  * @returns scene A promise that resolves once the scene was loaded or rejects with an error otherwise.
8173
8175
  */
8174
- loadFromURL(url: string, overrideEditorConfig?: boolean): Promise<DesignBlockId>;
8176
+ loadFromURL(url: string, overrideEditorConfig?: boolean, waitForResources?: boolean): Promise<DesignBlockId>;
8175
8177
  /**
8176
8178
  * Load a previously archived scene from the URL to the scene file.
8177
8179
  *
@@ -8181,9 +8183,10 @@ export declare class SceneAPI {
8181
8183
  * @category Scene Loading
8182
8184
  * @param url - The URL of the scene archive file.
8183
8185
  * @param overrideEditorConfig - Whether to override editor configuration with settings and data from the scene file. Defaults to false.
8186
+ * @param waitForResources - Whether to wait for all resources to finish loading before resolving. Defaults to false.
8184
8187
  * @returns scene A promise that resolves once the scene was loaded or rejects with an error otherwise.
8185
8188
  */
8186
- loadFromArchiveURL(url: string, overrideEditorConfig?: boolean): Promise<DesignBlockId>;
8189
+ loadFromArchiveURL(url: string, overrideEditorConfig?: boolean, waitForResources?: boolean): Promise<DesignBlockId>;
8187
8190
  /**
8188
8191
  * Serializes the current scene into a string. Selection is discarded.
8189
8192
  *