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 Why am I getting UnassignedReferenceException?

Discussion in 'Editor & General Support' started by jleven22, Oct 1, 2023.

  1. jleven22

    jleven22

    Joined:
    Mar 26, 2019
    Posts:
    396
    Why:



    Nothing changes between editing and play mode as far as scripting. It's there, then when the game starts, it's still there. Still getting the error.
     
  2. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    9,900
    You possibly have a duplicate of that
    HubLevelManager
    in your scene and you assigned something to only one of those?
     
    SisusCo likes this.
  3. jleven22

    jleven22

    Joined:
    Mar 26, 2019
    Posts:
    396
    Nailed it. Dumb mistake, was reorganizing some prefabs. Thanks!
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,563
    SisusCo likes this.