https://developer.playcanvas.com/en/api/pc.Layer.html
Doesn’t seem to have any effect when using it in PlayCanvas editor.
new pc.LayerComposition();
I get error: TypeError: pc.LayerComposition is not a constructor
The typehinting does show it as a valid reference in the scripting editor!
Why?
I want to hook some onPreCull on the main world layer to run my own culling changes based off camera.frustum
, prior to PlayCanvas’s default camera frustum culling operation. But no luck. Seems like all the layer functions aren’t working.