public void OnEnable() { _renderer = (target as SortingLayerSettings).GetComponent<Renderer>(); _sortingLayerNames = GetSortingLayerNames(); }