What is a minimap texture?
This article is in the process of being edited.
Mission Graph is a beta feature. The basic algorithm is ready, but we would like to reflect the opinions of designers on how to have the parameters.
This system is a beta version to incorporate the opinions of designers and artists. Specifications are subject to change without notice. We are looking for advice from designers and artists. Please fill in the discussion.
The Dungeon Generator plugin generates a minimap of the generated dungeon. The minimap can be output as a texture asset. It can also be displayed in the UI as a texture object.
Textures are generated for each level of the dungeon, so they can be used to aid exploration in multi-level dungeons. Textures can be created in two types: size-specific and density-specific.
How to create texture assets
Create the dungeon in advance in the editor. Generate a texture for the minimap based on the information from the dungeon you just created. If the dungeon generation information is not valid, the Generate texture with size
or Generate texture with scale
button will not be enabled.
The Generate texture with size
or Generate texture with scale
button will create a texture asset in the ProceduralTextures
folder in the content browser.
This is how the textures are generated for each level of the hierarchy. The lower the layer, the lighter the color.
How to create a texture object
When generating a dungeon at runtime, textures can be generated directly and displayed from UserWidget.
Once the dungeon is generated by
DungeonGenerateActor
, you can retrieve the DungeonMinimapTextureLayer
object.
Extract the texture of the current level from the
DungeonMinimapTextureLayer
object based on the height of the player and set it to the Widget.