Conflict of layers in a project with an asset

Hello,
I imported an asset that contains layers using the same indexes as the layers in my project. To resolve this, I moved the asset’s layers to unused layer indexes. However, I noticed that the layers in the scenes and prefabs included with the asset were now showing the layers I had created, instead of the original asset layers.

From what I understand, a GameObject’s layer is saved by its index in the file of the scene or prefab, rather than by its name. (In contrast, tags seem to be saved by name.)

The asset is updated periodically, and I want to avoid encountering the same issue each time it gets updated. What is the best way to fix this problem?

Thank you in advance for your help!

If an asset has it’s own layers then they generally expect you to install the asset first and build your project around their asset. It’ll be easier for you to use their layers, rather than modify the asset to use your own, especially if you intend to update the asset later.

2 Likes

If possible just leave the asset’s layer as is and change your project layer, so you don’t have to redo it when updating the asset.
On the other hands, the asset should let user to change that layer in settings and function on what user set, like this:

1 Like