瀏覽代碼

fix(tutorials/performance/using_multimesh.rst): removed out of date code

Mateus Elias 2 年之前
父節點
當前提交
2aa7d47821
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      tutorials/performance/using_multimesh.rst

+ 0 - 4
tutorials/performance/using_multimesh.rst

@@ -63,8 +63,6 @@ efficient for millions of objects, but for a few thousands, GDScript should be f
         multimesh = MultiMesh.new()
         # Set the format first.
         multimesh.transform_format = MultiMesh.TRANSFORM_3D
-        multimesh.color_format = MultiMesh.COLOR_NONE
-        multimesh.custom_data_format = MultiMesh.CUSTOM_DATA_NONE
         # Then resize (otherwise, changing the format is not allowed).
         multimesh.instance_count = 10000
         # Maybe not all of them should be visible at first.
@@ -86,8 +84,6 @@ efficient for millions of objects, but for a few thousands, GDScript should be f
             Multimesh = new MultiMesh();
             // Set the format first.
             Multimesh.TransformFormat = MultiMesh.TransformFormatEnum.Transform3D;
-            Multimesh.ColorFormat = MultiMesh.ColorFormatEnum.None;
-            Multimesh.CustomDataFormat = MultiMesh.CustomDataFormatEnum.None;
             // Then resize (otherwise, changing the format is not allowed)
             Multimesh.InstanceCount = 1000;
             // Maybe not all of them should be visible at first.