Closed PinoEire closed 5 years ago
I believe LayerManager.cs is a public script. It controls layers (manually from Editor). More details would be good.
Actually the basic idea is that only Editor scene code is hidden in DLL. Most of character related code is public.
I see, indeed setting manually the sorting layer on the prefab root and assigning the head manually to the four sides does work. I suppose not assigning all when the prefab is created is a bug?
You should call LayerManager after creating character instances (if needed).
It seems that the DLL forces a specific sorting layer. This breaks the games because it's using a layer Id instead of a layer name. This should look for the sorting layer "Player" and use that, otherwise, it should let the user set the preferred sorting layer.