Click or drag to resize

PrimitiveMeshGetMeshArrays Method

Returns mesh arrays used to constitute surface of Mesh. The result can be passed to AddSurfaceFromArrays(MeshPrimitiveType, Array, Array, UInt32) to create a new surface. For example:

var c := CylinderMesh.new()
var arr_mesh := ArrayMesh.new()
arr_mesh.add_surface_from_arrays(Mesh.PRIMITIVE_TRIANGLES, c.get_mesh_arrays())

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Array GetMeshArrays()

Return Value

Type: Array

[Missing <returns> documentation for "M:Godot.PrimitiveMesh.GetMeshArrays"]

See Also