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. Dismiss Notice

Question Invalid Layer Index '1' with NO other info

Discussion in 'Editor & General Support' started by MrLucid72, May 2, 2020.

  1. MrLucid72

    MrLucid72

    Joined:
    Jan 12, 2016
    Posts:
    902
    Invalid Layer Index '1'
    (Filename: Line: 915)

    That's all I get for countless error spam:

    Line 915 of what file? There's so little info - how can I possibly find this err? O__O
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,845
    Could you share the editor log file?
     
  3. Riderfan

    Riderfan

    Joined:
    Jan 10, 2013
    Posts:
    514
    @karl_jones

    I know this is a old post, but I'm running into the same issue. I'm getting a warning/error about having an invalid layer index, but there's nothing in the logs to tell me where in my code I'm setting a wrong layer? The log just tells me what line in the Unity assembly is posting the error to the log, not where the error is coming from.
     
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,845
    You could try changing the Stack track logging to show unmanaged code: https://docs.unity3d.com/Manual/Console.html
     
  5. Riderfan

    Riderfan

    Joined:
    Jan 10, 2013
    Posts:
    514
    Excellent... thank you!
    I didn't realize that was a thing you could do...
     
  6. PanShou

    PanShou

    Joined:
    Mar 29, 2018
    Posts:
    1
    How to show unmanage code in 2022?