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. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Bug Removed object still throwing errors when built

Discussion in 'Editor & General Support' started by JSaunders, Sep 8, 2022.

  1. JSaunders

    JSaunders

    Joined:
    Aug 6, 2018
    Posts:
    17
    Hello!

    I recently removed a number of objects from one of my main scenes after removing the associated plugin, but when I build the project, the removed object still seems to be throwing a missing script error.

    Has anyone seen anything like this before? I'm using Unity 2019 LTS.

    Thanks.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    29,567
    All the time. Here's a few things to investigate:

    - the error is coming from something that has nothing to do with what you think it is

    - you didn't actually remove everything you needed to

    - you removed more than you needed to

    - something else is putting it back (some packages download and install crap before they build)

    - some code is guarded with a
    #if
    and doesn't get built except in the editor.

    etc etc etc
     
  3. JSaunders

    JSaunders

    Joined:
    Aug 6, 2018
    Posts:
    17
    Thank you for the quick response!

    I've gone through and ctrl+F'ed through the entire project to see if there are any remnants of the extension (PlayWay Water) and it *seems* like I've gotten everything.

    (Obviously that can't be the case, but I'm just a little confused as to where it could be.)
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    29,567
    You might need to bisect your scene(s) or projects in order to find what is blowing up, or else linearly search through the components of your scene(s), as long as they are not too large.

    There are also missing script finders on the asset store and around the webs.
     
  5. JSaunders

    JSaunders

    Joined:
    Aug 6, 2018
    Posts:
    17
    Alright, thank you!
     
unityunity