Skip to content

Commit

Permalink
root ldtkiid
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammin committed Oct 9, 2023
1 parent 5790243 commit 0d8671e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Assets/LDtkUnity/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- Fixed a bug where reordering IntGrid value definitions would use the wrong tile references, and in some cases, cause an exception
- Changed the icons for the imported Project/Level/Tileset to match with the icons from LDtk 1.5

- Added a LDtkIid for the LDtkJson root object from LDtk [1.2.0](https://ldtk.io/json/#changes;1.2.0)
- Added support for individual tile alpha from LDtk [1.3.1](https://ldtk.io/json/#changes;1.3.1)
- Added safety-check if a tileset definition's `relPath` was null or empty
- Updated samples to 1.4.1
Expand Down
3 changes: 3 additions & 0 deletions Assets/LDtkUnity/Editor/Builders/LDtkBuilderProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ private void CreateRootObject()

LDtkComponentProject component = RootObject.AddComponent<LDtkComponentProject>();
component.SetJson(_project.JsonFile);

LDtkIid iid = RootObject.AddComponent<LDtkIid>();
iid.SetIid(_json);
}
}
}
2 changes: 1 addition & 1 deletion Assets/LDtkUnity/Runtime/Data/Extensions/LdtkJson.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace LDtkUnity
{
public partial class LdtkJson
public partial class LdtkJson : ILDtkIid
{
/// <value>
/// Project background color
Expand Down

0 comments on commit 0d8671e

Please sign in to comment.