LOGICATLAS // GODOT 4.x INTEGRATION MANUAL
Native Import Plugin & Resource System, (c) Andras Gregori 2025
Version: 1.0.0, Compatibility: Godot 4.0, 4.1, 4.2+
1. OVERVIEW
This Integration Kit bridges LogicAtlas (Desktop) and Godot Engine.
By default, Godot treats .json files as simple text. This plugin intercepts LogicAtlas JSON exports and converts them into Native Resources.
Automatic Slicing: Creates AtlasTexture sub-resources for every sprite in your sheet.
Embedded Logic: Bakes Pivot Points and Offsets directly into the texture metadata.
Dependency Tracking: If you edit the PNG in Photoshop/Aseprite, Godot automatically rebuilds the JSON resource without breaking your scene.
2. INSTALLATION
2.1 File Structure
Create the following folder structure in the root of your Godot project (res://).
res://
└── addons/
└── logic_atlas/
├── plugin.cfg
├── plugin.gd
├── logic_atlas_importer.gd
└── logic_atlas_entry.gd
2.2 The Scripts
Copy the following code into the respective files created above.
File 1: plugin.cfg
File 2: logic_atlas_entry.gd
This defines the data container.
File 3: logic_atlas_importer.gd
This is the logic that runs when you drop a file involved.
File 4: plugin.gd
Registers the importer.
3. ACTIVATION
Open your Godot Project.
Go to Project > Project Settings...
Click the Plugins tab.
Find "LogicAtlas System" and verify the Enable checkbox is checked.
Restart the Editor significantly reduces cache weirdness with new Import plugins.
4. WORKFLOW GUIDE
Step A: Exporting
Open LogicAtlas (Desktop App).
Load sprites, pack them, set your pivots visually.
Click "Export". Ensure you save the .json and .png in the same folder inside your Godot project.
Step B: Automatic Import
Switch to Godot.
Godot will detect the new .json file.
The Plugin acts immediately. The JSON file is no longer treated as text—it is now a Resource.
Step C: Using in Scenes
You have two ways to use the data.
Method 1: The Inspector
Double-click the .json file in the FileSystem.
Look at the Inspector. You will see a Textures dictionary.
Drag any internal resource (e.g., Hero_Idle, Tree_01) directly into a Sprite2D Texture slot.
Method 2: The "LogicSprite" Helper (Recommended)
To make use of the auto-pivoting, create a helper script named LogicSprite.gd:
Now, when you drag a texture from the Atlas into this node, the Offset property automatically snaps to the values you defined in the LogicAtlas Desktop app.
5. RE-IMPORTING & ITERATION
If you change your mind about where the "feet" of your character are:
Open LogicAtlas Desktop.
Open your project, move the pivot.
Re-export (Overwrite JSON).
Tab back to Godot.
Godot detects the file change, re-runs the importer, updates the offsets in the Resource.
Your game character updates position instantly.
6. TROUBLESHOOTING
Q: The JSON is still importing as a TextFile. Make sure the plugin is Enabled. If you added the files while Godot was open, select the JSON file, go to the Import dock (top left), select "LogicAtlas Importer" from the dropdown, and click Reimport.
Q: My sprites look blurry. LogicAtlas creates AtlasTexture resources. Ensure your source .png Import Settings (in Godot) are set to Texture2D > Filter: Nearest (for pixel art). AtlasTexture inherits the filter setting of the parent PNG.
Q: I moved the PNG to a different folder than the JSON. Don't do that. The JSON references the PNG by relative filename. Keep them together.
7. ABOUT
This Godot 4.x integration manual is part of LogicAtlas, a standalone tool by Andras Gregori.
For support and feature requests, please write to: andras@gregorigin.com.
Last updated
