SortingLayer.GetLayerValueFromName

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

Parameters

nameThe 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.