mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 14:12:51 +00:00
Update get_image doc to mention that it will return an empty image with invalid texture
(cherry picked from commit d73312d5e9
)
This commit is contained in:
parent
58dd33e3d0
commit
7e33c6bf22
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user