LayerMask-GetMask - Unity スクリプトリファレンス

Builtin か Tags and Layers manager の User Layer で定義されるレイヤー名の設定が与えられ、それらのすべての同等のレイヤーマスクを返します。