Skip to content

Commit bf953f1

Browse files
committed
fix: Fixed issue where a level component's iid component reference was assigned a previous layer
1 parent aac64a5 commit bf953f1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎Assets/LDtkUnity/Editor/Builders/LDtkBuilderLevel.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ private void CreateLevelComponent()
244244

245245
private void PopulateLevelComponent()
246246
{
247+
_iidComponent = _levelGameObject.GetComponent<LDtkIid>();
247248
_levelComponent.OnImport(_level, _lvlFile, _layerComponents, _fieldsComponent, _worldComponent, _iidComponent, _project.PixelsPerUnit);
248249
}
249250

0 commit comments

Comments
 (0)