Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
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 |
|