Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetLayerName(int)

Get a layer name for the specified layer ordinal (index).
Read time 1 minuteLast updated 11 days ago

Definition

public static string GetLayerName(int layerOrdinal)

Parameters

layerOrdinal

The layer ordinal (index). When using the full layers this should be within the range [0, 63] however if not then the range must be [0, 31].

Returns

Type

Description

stringThe layer name. If no layer name is present then Empty is returned.