class_streamtexture.rst 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the StreamTexture.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_StreamTexture:
  6. StreamTexture
  7. =============
  8. **Inherits:** :ref:`Texture2D<class_Texture2D>` **<** :ref:`Texture<class_Texture>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. A ``.stex`` texture.
  10. Description
  11. -----------
  12. A texture that is loaded from a ``.stex`` file.
  13. Properties
  14. ----------
  15. +-----------------------------+----------------------------------------------------------+--------+
  16. | :ref:`String<class_String>` | :ref:`load_path<class_StreamTexture_property_load_path>` | ``""`` |
  17. +-----------------------------+----------------------------------------------------------+--------+
  18. Methods
  19. -------
  20. +---------------------------------------+-------------------------------------------------------------------------------------------+
  21. | :ref:`Error<enum_@GlobalScope_Error>` | :ref:`load<class_StreamTexture_method_load>` **(** :ref:`String<class_String>` path **)** |
  22. +---------------------------------------+-------------------------------------------------------------------------------------------+
  23. Property Descriptions
  24. ---------------------
  25. .. _class_StreamTexture_property_load_path:
  26. - :ref:`String<class_String>` **load_path**
  27. +-----------+-----------------+
  28. | *Default* | ``""`` |
  29. +-----------+-----------------+
  30. | *Setter* | load(value) |
  31. +-----------+-----------------+
  32. | *Getter* | get_load_path() |
  33. +-----------+-----------------+
  34. The StreamTexture's file path to a ``.stex`` file.
  35. Method Descriptions
  36. -------------------
  37. .. _class_StreamTexture_method_load:
  38. - :ref:`Error<enum_@GlobalScope_Error>` **load** **(** :ref:`String<class_String>` path **)**
  39. Loads the texture from the given path.