Skip to content

Commit 612b1e5

Browse files
committed
Doc ticket #106780: LoadModelOptions does not have overloaded ctor anymore
1 parent f90f6ae commit 612b1e5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

articles/remote-rendering/concepts/models.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The following code snippets show how to load models with either function. To loa
4141
async void LoadModel(RenderingSession session, Entity modelParent, string storageAccount, string containerName, string assetFilePath)
4242
{
4343
// load a model that will be parented to modelParent
44-
var modelOptions = new LoadModelOptions(
44+
var modelOptions = LoadModelOptions.CreateForBlobStorage(
4545
storageAccount, // storage account name + '.blob.core.windows.net', e.g., 'mystorageaccount.blob.core.windows.net'
4646
containerName, // name of the container in your storage account, e.g., 'mytestcontainer'
4747
assetFilePath, // the file path to the asset within the container, e.g., 'path/to/file/myAsset.arrAsset'

articles/remote-rendering/tutorials/unity/security/security.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var task = ARRSessionService.CurrentActiveSession.Connection.LoadModelFromSasAsy
4444
The above lines use the `FromSas` version of the params and session action. They must be converted to the non-SAS versions:
4545

4646
```cs
47-
var loadModelParams = new LoadModelOptions(storageAccountPath, blobName, modelPath, modelEntity);
47+
var loadModelParams = LoadModelOptions.CreateForBlobStorage(storageAccountPath, blobName, modelPath, modelEntity);
4848
var task = ARRSessionService.CurrentActiveSession.Connection.LoadModelAsync(loadModelParams);
4949
```
5050

@@ -83,7 +83,7 @@ Let's modify **RemoteRenderingCoordinator** to load a custom model, from a linke
8383
}
8484

8585
//Load a model that will be parented to the entity
86-
var loadModelParams = new LoadModelOptions($"{storageAccountName}.blob.core.windows.net", blobName, modelPath, modelEntity);
86+
var loadModelParams = LoadModelOptions.CreateForBlobStorage($"{storageAccountName}.blob.core.windows.net", blobName, modelPath, modelEntity);
8787
var loadModelAsync = ARRSessionService.CurrentActiveSession.Connection.LoadModelAsync(loadModelParams, progress);
8888
var result = await loadModelAsync;
8989
return modelEntity;

0 commit comments

Comments
 (0)