Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

PhysicsLayers.GetLayerName

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static string GetLayerName(int layerOrdinal);

Parameters

Parameter Description
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

string The layer name. If no layer name is present then String.Empty is returned.

Description

Get a layer name for the specified layer ordinal (index).