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

Unity throws tons of exceptions non stop when there is a single null reference issue.

Discussion in 'Scripting' started by eyalm, Oct 14, 2016.

  1. eyalm

    eyalm

    Joined:
    Dec 20, 2015
    Posts:
    42
    Why does unity sometimes throws so many and make the program slows down duo to the massive amount of logs instead of just throwing one?
     
  2. leshrec2

    leshrec2

    Joined:
    Aug 4, 2016
    Posts:
    3
    If the error is in your update function, then it will repeat every frame.
     
    DroidifyDevs likes this.
  3. eyalm

    eyalm

    Joined:
    Dec 20, 2015
    Posts:
    42
    It is not there, If I simple put a condition that if it is null just print something and return, it will print only once.
     
  4. zombiegorilla

    zombiegorilla

    Moderator

    Joined:
    May 8, 2012
    Posts:
    8,950
    Would need to see your code to provide more help.