From ab873a661923404dc20ca3f957dbf912e62d0a22 Mon Sep 17 00:00:00 2001 From: Torsten Date: Thu, 29 May 2025 18:35:09 +0200 Subject: [PATCH] ... --- .../Create TextureRect from Texture Atlas Tile.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 MyObsidianVault/Knowledgebase/Godot/2D/Texture Atlas generation/Create TextureRect from Texture Atlas Tile.md diff --git a/MyObsidianVault/Knowledgebase/Godot/2D/Texture Atlas generation/Create TextureRect from Texture Atlas Tile.md b/MyObsidianVault/Knowledgebase/Godot/2D/Texture Atlas generation/Create TextureRect from Texture Atlas Tile.md new file mode 100644 index 0000000..cd6d26e --- /dev/null +++ b/MyObsidianVault/Knowledgebase/Godot/2D/Texture Atlas generation/Create TextureRect from Texture Atlas Tile.md @@ -0,0 +1,9 @@ +Untested snippet from Perplexity +```python +var atlas = AtlasTexture.new() +atlas.atlas = load("res://path_to_your_atlas.png") +atlas.region = Rect2(128, 64, 64, 64) # Example region for a 64x64 tile +$TextureRect.texture = atlas + +``` +