Two uterrain instances in the same scene

Questions & AnswersCategory: ProgramingTwo uterrain instances in the same scene
xelon asked 8 years ago

Everytime I try to add another uterrain instance to the same scene, the chunks gets mixed up from the two instances and I get materials mixed up as well. I think this is because both chunks from the two instances have the same name. Is there a way to make it such that everytime we initialize a new uterrain instance, the chunks get a different name so that they don’t get mixed up? For example check if we already have an existing uterrain instance in the scene, if yes, the new instance will be incremented by “1” and all the chunks will have +”1″ in them.