Another question about mesh component.
May someone explain me how to get an independet instances of mesh buffer?
What I mean: if you create an object with mesh, then another object with the same mesh (same buffer), etc. Then if modify any stream in this buffer you modify all instances of mesh at once.
Example:
On this example, green meshes are simple GO on scene, but brown ones created by factory. The only one object has an update function with vertex position modificator.
I tried to create Go with meshes by factory, no result.
Tried to create a new buffer by buffer.create
. The same result.
The only way to create fully unique mesh is copy file of original buffer and set it to other mesh component. But in this case you can’t create unique instances by factory (All objects will have the same buffer).
What I missed?
Simple project to reproduce: test.zip (8.8 KB)