Search Unity

Prefab does not hit player after build

Discussion in '2D' started by teddy1001, May 9, 2020.

  1. teddy1001

    teddy1001

    Joined:
    May 9, 2020
    Posts:
    1
    In the editor mode, when my player gets hit by the instantiated prefab, it'll play an animation. But after I build and run my game project, the player completely ignores the instantiated prefab, in fact the prefab just passes over the character. I think it may have something to do with the layering issue but why does it work in the editor mode and not in the build mode?