From d73312d5e9756e77f13653013e1d00211cb555ae Mon Sep 17 00:00:00 2001 From: jsjtxietian Date: Tue, 2 Jan 2024 11:31:38 +0800 Subject: [PATCH] Update get_image doc to mention that it will return an empty image with invalid texture --- doc/classes/Texture2D.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/Texture2D.xml b/doc/classes/Texture2D.xml index 087f3a70f8c..7254a92e36d 100644 --- a/doc/classes/Texture2D.xml +++ b/doc/classes/Texture2D.xml @@ -123,6 +123,7 @@ 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.