Hi Jean,
We've found the cause of this issue. But we still have no idea how to fix it. So we still need your help. The followings are what we found:
1) The issue is caused by the 'DoPreprocessPrefabFSMs' method.
2) We have a global light applying to the sorting layer - Hero.
3) We put the player whose sorting layer is Hero in the scene already.
4) When we try to build and run, it seems that playMaker calls the 'DoPreprocessPrefabFSMs' method to generate all the game objects with playmaker applied to them in the scene to check.
5) So therefore, there are 2 players in the scene at the moment, which means there're 2 global lights applying to the same sorting layer with the same blend style.
And then, unity reports this error.
So we're asking if there's a way to fix this problem for our project? It's a bit too complicated to remove the player game object from the scene before game run. We have too many things injected by the player.
Hope there's a certain way. Please let us know. Thank you )