Thomas Lapes (tomaslapes)

1 answer · asked · Lesson: Basic Platform Prefabs · Course: Creating a 2.5D Side Scroller Game in Unity

Problem with adding the FallingTiles script to the empty

I am using Unity 2018.3.14f1. When I try to add the script to the empty with the Box Collider 2d and Rigidbody2d it gives me a popup window which tell me: "Cant add script: Please fix compiler errors before creating new script components" in the console I have [11:10:45] (I think this is the time).

Should I just create different project with a different version of Unity?


  • crew

    What does the error say exactly? Please copy the entire code here and I can determine what the fix would be. There may be an issue with another component or script and it wants you to fix them before adding that script. You could try a different version of Unity but I'm not sure that would resolve the issue.