- Edited
I have this situation (code to demonstrate my confusion)
var my_pool:PoolVector3Array
func calling_func():
my_pool[0] = Vector3.ZERO
modifying_func(my_pool)
print("my-pool", to_json(my_pool) // prints ZERO not UP!
func modifying_func(p: PoolVector3Array): p[0] = Vector3.UP
So it occurs to me that maybe the engine is cloning on modification? If so, this is not the kind of thing I expected. If I pass by reference I want passed by reference...