Assets.Scripts.Utils.Editor.SortingLayerSettingsEditor.GetSortingLayerNames C# (CSharp) Method

GetSortingLayerNames() public method

public GetSortingLayerNames ( ) : string[]
return string[]
        public string[] GetSortingLayerNames()
        {
            Type internalEditorUtilityType = typeof(InternalEditorUtility);
            PropertyInfo sortingLayersProperty = internalEditorUtilityType.GetProperty(
                "sortingLayerNames", BindingFlags.Static | BindingFlags.NonPublic);
            return (string[])sortingLayersProperty.GetValue(null, new object[0]);
        }