Up to date
This page is up to date for Godot 4.2
.
If you still find outdated information, please open an issue.
Mesh¶
Inherits: Resource < RefCounted < Object
Inherited By: ArrayMesh, ImmediateMesh, PlaceholderMesh, PrimitiveMesh
A Resource that contains vertex array-based geometry.
Description¶
Mesh is a type of Resource that contains vertex array-based geometry, divided in surfaces. Each surface contains a completely separate array and a material used to draw it. Design wise, a mesh with multiple surfaces is preferred to a single surface, because objects created in 3D editing software commonly contain multiple materials.
Tutorials¶
Properties¶
|
Methods¶
_get_aabb ( ) virtual const |
|
_get_blend_shape_count ( ) virtual const |
|
_get_blend_shape_name ( int index ) virtual const |
|
_get_surface_count ( ) virtual const |
|
void |
_set_blend_shape_name ( int index, StringName name ) virtual |
_surface_get_array_index_len ( int index ) virtual const |
|
_surface_get_array_len ( int index ) virtual const |
|
_surface_get_arrays ( int index ) virtual const |
|
_surface_get_blend_shape_arrays ( int index ) virtual const |
|
_surface_get_format ( int index ) virtual const |
|
_surface_get_lods ( int index ) virtual const |
|
_surface_get_material ( int index ) virtual const |
|
_surface_get_primitive_type ( int index ) virtual const |
|
void |
_surface_set_material ( int index, Material material ) virtual |
create_convex_shape ( bool clean=true, bool simplify=false ) const |
|
create_outline ( float margin ) const |
|
create_placeholder ( ) const |
|
create_trimesh_shape ( ) const |
|
generate_triangle_mesh ( ) const |
|
get_aabb ( ) const |
|
get_faces ( ) const |
|
get_surface_count ( ) const |
|