Skip to content

Releases: Cammin/LDtkToUnity

3.3.0

15 Mar 06:57

Choose a tag to compare

  • Added support for the Table of contents toc data from the json root
  • Added support for the EntityDefinition.doc as tooltips in the entities section of the importer inspector
  • Added support for the LayerDefinition.doc as a Doc field in the LDtkComponentLayer
  • Point fields will now be represented by a child transform
    • This fixes the issue where points would always be positioned in world space instead of relative to the entity/level
    • The API is unchanged; It will still return a Vector2 from the fields component
  • Entity reference fields now have an additional option to access it's layer, level and world; Breaking change mentioned below
  • Fixed an issue where custom collider shapes for IntGrid value tiles would be scaled improperly if the sprite aspect was not the same as the textures
  • Minor fix to samples

Breaking Changes

  • The Json schema classes are changing their field types from double to float, and long to int. Re-correct your code if necessary
    • This change is to help streamline using the fields so that casts are not required, but also to match the LDtk Json docs
  • Because Point fields are being changed from Vector2s to Transforms, the serialized values are reset. This only impacts you if you set prefab overrides onto the point fields.
  • The API for getting the neighbours from the LDtkComponentLevel has changed; Re-correct your code if necessary
  • The API for getting entity references has changed; Re-correct your code if necessary

3.2.0

05 Feb 22:20

Choose a tag to compare

  • Replaced the Newtonsoft Json library with Utf8Json, which deserializes json assets significantly faster.
    ↳ The importer is now standalone and has no more dependency on an external library.
    ↳ The new library should fully support Unity in any of the supported versions and with IL2CPP. However if there are any direct compatibility issues, feel free to post an issue.
  • Fixed a load failure related to using the internal icons for any tile layer or field instance tiles.
  • Fixed an inconsequential error from appearing after clicking away from an importer with dirty changes and selecting save in the popup

3.1.6

13 Jan 04:47

Choose a tag to compare

  • Added json support for the latest LDtk 1.2.5 update
  • Updated Samples

Note: Currently the unity package also requires newtonsoft json to be installed manually.

3.1.5

08 Jan 10:06

Choose a tag to compare

A new version is available in the package manager. Check out the install wiki page to view how to install.

  • Added support for the FieldDefinition.doc from 1.2.0 as tooltips in LDtkFields
  • Fixed an important bug related to tile scaling for IntGrid collisions

Note: Currently the unity package also requires newtonsoft json to be installed manually.

3.1.4

03 Jan 08:59

Choose a tag to compare

A new version is available in the package manager. Check out the install wiki page to view how to install.

  • Added json support for the latest LDtk 1.2.0 update
    • Updated support for the new embedded tileset dimensions and where it's sourced from
    • Updated samples
  • Performed some optimizations:
    • Setting tiles to tilemaps in batches instead of individually for both IntGrid and tile layers
    • Started caching in an extremely performance-critical location related to getting assets via a name and rect
  • Fixed an issue with scaling tiles in a certain circumstance

As of this update, it's now possible to install via the GitHub releases as a .unitypackage.
Use them instead if it's a better option for you. But otherwise, the package manager is still the recommended installation method.
Note: Currently the unity package also requires newtonsoft json to be installed manually.