From 0371d4ff4053c935a076951c0029a5ad5c4994a5 Mon Sep 17 00:00:00 2001 From: Vojtech Krajnansky Date: Wed, 5 Feb 2025 21:35:17 +0100 Subject: [PATCH] Add info about units used in AtlasTexture's region --- doc/classes/AtlasTexture.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/classes/AtlasTexture.xml b/doc/classes/AtlasTexture.xml index 287f2cc19ab..9b59d71b5dd 100644 --- a/doc/classes/AtlasTexture.xml +++ b/doc/classes/AtlasTexture.xml @@ -18,10 +18,10 @@ If [code]true[/code], the area outside of the [member region] is clipped to avoid bleeding of the surrounding texture pixels. - The margin around the [member region]. Useful for small adjustments. If the [member Rect2.size] of this property ("w" and "h" in the editor) is set, the drawn texture is resized to fit within the margin. + The margin around the [member region] in pixel coordinates relative to the texture at its original scale. Useful for small adjustments. If the [member Rect2.size] of this property ("w" and "h" in the editor) is set, the drawn texture is resized to fit within the margin. - The region used to draw the [member atlas]. If either dimension of the region's size is [code]0[/code], the value from [member atlas] size will be used for that axis instead. + The region used to draw the [member atlas] in pixel coordinates relative to the texture at its original scale. A pixel coordinate at [code](0, 0)[/code] maps to the top-left corner of the texture. If either dimension of the region's size is [code]0[/code], the value from [member atlas] size will be used for that axis instead.