Hi have randome gen terrain and am wanting to randomly generate villages throught out it i have random gen trees right now but if i do it the same way for villages as trees the spawn up in the air and are all random.
Why don’t you try using Object.Instantiate. For the first parameter, create a public variable for your village and in Unity set it to your village prefab. For the second parameter, create a new Vector3 with random values for your X & Z values and a set Y value. For your third and final parameter, enter in the value of Quaternion.identity. To do this procedurally you could create a function CreateVillage in your GameController script that uses Object.Instantiate to create your villages and then you can call CreateVillage whenever you need to create a new village.