mirror of
https://github.com/godotengine/godot-cpp.git
synced 2026-01-01 05:48:37 +03:00
This is needed since that operator returns a local copy, not an lvalue. Attempting to write to the return value of these operators wouldn't change the array element. PoolVectors need locking when writing, so this operator can't return a writable reference. To update a Pool*Array, use the `set()` method which locks and unlocks the array. For multiple writes, use the `write()` method which returns a locked writable view, and unlocks when it goes out of scope.