Unity3D

LayerMask.LayerToName

일등하이 2013. 1. 8. 12:24
반응형

http://www.devkorea.co.kr/reference/Documentation/ScriptReference/LayerMask.LayerToName.html


static function LayerToName (layer : int) : string

Description

레이어 번호를 감안할 때,Tag Manager내에 있거나 내장 또는 사용자 계층에 정의된 레이어의 이름을 반환한다.


using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
Debug.Log(LayerMask.LayerToName(1));
}
}

반응형