Search Unity

All compiler errors have to be fixed before you can enter playmode

Discussion in 'AR/VR (XR) Discussion' started by xrdevrob, Feb 29, 2020.

  1. xrdevrob

    xrdevrob

    Joined:
    Feb 29, 2020
    Posts:
    11
    Hello everyone,

    I'm new to Unity and just imported my first template, which worked fine. The environment looks great and all the objects are there.

    BUT

    if I try to enter playmode the following error pops up: "All compiler errors have to be fixed before you can enter playmode"

    and i get a bunch of error in my compiler, which for some reason I cannot open, which means I have no idea how to fix them.

    upload_2020-2-29_20-26-12.png

    They all basically say the same: "required property 'name' not set ......

    I'm stuck on this issue for a while now and after reading a bunch of similar issues, I still can't figure out what's the problem. I tried many things already discussed, such as changing api compatibility level*, but nothing seems to change.
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    What's this template you're trying to import? Looks to me like it's broken...
     
  3. xrdevrob

    xrdevrob

    Joined:
    Feb 29, 2020
    Posts:
    11
  4. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    OK, that's just a model. Don't worry about that yet.

    Quit Unity, relaunch it, make a new project. Press the Play button. Does it work? (Not that it will do anything — you will see just a blue or black Game view — but you should be running, as you can tell by the state of the Play button.)
     
  5. xrdevrob

    xrdevrob

    Joined:
    Feb 29, 2020
    Posts:
    11
    Yes, this does work so far. I am trying to figure out the proper way to import my assets, since I had some difficulties there and may have imported it the wrong way, what may have caused the issue. I will post a follow-up shortly. Thank you so much for your help!
     
  6. xrdevrob

    xrdevrob

    Joined:
    Feb 29, 2020
    Posts:
    11
    Update: Still the same issue.
     
  7. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    Very strange. How exactly are you importing this asset?
     
  8. xrdevrob

    xrdevrob

    Joined:
    Feb 29, 2020
    Posts:
    11
    I uploaded it in Assets with import package -> custom package
    and it seems that this worked just fine.
     
  9. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    That's not the standard way of importing an Asset Store package. Rather, you open the Asset Store tab (from the Window menu), search for the asset, and then click "Download" (if you haven't already) and then "Import".
     
  10. kustomkool

    kustomkool

    Joined:
    Aug 17, 2020
    Posts:
    2
    I get the same error message with generic Asset store stuff and I haven't even touched a line of code.
     
  11. dadukubiduku12

    dadukubiduku12

    Joined:
    Aug 28, 2021
    Posts:
    1
    No need of doing anything
    Just open console and check what comes over in console
    Step 1 : delete the assets which appears in console