Setting up layer names through CustomEditor

I want to set the names of layers in the “Tags and Layers” project settings panel through a CustomEditor script. Is it possible?

I’m having a hard time finding it in the UnityEditor script reference.

Thanks

You’re not supposed to change layers in editor scripts (since you’re supposed to leave this to Unity itself), but Leslie Young wrote a good explanation of how to do it anyway.

Thanks!!