Skip to content
Download
API reference

MeshTexture

Inherits: Texture2D < Texture < Resource < Shared < Object

Simple texture that uses a mesh to draw itself.

Simple texture that uses a mesh to draw itself. It’s limited because flags can’t be changed and region drawing is not supported.

TypeNameDefault
Texture2Dbase_texture
Vector2image_sizeVector2(0, 0)
Meshmesh
boolresource_local_to_scenefalse

Texture2D base_texture

Setter/getter: set_base_texture(), get_base_texture()

Sets the base texture that the Mesh will use to draw.

Vector2 image_size = Vector2(0, 0)

Setter/getter: set_image_size(), get_image_size()

Sets the size of the image, needed for reference.

Mesh mesh

Setter/getter: set_mesh(), get_mesh()

Sets the mesh used to draw. It must be a mesh using 2D vertices.

bool resource_local_to_scene = false

Setter/getter: set_local_to_scene(), is_local_to_scene()

No description yet.