[Resolved]Clone Vector3

how to clone positions that are inside a vector variable to another, my intention is not to pass but to send the positions that are set in the first to the other vectors

Values are copied from the last element, so set “Size*”* to 1, insert your values and then resize the array by setting “Size” to the appropriate number.

1 Like

this would only work if I had a unique position, mine is totally different from one another

Maybe you may use OnValidate callback to clone values

1 Like

Just iterate elements of source vector in for/foreach loop and assign to elements of target vector.

1 Like

You might want to check out the asset “Inspector Gadgets”.

I just tried your exact scenario with an array of vectors. It adds context entries which let you copy or paste values, and select from type-specific functions or constants. Here, I “copied” element 7, and then right clicked the word “Element 9” showing this menu.

1 Like

Thanks to everyone for the answers, I used the idea that Antypodish said, solved

1 Like