Making sub layers

So I learned after watching Brackey’s newest video, that you can make sub layers using “Layer/sublayer” in the Tags & Layers tab. I was wondering how to make more than one sub layer?

If you do “Layer/sublayer/sublayer” it makes a sub layer to the sublayer, but I just want multiple layers to go to the main layer.

Note that conceptionally there is nothing like a “sublayer”. Unity uses a 32 bit mask for the layers and therefore you can never have more than 32 layers in total. What you see here is just the fact that the Unity IMGUI system for dropdowns automatically interprets a slash as “sub menu”. So if the text of two or more layer names before the slash is identical, it shows the second part of the name in a submenu. Yes this can be nested as far as you want, but you are always stuck with 32 layers in total. This is just a visual thing in the GUI, not a feature at runtime. If you create two layers named

"Layer/sublayer1"
"Layer/sublayer2"

You just named 2 of the 32 layers that way. The name of those two layers is just what you typed, the whole string. There is no seperate layer called “Layer” and there isn’t a layer called “sublayer1”. There are only two layers with the names "Layer/sublayer1" and "Layer/sublayer2".

Using a slash in the layer names actually just groups those layers visually together in the editor which makes it easier to select them if you have many layers. So it’s just a tool to tidy up your list of 32 layers in the editor.