From c4a59b26f2873af42e517c94445769e39271d272 Mon Sep 17 00:00:00 2001 From: "Yevhen Babiichuk (DustDFG)" Date: Tue, 20 Feb 2024 14:37:44 +0200 Subject: [PATCH] Clarify that `is_pixel_opaque` function gets position in local coordinates Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> --- doc/classes/Sprite2D.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/Sprite2D.xml b/doc/classes/Sprite2D.xml index f8622d8f386..816db41afd0 100644 --- a/doc/classes/Sprite2D.xml +++ b/doc/classes/Sprite2D.xml @@ -44,7 +44,7 @@ - Returns [code]true[/code], if the pixel at the given position is opaque and [code]false[/code] in other case. + Returns [code]true[/code], if the pixel at the given position is opaque and [code]false[/code] in other case. The position is in local coordinates. [b]Note:[/b] It also returns [code]false[/code], if the sprite's texture is [code]null[/code] or if the given position is invalid.