0 votes

I have a generic MeshInstance3D node (let's call it MyNode). When I try:

$MyNode.mesh = Mesh.new()

I get a console error

Required virtual method Mesh::_get_surface_count must be overridden before calling.
Required virtual method Mesh::_get_blend_shape_count must be overridden before calling.

What am I doing wrong?
The issue happens both with and without a loaded mesh resource.

Godot version 4
in Engine by (14 points)

I've not used v4, but maybe you have to create a type of mesh, e.g. CylinderMesh.new().

1 Answer

0 votes

gdvirtualgetsurfacecountcall: Required virtual method Mesh::getsurfacecount must be overwritten before calling

gdvirtual seems to be an autodesk file, I'm importing a glb from blender and having a similar problems

by (14 points)
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 Frequently asked questions and 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 [email protected] with your username.