unity assign gameobject to prefab instantiated code example Example: unity instantiate prefab Instantiate(cube, Vector3 (x, y, 0), Quaternion.identity);