:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/3.6/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/3.6/modules/gltf/doc_classes/GLTFTexture.xml. .. _class_GLTFTexture: GLTFTexture =========== **Inherits:** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` .. rst-class:: classref-introduction-group Description ----------- **Note:** This class is only compiled in editor builds. Run-time glTF loading and saving is *not* available in exported projects. References to **GLTFTexture** within a script will cause an error in an exported project. .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +-----------------------+--------------------------------------------------------+--------+ | :ref:`int` | :ref:`sampler` | ``-1`` | +-----------------------+--------------------------------------------------------+--------+ | :ref:`int` | :ref:`src_image` | ``0`` | +-----------------------+--------------------------------------------------------+--------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_GLTFTexture_property_sampler: .. rst-class:: classref-property :ref:`int` **sampler** = ``-1`` .. rst-class:: classref-property-setget - void **set_sampler** **(** :ref:`int` value **)** - :ref:`int` **get_sampler** **(** **)** ID of the texture sampler to use when sampling the image. If -1, then the default texture sampler is used (linear filtering, and repeat wrapping in both axes). .. rst-class:: classref-item-separator ---- .. _class_GLTFTexture_property_src_image: .. rst-class:: classref-property :ref:`int` **src_image** = ``0`` .. rst-class:: classref-property-setget - void **set_src_image** **(** :ref:`int` value **)** - :ref:`int` **get_src_image** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`