Files
ZHGD_Web/Assets/Quixel/Scripts/BridgeImporter/MegascansPostProcess.cs

30 lines
953 B
C#
Raw Permalink Normal View History

2025-07-13 23:16:20 +08:00
#if UNITY_EDITOR
using UnityEditor;
using UnityEngine;
namespace Quixel
{
public class MegascansPostProcess : AssetPostprocessor
{
static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
{
// if(!MegascansUtilities.isLegacy())
// {
// Debug.Log("Automatically changing API Compatibility Level.");
// PlayerSettings.SetApiCompatibilityLevel(EditorUserBuildSettings.selectedBuildTargetGroup, ApiCompatibilityLevel.NET_4_6);
// }
// loop through imported files, see if it's a .qxl file.
for (int i = 0; i < importedAssets.Length; ++i)
{
if (importedAssets[i].Contains("MegascansImporterWindow.cs"))
{
MegascansImporterWindow.Init();
}
}
}
}
}
#endif