I'm following the tutorial in the main documentation regarding creating geometry with the SurfaceTool, and the example code ends with
var mesh = st.commit()
This generates a "mesh" variable with the results of the data entered into the SurfaceTool, but what can I do with this variable afterwards? When I try to call add_child() on it I get the following error:
Invalid type in function 'add_child' in base 'Spatial (FloorTile.gd)'. Cannot convert argument 1 from Object to Object.