#Mesh library not allowing child nodes of meshes to be seen in gridmap

3 messages · Page 1 of 1 (latest)

wary plinth
#

In Godot I have a mesh library for a gridmap, in the mesh Library I have a mesh that includes an OmniLight3D as a child node of the mesh, but when I export the scene as a mesh library and use it for the gridmap the mesh with the OmniLight3D attached as a child node is not there

warm jungle
# wary plinth In Godot I have a mesh library for a gridmap, in the mesh Library I have a mesh ...

unlike TileMaps, Gridmaps unfortunately don't have the feature to add scenes as a Cell. you'll have to manually replace cells that have a speciffic id with an instance of the scene. Something like they've done here, although it's still Godot3.
https://www.youtube.com/watch?v=h1K2k0Bw4CA

Similar to my Tilemap video here:
https://www.youtube.com/watch?v=CDwSTV0y9Rg

The concept is:

  1. Get the used cells of a certain type and put them into an array.
  2. Replace those used cells with an instanced scene.

It helps to avoid Scene Tree clutter, and works really good for placing small entities like lights or NPC's into your level. You c...

▶ Play video
wary plinth
#

Is there anything else I can do like an alternate to gridmaps or an updated tutorial?