hippogamesunity / HeroEditor4DHub

10 stars 0 forks source link

Hard coded sorting layer breaking compatibility #2

Closed PinoEire closed 5 years ago

PinoEire commented 5 years ago

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.

hippogamesunity commented 5 years ago

I believe LayerManager.cs is a public script. It controls layers (manually from Editor). More details would be good.

hippogamesunity commented 5 years ago

Actually the basic idea is that only Editor scene code is hidden in DLL. Most of character related code is public.

PinoEire commented 5 years ago

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?

hippogamesunity commented 5 years ago

You should call LayerManager after creating character instances (if needed).