+1 vote

I created a dynamically generated Sphere mesh which is configurable via exported properties. Whenever property changes I generate updated mesh, and assign it to the MeshInstance in the scene, i.e.

var newMesh: ArrayMesh = ArrayMesh.new()
...
self.mesh = surface.commit(newMesh)

The problem is that whenever the last line executes, and mesh is assigned, the inspector is completely resetting, so I can't modify my mesh smoothly by using sliders.
So, the question as in the subject, is how do I modify the mesh without Inspector resetting ?

Godot version v3.4.stable.mono.official [206ba70f4]
in Engine by (21 points)
edited by

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 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.