I want to randomly place a poster I made on the walls in my game. My teacher showed me a randomobject script, but it just places the selected model randomly throughout the Terrain. How could I edit this so it randomly places a cube with this texture, but only on walls (or the mesh collider on them)?
↧