I was wondering if it is possible to include the same ModelLib (or material library, or SimObject) in 2 different packages. I have a ModelLib that includes commonly used props (fence segments, street lighting, etc) and I want to re-use it between two separate scenery packages.
How is this handled? Can two identical ModelLibs (BGLs) be mounted at the same time? Is the sim checking if one is already mounted so it doesn’t mount the other? Or, do I have to compile a whole new ModelLib with the same assets but different GUIDs?
Also, does the same go for SimObjects?
Thanks,
Mitch
TerraBuilder Team
1 Like
Some devs create a package for the common library and distribute it separately.
It is also possible to have another modelib that you can include on every package. I’ve personally done that. The models or simobjects have the same GUID and the sim loads it from any package where it is available.
In the SDK when you load an object, you can see which packages it is included in, in the properties panel.
1 Like
Thanks for chiming in, @vpilotfs ! So - if the object with the same GUID has several “clones”, the system doesn’t “freak out”, it just picks the first available? Ok, that makes it ease. I will do some testing and see if that’s the case.