Skip to content

Commit

Permalink
Add import options to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
2shady4u committed Sep 9, 2024
1 parent 9e8b7d6 commit 35bcff6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ Krita | Godot
:-------------------------:|:-------------------------:
![Krita source file](readme/krita_source_file.png?raw=true "Krita source file") | ![Imported result in Godot](readme/godot_imported_scene.png?raw=true "Imported result in Godot")

Following import options are available from the import tab:

| name | default | description |
| ----------------------- | ------- | -------------------------------------------------------------------------------------------- |
| ignore_invisible_layers | false | Do not import layers that are set to invisible in Krita. |
| texture_filter | CanvasItem.TEXTURE_FILTER_PARENT_NODE | Texture filter that is used for all created Sprite2D nodes. |
| crop_to_visible | true | Crop all textures to the visible portion of their respective image. |
| center_sprites | true | Set all textures to centered by setting the centered property in the created Sprite2D nodes. |
| import_as_files | false | *(false)* Include the raw layer data directly into the created Sprite2D nodes.<br>*(true)* Save all textures to PNG files and reference those files in the created Sprite2D nodes. |

In cases where more advanced importing functionality is wanted or required, the plugin exposes several variables and methods that hopefully allow enough freedom to easily extend the importer.

## <a name="variables">Variables</a>
Expand Down

0 comments on commit 35bcff6

Please sign in to comment.