0 votes

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.
in Engine by (12 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.