- Home /
Question by
cotterdev · Jun 09, 2021 at 11:52 PM ·
instantiateterrain
How to restrict where gameobjects can be instantiated on terrain?
I am building a tower defense game. How can I limit where the user can place turrets? In the attached photo, I would like to allow the placement of turrets on the edge of the path but no where else.
I thought about putting a collider along the path, but I plan on making a another level with a winding path. Putting a collider on a winding path would be quite cumbersome. Any ideas on how to make this work?
Comment
Your answer
Follow this Question
Related Questions
Instantiating too much at Start? Terrain Objects. 0 Answers
Spawning above the terrain 2 Answers
Put a detailed mesh into terrainData 0 Answers
Dealing with placing large amounts of objects via script? 1 Answer
Terrain with lots of objects 1 Answer