It makes sense that you would want to change the default layer mask, but I think I would expect this to be a property of the engine.
Could you explain your reasoning for wanting to have it as a property of the scene? My fear is that it will not be the obvious place to look for other developers.
I think the layer mask is a matter of the scene. This value only makes sense with scenes.
In a multi-scene application, the main menu scene has different requirements than the game scene. I would be happy if I could set this value after creating each scene (even though most of the time I would probably set it to 0x1).
Instead of having one defaultLayerMask do you think there are advantages to have at least a defaultSceneObjectLayerMask (the left operand of &) and a defaultCameraLayerMask (the right operand of &)? However, I have no idea how to name these variables actually.