API reference
MeshTexture
Inherits: Texture2D < Texture < Resource < Shared < Object
Simple texture that uses a mesh to draw itself.
Description
Section titled “Description”Simple texture that uses a mesh to draw itself. It’s limited because flags can’t be changed and region drawing is not supported.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| Texture2D | base_texture | |
| Vector2 | image_size | Vector2(0, 0) |
| Mesh | mesh | |
| bool | resource_local_to_scene | false |
Property descriptions
Section titled “Property descriptions”base_texture
Section titled “base_texture”Texture2D base_texture
Setter/getter: set_base_texture(), get_base_texture()
Sets the base texture that the Mesh will use to draw.
image_size
Section titled “image_size”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.
resource_local_to_scene
Section titled “resource_local_to_scene”bool resource_local_to_scene = false
Setter/getter: set_local_to_scene(), is_local_to_scene()
No description yet.