Download

Pass data by reference - how?

Hey guys!
Is there any way to pass data by reference in Blueprints?
For example I have Box and Sphere.
I want to assign Vector A [0,0,0] as a location for Box and I want to assign same vector for Sphere.
Or assign box location to sphere location so they use same vector

You can pass data by reference in function by checking the “pass-by-reference” box in the advanced options of the parameter like so:
Capture.PNG

However, it sounds like you want to point the location vector for the root component of two components to the actual same vector (e.g. store location as a pointer, instead of a value?). I’m afraid you can’t do that in Blueprints, but you could use the Attach function to attach the Box and Sphere to the same base component, and then just manipulate that!