When using an ImmediateMesh, I encounter some strange behavior

Godot Version

godot 4.3

Question

When using an ImmediateMesh, I encounter some strange behavior.

I’m using the Curve of a Path2D to create lines with ImmediateMesh when two or more points are clicked on the screen. It works correctly when the Camera2D is not moved, but when I move the Camera2D, the line mesh I created disappears.

However, if I resize the application window, the line reappears.

I suspect that the AABB of the ImmediateMesh is not being updated immediately.

Is there a way to force an AABB update on ImmediateMesh or set it manually? Or is there a way to disable frustum culling for a specific object?

i solve this problem.

when, ImmediateMesh is updated, i call queue_redraw() in CanvasItem’s function.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.