mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 16:28:59 +00:00
Merge pull request #9815 from ShawnHardern/update-mesh-load-csharp
Add C# examples to Mesh level of detail
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user