Method TryRemoveLoader
TryRemoveLoader(XRLoader)
Attempts to remove the first instance of a given loader from the list of loaders.
Declaration
public bool TryRemoveLoader(XRLoader loader)
Parameters
Type | Name | Description |
---|---|---|
XRLoader | loader | The XRLoader to be removed from this manager's instance of loaders. |
Returns
Type | Description |
---|---|
bool |
|
Remarks
This method behaves differently in the Editor and during runtime/Play mode. During runtime/Play mode, the loader will be removed with no additional side effects if it is in the list managed by this instance. While in the Editor and not in Play mode, the loader will be removed if it exists and it will be unregistered from this instance and any attempts to add it during runtime/Play mode will fail. You can re-add the loader in the Editor while not in Play mode.