I’m trying to recreate the grid cloner option in Cinema 4D but in UE4.
I want this to be used within the game so no construction script stuff.
The idea is to spawn a single cube within the scene that you can “drag” out the sides to add or remove clones of it. So when you start cloning and go from one object to two the center axis point would need to change, so that the two objects split center. Example shown below (Built in Cinema 4D)
I wrote this some time ago and it seems to work after converting to 4.24:
It does not have a ton of functionality but some variables are exposed. More can be added, of course. It does correct the pivot.
While it’s not precisely what you’re requesting, it does seem to have overlapping functionality. Do tell if you’re interested, I’ll zip the project and drop it on Google Drive. I could post script screenshots instead but it may be easier to reverse engineer it.
It’s using instanced static meshes so you can have a million of these (maybe). It was originally designed to stack items on shelves if my memory serves me right.
Added some comments so it’s somewhat readable. 99% of the script is in the Replicator actor’s main graph. There is a single dispatcher in the player controller.