BITFALL/Assets/Polaris - Low Poly Ecosystem/Polaris - Low Poly Terrain .../Editor/Scripts/WizardTool/GUrpPackageImporter.cs

24 lines
626 B
C#

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);
}
}
}