Unity coding problem

Hey all I’ve been having a problem with unity.
My Unity hasn’t been liking the section of coding “loadingImage.SetActive(true);” saying “UnassignedReferenceException: The variable loadingImage of LoadOnClick has not been assigned.” I am unsure as to what to do in this instance as i haven’t had this problem before in Unity 5.1.0 the entire section of coding is at the bottom i wanted to ask if anyone could please help me with this thanks.

using UnityEngine;
using System.Collections;

public class LoadOnClick : MonoBehaviour {

public GameObject loadingImage;

public void LoadScene(int level)
{
	loadingImage.SetActive(true);
	Application.LoadLevel(level);
}

}

I’m currently actually following a Unity Tutorial and whats shown above is exactly what is supposed to be used and the only coding so far. I’m trying to develop a Main Menu and in the tutorial the main menu is already working and i have followed it twice exactly and the coding is the only error that keeps occurring

It just sounds like you haven’t assigned the public variable as the image. The “Of LoadOnClick” is referring to the script’s ‘name’ and it’s simply returning a null when searching for the variable.

I may be wrong though, as I can’t see your project, only the code and the error.