Skip to content

Commit 6186306

Browse files
committed
Chunks should inherit layer field from layer object.
1 parent 9667af4 commit 6186306

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

SuperTiled2Unity/Assets/SuperTiled2Unity/Scripts/Editor/Importers/TmxAssetImporter.TileLayer.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ private void ProcessLayerData(GameObject goLayer, XElement xData)
9191
// Each chunk is a separate game object on the super layer
9292
GameObject goChunk = new GameObject(string.Format("Chunk ({0},{1})", chunk.X, chunk.Y));
9393
goLayer.AddChildWithUniqueName(goChunk);
94+
goChunk.layer = goLayer.layer;
9495

9596
ProcessLayerDataChunk(goChunk, chunk);
9697
}

0 commit comments

Comments
 (0)