Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Bug Sorting Layers not showing light 2D

Discussion in '2D' started by JonahSagers, Apr 6, 2022.

  1. JonahSagers

    JonahSagers

    Joined:
    Oct 5, 2021
    Posts:
    5
    Recently I've been making a project that leans heavily on lighting. I want to make a light interact with only certain layers, and I'd rather solve it in the editor than with scripting.

    I assume the "target sorting layers" tab is the solution, but it doesn't show any of my layers.

    upload_2022-4-6_15-4-44.png

    upload_2022-4-6_15-5-4.png

    I have a few user created layers which work fine otherwise.
     

    Attached Files:

  2. Unrighteouss

    Unrighteouss

    Joined:
    Apr 24, 2018
    Posts:
    599
    Hey,

    Make sure you've actually created Sorting Layers, and not some other kind of layer:

    Sorting_Layers.PNG

    It works for me:

    Global_Light.PNG

    Tested in:
    Unity 2020.3.32f1
    Universal RP 10.8.1
     
    JonahSagers likes this.
  3. JonahSagers

    JonahSagers

    Joined:
    Oct 5, 2021
    Posts:
    5
    Feeling very stupid now. I had layers, but not sorting layers
    Thank you for the help!
     
    Unrighteouss likes this.