Fix layer bugs with element components
Fix layer bugs with element components

playcanvas/engine,sereepap2029/playcanvas,aidinabedi/playcanvas-engine,MicroWorldwide/PlayCanvas,aidinabedi/playcanvas-engine,sereepap2029/playcanvas,playcanvas/engine,MicroWorldwide/PlayCanvas,sereepap2029/playcanvas