Creating a new Map Creator and adding Map Parts
Last updated
Last updated
If you want to use the map system, you need to drag and drop the Map System prefab (with the same name) in the folder Assets/Game Kit Controller/Prefabs/Map System.
Once the hierarchy contains these two elements:
Inside the hierarchy of the Map System gameObject, go to Floor List and to Map Creator inspector.
Go to Floors List and press Add Floor button.
This element will contain all the map parts for the same floor. At the same time, every map part contains a group of empty transforms which are used as a vertex to create the map part mesh, like a room, a corridor, a wall, etc…
In the hierarchy, you can see that inside the Floor List transform, a new transform has been added as a parent to that floor, and inside that floor, the first map part.
Open the first element of the floor list, which already contains the first map part, to the Map Tile Builder inspector, and press the button Add Transform in the Vertex Position list.
For example, if you press this button 4 times, 4 empty transforms will be attached inside the MapPart-001, used as the vertex for the mesh that will be created.
For an easy workflow, in the Map Tile Builder, go to Gizmo Settings and enable the Use Handle For Vertex and configure the radius as you need.
You can also move the transform 001 to 004 to place the vertex to make the shape that you need.
You can add as many vertexes as you need, to make rooms or places simple, for example, squares or rectangles to circular rooms, hexagonal, etc…, just press the button Add Transform.
When the game starts, the shape is created, looking like this:
You can remove any of these vertexes by pressing the X button and both the object in the scene and in the list are removed.