Search Unity

Create With Code 1.2 Error

Discussion in 'Community Learning & Teaching' started by wbumgardner, Jan 5, 2021.

  1. wbumgardner

    wbumgardner

    Joined:
    Jan 4, 2021
    Posts:
    4
    I'm running through the Create With Code project so I can later teach it to my students. On step one of 1.2, I'm coming across an error. after I create the script and then attempt to drag it to the vehicle, I receive the following error message:

    "Can't script behaviour EnumerableTestMethodCommand. The script needs to derive from MonoBehaviour!"

    I'm not sure what to do at this point. Any help would be greatly appreciated.

    Thanks!
     
  2. Owen-Reynolds

    Owen-Reynolds

    Joined:
    Feb 15, 2012
    Posts:
    1,997
    Searching for that error should give much better results than I can type here. That's a real advantage of Unity being so popular. You just have to watch out for all the out-of-date info for older versions (but not in this case).