Method InitializeLoader
InitializeLoader()
Iterate over the configured list of loaders and attempt to initialize each one. The first one that succeeds is set as the active loader and initialization immediately terminates.
When complete isInitializationComplete will be set to true. This will mark that it is safe to call other parts of the API. This does not guarantee that init successfully created a loader. For that you need to check that ActiveLoader is not null.
Note that there can only be one active loader. Any attempt to initialize a new active loader with one already set will cause a warning to be logged and immediate exit of this function.
Iteration is done asynchronously and this method must be called within the context of a Coroutine.
If manual initialization of XR is being done, this method can not be called before Start completes as it depends on graphics initialization within Unity completing.
Declaration
public IEnumerator InitializeLoader()
Returns
Type | Description |
---|---|
IEnumerator | Enumerator marking the next spot to continue execution at. |