LayerMask.NameToLayer
Scripting > Runtime Classes > LayerMask
LayerMask.NameToLayer

static function NameToLayer (layerName : string) : int

Description

Given a layer name, returns the layer index as defined by either a Builtin or a User Layer in the Tag Manager