Updating inputs in a NodeGeometry loaded from JSON

I have created a NodeGeometry from the JSON generated by the Node Geometry Editor and succesfully created a mesh using NodeGeometry.createMesh.
I can get the inputs to the node geometry with NodeGeometry.getInputBlocks()
If I modify the value of one of the inputs blocks, how do then regenerate the geometry?

I have tried
NodeGeometry.updateMesh(this._mesh) and calling NodeGeometry.createMesh() but both APIs use the original values in the node geometry JSON,

Am I missing a step?

Please advise.
Thanks,
Michael

you need to dispose the previous one and call create mesh again.
The process is quite fast and can happen within a frame

1 Like

That is one of the options that I tried but it did not work. I eventually found that I had to call NodeGeometry.build() to get it to rebuild and then the updateMesh() worked fine.

1 Like

Oh sorry this is my bad. I misunderstood the question :smiley:
You are totally right!