From 1518d813beaa918abe9b60eee8b44e75ba150efb Mon Sep 17 00:00:00 2001 From: Micky Date: Tue, 27 Sep 2022 18:53:14 +0200 Subject: Support nesting AtlasTextures inside other AtlasTextures Connects AtlasTexture to its `atlas`'s "changed" signal, allowing it to detect property changes to `atlas` and update accordingly, when the project is running and in the editor, as well. --- doc/classes/AtlasTexture.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/classes/AtlasTexture.xml') diff --git a/doc/classes/AtlasTexture.xml b/doc/classes/AtlasTexture.xml index 4794c8ef14..809d983a9d 100644 --- a/doc/classes/AtlasTexture.xml +++ b/doc/classes/AtlasTexture.xml @@ -6,13 +6,13 @@ [Texture2D] resource that draws only part of its [member atlas] texture, as defined by the [member region]. An additional [member margin] can also be set, which is useful for small adjustments. Multiple [AtlasTexture] resources can be cropped from the same [member atlas]. Packing many smaller textures into a singular large texture helps to optimize video memory costs and render calls. - [b]Note:[/b] [AtlasTexture] cannot be used in an [AnimatedTexture], and does not work properly if used inside of other [AtlasTexture] resources. + [b]Note:[/b] [AtlasTexture] cannot be used in an [AnimatedTexture], and may not tile properly in nodes such as [TextureRect], when inside other [AtlasTexture] resources. - The texture that contains the atlas. Can be any type inheriting from [Texture2D]. Nesting [AtlasTexture] resources is not supported. + The texture that contains the atlas. Can be any type inheriting from [Texture2D], including another [AtlasTexture]. If [code]true[/code], the area outside of the [member region] is clipped to avoid bleeding of the surrounding texture pixels. -- cgit v1.2.3