Note: This function needs to run on the main thread or with a deferred call as the SceneTree is not thread-safe.
Performance: While convenient, reading data arrays from
Mesh resources can affect the frame rate negatively. The data needs to be received from the GPU, stalling the
RenderingServer in the process. For performance prefer the use of e.g. collision shapes or creating the data arrays entirely in code.