Two different assets have different layers on the same layer number. How to fix


So, I have a problem where two assets have different layers on the same layer number.
For example VRIF has Restricted on 8 and Invector FSM AI has Player on 8.
Since Layers are checked by number and not name unlike tags I have a problem where I have to manually add the Layers for one asset at a different place and the manually change all the layers in that asset prefabs which is a a pain.


So, I’ve come up with a solution.

  1. Import VRIF first and then add the FSM AI Layers after some spaces say from 12 and remember the position.

  2. Next import FSM AI into another project and add the layers with duplicate names from 12 again and then replace all the layers in the prefab with the ones that start from 12. For example replace Player Layer 8 with Player Layer 12 and Enemy Layer 9 to Enemy Layer 13 and so on.

  3. Then make a Unity Package with step 2’s project and then import it into step 1’s project.


Is there a way to do step 2 either in built with Unity or with another tool asset on the Asset store. Should be simple replace all references to Layer 8 in all Scenes and Prefabs with Layer 12 etc.

I’m having the same issue, did you find an easier way?