Files
VR-WuKong/Assets/ThirdParty/Tools/MeshCombineStudio/Editor/DetectMeshImportSettingsChange.cs

23 lines
536 B
C#
Raw Normal View History

2025-11-14 18:44:06 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
namespace MeshCombineStudio
{
public class DetectMeshImportSettingsChange : AssetPostprocessor
{
void OnPreprocessModel()
{
// ModelImporter importer = (ModelImporter)assetImporter;
// List<MeshCombiner> instances = MeshCombiner.instances;
// Debug.Log("MeshCombiner instances " + instances.Count);
MeshCombineJobManager.ResetMeshCache();
}
}
}