瀏覽代碼

docs: Caveats of NavigationMesh.create_from_mesh

Adds a note explaining the requirements of the given [Mesh] when converting a [Mesh] to a [NavigationMesh] using `NavigationMesh.create_from_mesh`.
Martin Norling 3 年之前
父節點
當前提交
cab107d063
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      doc/classes/NavigationMesh.xml

+ 1 - 0
doc/classes/NavigationMesh.xml

@@ -28,6 +28,7 @@
 			<argument index="0" name="mesh" type="Mesh" />
 			<description>
 				Initializes the navigation mesh by setting the vertices and indices according to a [Mesh].
+				[b]Note:[/b] The given [code]mesh[/code] must be of type [constant Mesh.PRIMITIVE_TRIANGLES] and have an index array.
 			</description>
 		</method>
 		<method name="get_collision_mask_value" qualifiers="const">