"I'm using Unity version 2022, and when I open it, I get the following errors."
private static void EnsureLoaderExists<T>() where T : XRLoader
{
XRManagerSettings xrManagerSettings = XRGeneralSettings.Instance.Manager;
if (xrManagerSettings != null && !xrManagerSettings.loaders.Exists(loader => loader is T))
{
xrManagerSettings.loaders.Add(ScriptableObject.CreateInstance<T>());
}
}
Assets/MixedRealityToolkit/Utilities/Editor/Setup/MixedRealityProjectConfigurator.cs(135,63): error CS0246: The type or namespace name 'XRLoader' could not be found (are you missing a using directive or an assembly reference?)