Beginner scripting not working.

Hi all. i am a total beginner of unity, i am running a course from udemy, i am at the start, and i have followd the instructions but, no matter whati do i cannot get my script to run.

Using monodevelop and my script looks like this:

using UnityEngine;
using System.Collections;
public class NumberWizard : MonoBehaviour {
// Use this for initialization
void Start () {
print (“Welcome to Number Wizard”) ;
}

// Update is called once per frame
void Update () {

}
}

I push the play button but nothing happens, no Message in console.

When i follow the course he push the button ang can see text showing its working.

I would be glad for all the help i can get.
Hope this is the right Place to ask for help!

Best regards
Olaf

You need to add the script to an active GameObject in your scene. So, when highlighting a GameObject in the editor, click Add Component in the Inspector window, and find your script.

1 Like

Please format your code.

Or alternatively, drag your script from your project window onto one of the ‘GameObjects’ in the scene hierarchy.

Thanks for answers! I will try tonight, i also found the Q&A on Udemy so i can continue ask questions there!