Problem with dynamic wall

Hello i Have a problem, i want to make dynamic wall by drag a mouse, but if i scale it i get a wall behind the original.Its some option to make long wall which look like this small original ?

The counter question is how exactly you want it to stretch. It’s either per any (small values) or predefined certain chunks. Most likely you’d want to choose predefined chunks.

  • Use raycast from screen register hit on ground
  • You’ll need list of structure objects
  • On click event Instantiate part
  • store parts in list or check for nearby (depends on your need)
  • give possible “next-step” solutions if build is in process

I’ve created something similar, but for editor. Check it out for reference how it might work technically.