Object tempPrefab = EditorUtility.CreateEmptyPrefab("Assets/res/audio/AudioSourcePrefab/" + gameObject.name + ".prefab");
tempPrefab = EditorUtility.ReplacePrefab(gameObject, tempPrefab);
转载于:https://www.cnblogs.com/chenan/p/3547670.html
Object tempPrefab = EditorUtility.CreateEmptyPrefab("Assets/res/audio/AudioSourcePrefab/" + gameObject.name + ".prefab");
tempPrefab = EditorUtility.ReplacePrefab(gameObject, tempPrefab);
转载于:https://www.cnblogs.com/chenan/p/3547670.html