Version: 2017.2

SortingLayer.GetLayerValueFromName

Switch to Manual
public static int GetLayerValueFromName (string name);

Parameters

name The unique value of the sorting layer as returned by any renderer's sortingLayerID property.

Returns

int The final sorting value of the layer relative to other layers.

Description

Returns the final sorting layer value. See Also: GetLayerValueFromID.