Skip to content

Commit f43854d

Browse files
author
Stefan Hessel
committed
adjust documentation to code changes in RemoteRenderingCoordinator
1 parent 4858ac7 commit f43854d

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

articles/remote-rendering/tutorials/unity/view-remote-models/view-remote-models.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ public class RemoteRenderingCoordinator : MonoBehaviour
417417
//Implement me
418418
}
419419

420-
public void StopRemoteSession()
420+
public async void StopRemoteSession()
421421
{
422422
//Implement me
423423
}
@@ -451,7 +451,7 @@ public class RemoteRenderingCoordinator : MonoBehaviour
451451
/// <summary>
452452
/// Connects the local runtime to the current active session, if there's a session available
453453
/// </summary>
454-
public void ConnectRuntimeToRemoteSession()
454+
public async void ConnectRuntimeToRemoteSession()
455455
{
456456
//Implement me
457457
}
@@ -649,11 +649,11 @@ public async void JoinRemoteSession()
649649
}
650650
}
651651

652-
public void StopRemoteSession()
652+
public async void StopRemoteSession()
653653
{
654654
if (ARRSessionService.CurrentActiveSession != null)
655655
{
656-
ARRSessionService.CurrentActiveSession.StopAsync();
656+
await ARRSessionService.CurrentActiveSession.StopAsync();
657657
}
658658
}
659659
```
@@ -678,20 +678,19 @@ The application also needs to listen for events about the connection between the
678678
/// <summary>
679679
/// Connects the local runtime to the current active session, if there's a session available
680680
/// </summary>
681-
public void ConnectRuntimeToRemoteSession()
681+
public async void ConnectRuntimeToRemoteSession()
682682
{
683683
if (ARRSessionService == null || ARRSessionService.CurrentActiveSession == null)
684684
{
685685
Debug.LogError("Not ready to connect runtime");
686686
return;
687687
}
688688

689-
//Connect the local runtime to the currently connected session
690-
//This session is set when connecting to a new or existing session
689+
// Connect the local runtime to the currently connected session
690+
// This session is set when connecting to a new or existing session
691691
692692
ARRSessionService.CurrentActiveSession.ConnectionStatusChanged += OnLocalRuntimeStatusChanged;
693-
ARRSessionService.CurrentActiveSession.ConnectAsync(new RendererInitOptions());
694-
CurrentCoordinatorState = RemoteRenderingState.ConnectingToRuntime;
693+
await ARRSessionService.CurrentActiveSession.ConnectAsync(new RendererInitOptions());
695694
}
696695

697696
public void DisconnectRuntimeFromRemoteSession()

0 commit comments

Comments
 (0)