mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Updated function call
The function "surface_clear" does not exist as of 4.2.2. "clear_surfaces" does however.
(cherry picked from commit 3844fba41d)
This commit is contained in:
@@ -78,7 +78,7 @@ The example code below draws a single triangle in the ``_ready()`` function.
|
||||
The ImmediateMesh can also be used across frames. Each time you call
|
||||
``surface_begin()`` and ``surface_end()``, you are adding a new surface to the
|
||||
ImmediateMesh. If you want to recreate the mesh from scratch each frame, call
|
||||
``surface_clear()`` before calling ``surface_begin()``.
|
||||
``clear_surfaces()`` before calling ``surface_begin()``.
|
||||
|
||||
.. tabs::
|
||||
.. code-tab:: gdscript GDScript
|
||||
|
||||
Reference in New Issue
Block a user