Version: 2021.3
언어: 한국어

설명

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)); } }