Update get_image doc to mention that it will return an empty image with invalid texture

This commit is contained in:
jsjtxietian 2024-01-02 11:31:38 +08:00
parent 13a0d6e9b2
commit d73312d5e9
1 changed files with 1 additions and 0 deletions

View File

@ -123,6 +123,7 @@
<return type="Image" /> <return type="Image" />
<description> <description>
Returns an [Image] that is a copy of data from this [Texture2D] (a new [Image] is created each time). [Image]s can be accessed and manipulated directly. Returns an [Image] that is a copy of data from this [Texture2D] (a new [Image] is created each time). [Image]s can be accessed and manipulated directly.
[b]Note:[/b] This will return [code]null[/code] if this [Texture2D] is invalid.
[b]Note:[/b] This will fetch the texture data from the GPU, which might cause performance problems when overused. [b]Note:[/b] This will fetch the texture data from the GPU, which might cause performance problems when overused.
</description> </description>
</method> </method>