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

CheckConsistency: GameObject does not reference component MonoBehaviour. Fixing.

Discussion in 'Editor & General Support' started by Cheburek, Jan 21, 2014.

  1. Cheburek

    Cheburek

    Joined:
    Jan 30, 2012
    Posts:
    384
    Whenever I save a scene I get this message. Some of my prefabs become corrupted afterwards. Unity seems to randomly add monobehaviors and children to prefabs that I deleted days ago. What is the problem? It's quite frustrating.

    edit: I check that there are no missing components or anything of the sort whenever I update these prefabs.
     
    zee_ola05 likes this.
  2. zee_ola05

    zee_ola05

    Joined:
    Feb 2, 2014
    Posts:
    166
    This happens to me on other components too (Box Collider), not just on MonoBehaviour.

    Have you resolved this issue?
     
  3. Timelog

    Timelog

    Joined:
    Nov 22, 2014
    Posts:
    528
    zee_ola05 I don't know if you have resolved your issue, but in my case Unity added some empty script references. I just deleted those and ran my scene and the problem was resolved.
     
  4. j-robichaud

    j-robichaud

    Joined:
    Aug 26, 2010
    Posts:
    40
    We had this issue when trying to remove colliders programmatically on children of a prefab.

    We avoided the issue by calling "PrefabUtility.DisconnectPrefabInstance(Object targetObject);" first, doing the changes, then override the prefab after.
     
  5. venombash

    venombash

    Joined:
    Jan 5, 2019
    Posts:
    1
    i just restarted unity and it worked fine
     
  6. InvadedVeronix

    InvadedVeronix

    Joined:
    Jun 11, 2019
    Posts:
    1
    CheckConsistency: GameObject does not reference component animator. fixing
     
  7. kintela

    kintela

    Joined:
    Jun 27, 2019
    Posts:
    2
    Hi Have you solved this?
     
  8. ilijagoranksenon

    ilijagoranksenon

    Joined:
    Jun 28, 2019
    Posts:
    1
    I have this too lol. Idk how to fix it
     
  9. zakjadamir

    zakjadamir

    Joined:
    Aug 20, 2019
    Posts:
    1
    j'ai le même problème
    CheckConsistency: GameObject does not reference component Animator. Fixing.
     
  10. vrman3dfcc

    vrman3dfcc

    Joined:
    Nov 9, 2017
    Posts:
    4
    This started happening as soon as I converted a project to the newest unity. 12 of these.
     
  11. imadeeb

    imadeeb

    Joined:
    Sep 10, 2019
    Posts:
    1
    have anyone solved this issue?????????
     
  12. JeremyQuetin

    JeremyQuetin

    Joined:
    Sep 18, 2019
    Posts:
    1
    I'm new with unity. I've just import standard assets and it gives me these errors. I've restarted my project and it's gone
     
    GorgeGeorge and oliaovi like this.
  13. wangqi_123

    wangqi_123

    Joined:
    Nov 12, 2019
    Posts:
    1
    1. Open the UnityEngine.GUIStyle.cs file;
    2. Remove "AS " from "AS TextArea" in the op_Implicit() method to solve the issue.
     
  14. KingdomCrossGamesNC

    KingdomCrossGamesNC

    Joined:
    Dec 3, 2019
    Posts:
    1
    I'm new to unity and This worked for me thank you
     
  15. Jonny-Rich

    Jonny-Rich

    Joined:
    Jul 9, 2017
    Posts:
    4
    I had the same issue i tried restarting and now get this error

    Assets\Standard Assets\Utility\SimpleActivatorMenu.cs(10,16): error CS0619: 'GUIText' is obsolete: 'GUIText has been removed. Use UI.Text instead.
     
  16. Jonny-Rich

    Jonny-Rich

    Joined:
    Jul 9, 2017
    Posts:
    4
    And this Assets\Standard Assets\Utility\ForcedReset.cs(6,27): error CS0619: 'GUITexture' is obsolete: 'GUITexture has been removed. Use UI.Image instead.'
     
  17. Hoorza

    Hoorza

    Joined:
    May 8, 2016
    Posts:
    40
    Hey guys. Having the same problem after I have upgraded to Unity 2019.3.3f1. I have changed GUITexture' to 'UI.Image' and that seems to be OK but my game now crashes without logging anything. Either after some time like 20-30 seconds if I don't trigger anything just keep the game on, or instantly when I trigger some of the game's functions. Not sure if it is related. Trying to go back to the previous version to rebuild it again.
     
  18. RCMT

    RCMT

    Joined:
    Jan 12, 2018
    Posts:
    1
    please try the following:
    Add this is in namespace
    using UnityEngine.UI;

    remove "UI" from declarations
    upload_2020-4-1_23-59-56.png

    I tried this and its working now
    All the best
     
  19. MikeWise

    MikeWise

    Joined:
    Dec 27, 2017
    Posts:
    14
    Does anyone know what this message is even supposed to mean? I mean the "Fixing" part. I don't see any fixing...
     
    angelx3 likes this.
  20. gravisxv

    gravisxv

    Joined:
    Jul 13, 2020
    Posts:
    15
    I had this problem while updating the unity input. An advise, dont do that or you will have to fix the imports.
     
  21. Warp-Lemon

    Warp-Lemon

    Joined:
    Dec 21, 2015
    Posts:
    5
    We had a similar issue with this message. In our case, it seemed that there was a git merge request that was not done properly and it messed some reference with the script. Because it was a small gameobject and script, we simply deleted the component and add again and it solved.
     
    jiraphatK likes this.