![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Inces |
I am trying to create different sets of MeshLibraries for my GridMap, utilizing the same script and collision. FOr example walls and floors for jungle,desert,dungeon and so on. After finalizing script for random terrain generation I discovered, that there is now way I can control what index is going to be assigned to each mesh after importing scene to Mesh Library. I tried alphabetical order, child order, adding piece by piece - everytime Gridmap does some horseshit and enumeration is like random. Even when items are aligned in correct order in Editors UI - they still get indexes like 0,3,4,1… This is bad for me, because I expected script to recognize walls and floors by the index, and now it seems impossible. Every new mesh library I create using the same amount of different meshes gets different indexes for each of them.
Did anyone find a way around this ? Or am I doing something wrong with converting ?