Skip to content

Commit

Permalink
Update get_image doc to mention that it will return an empty image wi…
Browse files Browse the repository at this point in the history
…th invalid texture
  • Loading branch information
jsjtxietian committed Jan 2, 2024
1 parent 13a0d6e commit d73312d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/classes/Texture2D.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
<return type="Image" />
<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.
[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.
</description>
</method>
Expand Down

0 comments on commit d73312d

Please sign in to comment.