The object is removed and vector3 becomes the default (0,0,0). Because, as I understand it, it is not a value that is passed to a variable, but a reference to the value. After deletion, the reference becomes null and the value of vector3 is reset. I need to use these coordinates after deleting an object, but I don't understand how to copy these values.