zzlettle Posted May 8, 2018 Share Posted May 8, 2018 hi i am new find an article that tell me prefer use the BABYLON.InstancedMesh to make more mesh however ,i see other code that use mesh.clone what are those two function difference ? in what situation ,we use it? thanks Quote Link to comment Share on other sites More sharing options...
Dad72 Posted May 8, 2018 Share Posted May 8, 2018 - an instance is like a copy of the base object (which serves as a reference). if you modify the base object (textures for example) all instances are modified, copies can not be modified. - If you create a clone, it's also a copy, but each copy can be edited and have their own editable textures. You can also create another clone from a clone, which is not possible with instances. Instance creation is the most efficient if you do not need to modify them, otherwise prefer the cloning that creates new editable mesh. Cloning avoids reloading the same object and is therefore faster. Quote Link to comment Share on other sites More sharing options...
zzlettle Posted May 8, 2018 Author Share Posted May 8, 2018 get it thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.