It’s been a long time since I came back to PlayCanvas. I haven’t seen you for a long time. Today, I wanted to implement a function, but I didn’t have much idea. I used code to generate a group with two boxes in it. When the mouse drags the group at different positions, it scales according to the direction and distance of the mouse movement, and the size and spacing of the two boxes in the group also need to be scaled.
That is to say, after dragging the mouse up, down, left, right, and left, the group will be scaled accordingly, and the blocks inside the group will also be scaled, and the spacing between the blocks will also change