Unable to access dynamically added mesh using the SurfaceTool
I'm trying to create buildings procedural, [https://github.com/pjimenezmateo/procedural] , In the same code made small modifications like.. added the created mesh Instances to new group.
The following is the scene structure.
┖╴Spatial => Script Attached
┠╴Sun => Script Attached
┖╴piramidal0 => added dynamically.
Trying to access the mesh of the 'piramidal0' in the script that is attached to Sun... all it returns is null; even though mesh Object is present in the Scene.
The mesh is created via Surface Tool and added to MeshInstance using surfacetool.commit