in the SDK Scene Composer you can “Add a Model to the Scene” and “Link a Model to the Scene”.
I have to questions regarding this functionality:
Does linking Models have any advantages in terms of performance or memory usage during runtime?
Or are all models just copied when the scene is created?
Is there a way to do link models programmatically?
I’ve made a little world editor and it would be great if the models auto-updated themselves, i.e. when the tree model changes, every model in the scene changes.
Linking doesn’t have any runtime advantage, apart from a smaller asset cache and loading stuff.
Think of it like that: Instead of copying the whole “tree” mesh in every single “world”/map you have, it just says “and here’s a tree”, this reduces map file size and hence loading times. Since every asset is cached after the first loading attempt by default, you’d have as many trees additionally in RAM as you’ve used in all your maps loaded