Update 5.0.0


5.0.0

May 5, 2024

Additions

  • Added support for animated tiles in the import pipeline! Learn the setup here

  • Added new component LDtkComponentLayerParallax: For all layers to mimic the parallax motions seen in LDtk

  • Added new component LDtkComponentLayerIntGridValues: A component with various functions to help with getting IntGrid value data

  • Added new component LDtkComponentTilesetTiles: A component with various functions to help with tileset tiles

  • Added various new components and ScriptableObjects, eliminating any requirement to deserialize json data. Check the docs here for more info

    • Total new ScriptableObjects
      • LDtkDefinitionObjectAutoLayerRule
      • LDtkDefinitionObjectAutoLayerRuleGroup
      • LDtkDefinitionObjectEntity
      • LDtkDefinitionObjectEnum
      • LDtkDefinitionObjectField
      • LDtkDefinitionObjectLayer
      • LDtkDefinitionObjectTileset
    • Updated existing components with new json data:
      • LDtkComponentProject
      • LDtkComponentWorld
      • LDtkComponentLevel
      • LDtkComponentLayer
      • LDtkComponentEntity (new)
  • LDtkComponentWorld: Added a new convenience button to the world component inspector to spawn all the world’s separate levels

    • Supports multi-selection & undo
    • Project hierarchies with separate levels enabled will now build the world GameObjects in the project hierarchy to allow this feature
  • Added three new “reimport all” buttons into project settings to optionally only reimport all .ldtk, .ldtkl, or .ldtkt files

  • LDtkPostprocessor: Added new AssetImportContext field to work with the ScriptedImporter, like to access the asset path

  • LDtkTilesetTile: Added new helper function GetEnumTagValues to parse the tile’s string fields into enum data

  • LDtkTilesetTile: Added new TileId int field to LDtkTilesetTile

  • LDtkReferenceToAnEntityInstance: Added public fields for getting IID

  • LDtkIid: Added implicit operator to string

Changes

  • Optimization: Built tilemaps will now CompressBounds to potentially improve on memory/processing
  • Optimization: Greatly improved the operation speed of clicking the “Reimport All” button in Project Settings
  • Updated: New icon for AutoLayer-related content
  • Updated: Samples

Fixes

  • Compile Error: Fixed a compile error encountered in Unity 6
  • Import Fail: Fixed a tileset file import failure if a tileset texture is not set in LDtk
  • Import Fail: Fixed a problem where the export app would not work on macOS easily
    • This issue is not retroactively fixed, so for any Mac users currently facing this issue, add a $1 to the end of the file’s contents in Library/LDtkTilesetExporter/ExportTilesetDefinitionMac.sh
  • Expectancy: Fixed the project importer’s composite collider option not showing in the inspector if there’s no IntGrid layer but if there is a Tile/Auto layer
  • Expectancy: Fixed issue when reimporting all in project settings, where some assets that failed to import would not reimport whatsoever
  • Expectancy: Added new error log if a tileset file’s texture is not a TextureType of Sprite
  • Expectancy: Removed an unnecessary error log if a layer’s tileset definition was not set
  • Expectancy: All checks for a backup file will now happen before checking json version to avoid unnecessary errors

Breaking Changes

  • Deprecated some values in the imported components. They are instead accessed in their definition object.
    • All deprecated values will still work the same, except for LDtkComponentProject.FromJson which now return null
  • Planning to remove LDtkEntityDrawerComponent in the future; the new LDtkComponentEntity will be responsible instead

Files

LDtkUnity-5.0.0.unitypackage 2.8 MB
May 06, 2024

Get LDtk to Unity

Leave a comment

Log in with itch.io to leave a comment.