Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved [2020.1.8f1] Cannot override prefab - Invalid script?

Discussion in 'Prefabs' started by MlleBun, Oct 22, 2020.

  1. MlleBun

    MlleBun

    Joined:
    Sep 19, 2017
    Posts:
    163
    Hi,

    In prefab mode, I duplicated on gameObject and remove a script from it. When I wanted to save it and go back to the scene mode, I got an error message saying that there were missing scripts.

    I discarded the changes and created a new Empty gameobject un the scene view, but when I want to override the prefab, I get this. And both Revert All and Apply All are grayed :
    upload_2020-10-22_21-0-13.png

    I closed ansd reopened the editor and now, I can't add an override anything in my prefab. The fact is that I have no issue with missing scripts (I didn't even changed them since duplicating the gameobjects in prefab mode. And I get no errors in Play mode).
    Should I report the bug or it this known?

    Thanks!
     

    Attached Files:

  2. MlleBun

    MlleBun

    Joined:
    Sep 19, 2017
    Posts:
    163
    FIXED : There was indeed a missing PlayMaker component referencing a deleted FSM in the prefab.
     
  3. SteenLund

    SteenLund

    Unity Technologies

    Joined:
    Jan 20, 2011
    Posts:
    639
    I am glad you found the component.

    I have heard that it can be hard to find the components especially in large prefab, so I have put it on our roadmap to make this warning better with more information.
     
    MlleBun likes this.
  4. MlleBun

    MlleBun

    Joined:
    Sep 19, 2017
    Posts:
    163