Search Unity

Gameobject stops working when it becomes a prefab

Discussion in 'Prefabs' started by RetroboltGames, Jun 2, 2019.

  1. RetroboltGames

    RetroboltGames

    Joined:
    Oct 26, 2018
    Posts:
    11
    I have a gameobject that disappears after contact, it uses a script and the event system in the animation editor and it works fine. When added as a prefab it stops working.

    It only works again if I put one of the prefab clones in the script slots and only then it will work for that one clone.

    When I put the (Main/Root/Original) prefab in those slots, it won't work at all.

    Is my code not generalized for prefabs? Did I do something wrong.

    Should I take the lazy route and make like 10 slots each for individual gameobjects?

    If there's any info you need, please let me know.

    Anything that can help will be much appreciated.
    Thank you