浏览代码

Clarify how to use MultiMesh.set_instance_color.

Just calling set_instance_color will do nothing unless you have set
color_format and vertex_color_use_as_albedo. This is really confusing,
and I only discovered my error by finding godotengine/godot#10217 from
another confused user.

The docs should call out these requirements.
Ryan Roden-Corrent 6 年之前
父节点
当前提交
b1c221d5ab
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      doc/classes/MultiMesh.xml

+ 1 - 0
doc/classes/MultiMesh.xml

@@ -65,6 +65,7 @@
 			</argument>
 			<description>
 				Set the color of a specific instance.
+				For the color to take effect, ensure that [member color_format] is non-[code]null[/code] on the [code]MultiMesh[/code] and [member SpatialMaterial.vertex_color_use_as_albedo] is [code]true[/code] on the material.
 			</description>
 		</method>
 		<method name="set_instance_custom_data">