diff options
| author | jsjtxietian <jsjtxietian@outlook.com> | 2024-01-02 11:31:38 +0800 |
|---|---|---|
| committer | jsjtxietian <jsjtxietian@outlook.com> | 2024-01-02 11:31:38 +0800 |
| commit | d73312d5e9756e77f13653013e1d00211cb555ae (patch) | |
| tree | a500101547dd8ed40176948749169f1f03bec781 | |
| parent | 13a0d6e9b253654f5cc2a44f3d0b3cae10440443 (diff) | |
| download | redot-engine-d73312d5e9756e77f13653013e1d00211cb555ae.tar.gz | |
Update get_image doc to mention that it will return an empty image with invalid texture
| -rw-r--r-- | doc/classes/Texture2D.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/Texture2D.xml b/doc/classes/Texture2D.xml index 087f3a70f8..7254a92e36 100644 --- a/doc/classes/Texture2D.xml +++ b/doc/classes/Texture2D.xml @@ -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> |
