2022-03-15 13:29:32 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2024-04-26 17:32:25 +02:00
|
|
|
<class name="MeshTexture" inherits="Texture" version="4.4">
|
2022-03-15 13:29:32 +01:00
|
|
|
<brief_description>
|
|
|
|
Simple texture that uses a mesh to draw itself.
|
|
|
|
</brief_description>
|
|
|
|
<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.
|
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
</methods>
|
|
|
|
<members>
|
|
|
|
<member name="base_texture" type="Texture" setter="set_base_texture" getter="get_base_texture">
|
|
|
|
Sets the base texture that the Mesh will use to draw.
|
|
|
|
</member>
|
|
|
|
<member name="image_size" type="Vector2" setter="set_image_size" getter="get_image_size" default="Vector2( 0, 0 )">
|
|
|
|
Sets the size of the image, needed for reference.
|
|
|
|
</member>
|
|
|
|
<member name="mesh" type="Mesh" setter="set_mesh" getter="get_mesh">
|
|
|
|
Sets the mesh used to draw. It must be a mesh using 2D vertices.
|
|
|
|
</member>
|
2023-06-13 15:22:43 +02:00
|
|
|
<member name="resource_local_to_scene" type="bool" setter="set_local_to_scene" getter="is_local_to_scene" overrides="Resource" default="false" />
|
2022-03-15 13:29:32 +01:00
|
|
|
</members>
|
|
|
|
<constants>
|
|
|
|
</constants>
|
|
|
|
</class>
|