LayerMask.LayerMask

Description

Implicitly converts an integer to a LayerMask.

using UnityEngine;

public class Example : MonoBehaviour { void Start() { // Converts an integer to a layer and prints the layer name.

int i = 0; LayerMask layerMask; layerMask = i; Debug.Log(LayerMask.LayerToName(layerMask)); } }

Did you find this page useful? Please give it a rating: