From d24c0c3e27ad00b1934871c22c7f47beeb72da65 Mon Sep 17 00:00:00 2001 From: Shawn Hardern <126725649+ShawnHardern@users.noreply.github.com> Date: Fri, 23 Aug 2024 15:26:09 +0100 Subject: [PATCH] Add C# examples to Mesh level of detail --- tutorials/3d/mesh_lod.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tutorials/3d/mesh_lod.rst b/tutorials/3d/mesh_lod.rst index 5f0e7623ed4..6fd3d71cd9d 100644 --- a/tutorials/3d/mesh_lod.rst +++ b/tutorials/3d/mesh_lod.rst @@ -138,10 +138,15 @@ by changing the **Rendering > Mesh LOD > LOD Change > Threshold Pixels** project setting. To change this value at run-time, set ``mesh_lod_threshold`` on the root viewport as follows: -:: +.. tabs:: + .. code-tab:: gdscript get_tree().root.mesh_lod_threshold = 4.0 + .. code-tab:: csharp + + GetTree().Root.MeshLodThreshold = 4.0f; + Each viewport has its own ``mesh_lod_threshold`` property, which can be set independently from other viewports.