2024-03-05 17:34:41 +08:00
|
|
|
#if GRIFFIN
|
2023-12-30 17:37:48 +08:00
|
|
|
using UnityEngine;
|
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEditor.Callbacks;
|
|
|
|
using UnityEditor;
|
|
|
|
|
|
|
|
namespace Pinwheel.Griffin.Wizard
|
|
|
|
{
|
|
|
|
public static class GUrpPackageImporter
|
|
|
|
{
|
|
|
|
public static void Import()
|
|
|
|
{
|
|
|
|
string packagePath = GEditorSettings.Instance.renderPipelines.GetUrpPackagePath();
|
|
|
|
if (string.IsNullOrEmpty(packagePath))
|
|
|
|
{
|
|
|
|
Debug.Log("URP Support package not found. Please re-install Polaris.");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
AssetDatabase.ImportPackage(packagePath, false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-03-05 17:34:41 +08:00
|
|
|
#endif
|