/// <summary> /// 预制体资源根目录 /// ---------需要在项目内重载--------------- /// </summary> public static GameObject CreateObject(this UnityEngine.MonoBehaviour load, string path, Transform parent = null) { var obj = load.Load <GameObject>(path); return(load.CreateObject(obj, parent)); }