public class Test : UnityEditor.AssetModificationProcessor { private static void OnWillCreateAsset(string path){ //方法必须为static Debug.Log (path); } }