File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Assets/MRTK/Providers/XRSDK Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public virtual bool CheckCapability(MixedRealityCapability capability)
6262 /// </summary>
6363 /// <param name="loaderName">The string name to compare against the active loader.</param>
6464 /// <returns>True if the active loader has the same name as the parameter.</returns>
65- protected virtual bool IsLoaderActive ( string loaderName ) => XRGeneralSettings . Instance . Manager . activeLoader . name == loaderName ;
65+ protected virtual bool IsLoaderActive ( string loaderName ) => XRGeneralSettings . Instance . Manager . activeLoader != null && XRGeneralSettings . Instance . Manager . activeLoader . name == loaderName ;
6666
6767 /// <summary>
6868 /// Checks if the active loader is of a specific type. Used in cases where the loader class is accessible, like OculusLoader.
You can’t perform that action at this time.
0 commit comments