Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Feedback UnassignedReferenceException: Add game object name to the error

Discussion in 'Editor & General Support' started by SiJiL82, Jun 10, 2021.

  1. SiJiL82

    SiJiL82

    Joined:
    May 14, 2020
    Posts:
    2
    In the UnassignedReferenceException error message (The variable X of Y has not been assigned. You probably need to assign the X variable of the Y script in the inspector) it would be useful to have the name of the game object that is throwing the error, to speed up finding accidental script adds etc.
     
    johnwickleback likes this.
  2. johnwickleback

    johnwickleback

    Joined:
    May 31, 2021
    Posts:
    1
    Completely agree, just makes accidental script placing so much easier to find.