Clone with equal and dynamic position

Hi !
Someone have the solution to do that?
I can choose dynamically the space between each object and the total number of object
cloneWithParameters

thank you

If this is in 2D Screenspace, you should be able to achieve this with a Layout Group:

https://developer.playcanvas.com/en/user-manual/user-interface/layout-groups/

Enabling, disabling, adding/cloning, and deleting objects in the group will cause the layout group to space them evenly. If you want to dynamically change the spacing, you can achieve that by adjusting the group spacing in code as well. Though not completely related, this project, might help you a bit with how Layout Groups work:

https://playcanvas.com/editor/project/734864

1 Like

Thank you for your reply
It must work with 3D object