Browse Source

Add C# examples to Mesh level of detail

Shawn Hardern 11 months ago
parent
commit
d24c0c3e27
1 changed files with 6 additions and 1 deletions
  1. 6 1
      tutorials/3d/mesh_lod.rst

+ 6 - 1
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
 setting. To change this value at run-time, set ``mesh_lod_threshold`` on the
 root viewport as follows:
 root viewport as follows:
 
 
-::
+.. tabs::
+ .. code-tab:: gdscript
 
 
     get_tree().root.mesh_lod_threshold = 4.0
     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
 Each viewport has its own ``mesh_lod_threshold`` property, which can be set
 independently from other viewports.
 independently from other viewports.