Skip to content

Commit

Permalink
no collision now for the default tile. configured samples too
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammin committed Jul 19, 2023
1 parent 256d05b commit 0f9e134
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 24 deletions.
4 changes: 3 additions & 1 deletion Assets/LDtkUnity/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ Major update that introduces the separate tileset file!
- Hid the `Export` Button in the importer inspector until the feature is re-supported

### Breaking Changes
- Changed the default tile for an empty field back to `None` collision. Make any fixes to reflect this change.
- Because there are now two options for defining collision, turning off grid collision by default became more sensible.
- Removed the SpriteAtlas field from the project importer
- Instead, you can directly add a tileset file into a sprite atlas to pack it's sprites, much like the normal unity workflow
- Because sprites and tiles are now generated from each respective tileset file, the references to these assets will be lost
- Because sprites and tiles are now generated from each respective tileset file, the references to these assets will be lost if they were referenced prior

# 3.3.3
###### May 3, 2023
Expand Down
2 changes: 1 addition & 1 deletion Assets/LDtkUnity/Resources/LDtkDefaultTile.asset
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 31471dfd53d5490a956a89a1b2d11ad9, type: 3}
m_Name: LDtkDefaultTile
m_EditorClassIdentifier:
_colliderType: 2
_colliderType: 0
_customPhysicsSprite: {fileID: 21300000, guid: a0ec3126b00c562449ef4e99a4da11fc, type: 3}
_tilemapTag: Untagged
_tilemapLayerMask: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,14 @@ private T GetIndexedItem<T>(string assetName, Dictionary<string, T> indexedDicti

if (indexedDictionary == null)
{
LDtkDebug.LogError($"GetItem The instanced dictionary was null when getting artifacts for {typeof(T).Name} \"{assetName}\"");
LDtkDebug.LogError($"GetItem The instanced dictionary was null when getting artifacts for {typeof(T).Name} from \"{assetName}\"");
Profiler.EndSample();
return null;
}

if (indexedDictionary.Count == 0)
{
LDtkDebug.LogError($"GetItem The instanced dictionary was empty! No values of {typeof(T).Name}");
LDtkDebug.LogError($"GetItem The instanced dictionary was empty! No values of {typeof(T).Name} from \"{assetName}\"");
Profiler.EndSample();
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ MonoBehaviour:
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 31471dfd53d5490a956a89a1b2d11ad9, type: 3}
m_Name: LDtkExampleTile_Empty
m_Name: LDtkExampleTile_Grid
m_EditorClassIdentifier:
_colliderType: 0
_customPhysicsSprite: {fileID: 0}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Assets/Tests/Misc/OtherTechTests/LevelsVania.ldtk.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Assets/Tests/Misc/OtherTechTests/TestPivot.ldtk.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0f9e134

Please sign in to comment.