Method TrySetLoaders
TrySetLoaders(List<XRLoader>)
Attempts to set the given loader list as the list of loaders managed by this instance.
Declaration
public bool TrySetLoaders(List<XRLoader> reorderedLoaders)
Parameters
Type | Name | Description |
---|---|---|
List<XRLoader> | reorderedLoaders | The list of XRLoaders to be managed by this manager instance. |
Returns
Type | Description |
---|---|
bool |
|
Remarks
This method behaves differently in the Editor and during runtime/Play mode. While in the Editor and not in Play mode, any attempts to set the list of loaders will succeed without any additional checks. During runtime/Play mode, the new loader list will be validated against the registered XRLoader types. If any loaders exist in the list that were not registered at startup, the attempt will fail.