Closed whatthemehek closed 1 year ago
Hi @whatthemehek ,
First, the exception is probably because you don't have a ARRServiceUnity
component on your GameObject. Either make sure in the editor that you add the component to the same GameObject as your CustomScript
, or add the following attribute to your component, which will ensure that the dependency is always fulfilled:
[RequireComponent(typeof(ARRServiceUnity))]
public class CustomScript : MonoBehaviour
{
Second, ARRServiceUnity
is a convenience class that already takes care of creating a RemoteRenderingClient
. You should either use one or the other. If you use ARRServiceUnity
, you can follow either the Unity tutorial or just take the Quickstart sample code to get you started.\
If you don't want to use ARRServiceUnity
and do everything by hand, you can follow the example code you linked, but for most users ARRServiceUnity
should be more convenient to use.
Cheers, Christopher
I am trying to create a custom ARR instance, based on the example code in this page:
https://learn.microsoft.com/en-us/azure/remote-rendering/concepts/sessions#session-phases
as well as the default RemoteRenderingCoordinator script.
When I run this code, calling InitRenderingSession() upon start:
I get the following error on the line where I call ARRSessionService.Initialize(sessionConfig);
Why is this error occurring?