// 通过Resources.LoadAtPath方法动态加载Prefab
private void LoadPrefabByResources()
{
Object prefab = Resources.LoadAssetAtPath("Assets/Prefabs/Cube.prefab", typeof(GameObject));
GameObject cube = (GameObject)Instantiate(prefab);
cube.transform.parent = transform;
}