Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IDToName(int)

Returns the unique id of the layer. Will return "\<unknown layer\>" if an invalid id is given.
Read time 1 minuteLast updated 4 days ago

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.