Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

I have little idea what this error means.

Discussion in 'Editor & General Support' started by Brian-Washechek, Jun 2, 2018.

  1. Brian-Washechek

    Brian-Washechek

    Joined:
    Aug 5, 2015
    Posts:
    846
    The error is "Can't add script behavior VisualContainerAssets. The script needs to derive from monobehavior!". I tried Google-ing it and my search didn't do me any good. My search was brief however. I decided that I'd have a better chance for positive results if I just posted about my error. My picture tells of my troubles: The top image is what I'm trying to do and the bottom image is the error is my computer throwing back at me.
    Error 6-01-2018.png
    The image is covering my learning attempt at 13:32 of this tutorial. Any ideas?
     
  2. countlesschain

    countlesschain

    Joined:
    Jun 2, 2018
    Posts:
    6
    The class name inside you script is "NewBehaviourScript", however your script name is "GuessTheNumberGame"

    The main class inside your script needs to have the same name as the script name.
     
  3. Brian-Washechek

    Brian-Washechek

    Joined:
    Aug 5, 2015
    Posts:
    846
    How silly of me. Thanks for your help!