Hi,
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
┠╴ground
┠╴Camera
┠╴Sun => Script Attached
┃ ┖╴Sky
┖╴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.
More Info:
The mesh is created via Surface Tool and added to MeshInstance using surfacetool.commit
(https://github.com/pjimenezmateo/procedural "https://github.com/pjimenezmateo/procedural")