How to call ignore raycast layer

How do you send an object to the ignore raycast layer?
I know you use gameObject.layer=

But what’s the name of the layer that unity has created by default?

You can find a list of layers in your project’s Tag Manager.

It’s very easy to set a GameObject’s layer in the inspector, too, if you don’t actually need dynamic layer switching.

IgnoreRaycast layer is int 4 if someone is still reading)