기술 자료

Unity Engine

Unity Engine

NameToID(string)

Returns the id given the name. Will return 0 if an invalid name was given.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static int NameToID(string name)

Parameters

name

The name of the layer.

Returns

Type

Description

intReturns the unique id of the layer with name.