//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
#if XR_MGMT_GTE_320
namespace Rokid.XR.Core.Editor
{
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.XR.Management.Metadata;
using UnityEngine;
///
/// XR Metadata for XR Plugin.
/// Required by XR Management package.
///
public class UXRCorePackage : IXRPackage
{
///
/// Package metadata instance.
///
public IXRPackageMetadata metadata => new PackageMetadata();
///
/// Populates package settings instance.
///
///
///
/// Settings object.
///
/// Settings analysis result. Given that nothing is done, returns true.
public bool PopulateNewSettingsInstance(ScriptableObject obj)
{
return true;
}
private class LoaderMetadata : IXRLoaderMetadata
{
public string loaderName => "Rokid XR Core";
public string loaderType => typeof(Rokid.XR.Core.XRLoader).FullName;
public List supportedBuildTargets => new List()
{
BuildTargetGroup.Android,
};
}
private class PackageMetadata : IXRPackageMetadata
{
public string packageName => "Rokid XR Core";
public string packageId => "com.rokid.xr.core";
public string settingsType => typeof(Rokid.XR.Core.XRSettings).FullName;
public List loaderMetadata => new List()
{
new LoaderMetadata()
};
}
}
}
#endif // XR_MGMT_GTE_320