Skip to content

Conversation

fmoo
Copy link
Contributor

@fmoo fmoo commented Nov 4, 2020

Fixes #160. Verified with @Snowdrama on the Tiled discord in #general.

@fmoo
Copy link
Contributor Author

fmoo commented Nov 4, 2020

More details:

When using an "infinite" map, the map is split into "Chunk" objects, and while there is some logic to copy the layer from the parent via AddSuperCustomProperties(), the chunk subobjects do not get added through this path, so when the actual collider children are copied on, they inherit the default layer.

This diff fixes this buy explicitly copying the .layer from the Tiled layer gameObject onto the chunk gameObject, before creating the collision layers, so that things get inherited correctly.

@fmoo fmoo force-pushed the layer-chunk-fix branch from 7191e03 to e9b8e60 Compare March 4, 2022 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] When the map is set to infinite, the layer custom property is not set to children.

1 participant