LayerExtensions.ToMask(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Transform layer id to LayerMask
public:
static UnityEngine::LayerMask ToMask(int layerId);
public static UnityEngine.LayerMask ToMask (int layerId);
static member ToMask : int -> UnityEngine.LayerMask
Public Function ToMask (layerId As Integer) As LayerMask
Parameters
- layerId
- Int32
Returns
UnityEngine.LayerMask