文档

Unity Engine

Unity Engine

IDToName(int)

Returns the unique id of the layer. Will return "\<unknown layer\>" if an invalid id is given.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static string IDToName(int id)

Parameters

id

The unique id of the layer.

Returns

Type

Description

stringThe name of the layer with id or "\<unknown layer\>" for invalid id.