problem while giving functionalities to button

i am trying to develope an AR app…for andriod and i just create the buttons, to gave some functionalities to my objects based on butttons after tracking the objects…but when i pressed buttons while running it shows the error like…

UnassignedReferenceException: The variable Cube of ImageTargetTrackableEventHandler has not been assigned.
You probably need to assign the Cube variable of the ImageTargetTrackableEventHandler script in the inspector.
ImageTargetTrackableEventHandler.OnGUI () (at Assets/Scripts/ImageTargetTrackableEventHandler.cs:136)

1 Wrong forum

2 Read the error??? It tells you exactly what is wrong. Exactly. What. Is. Wrong.

**

[quote]**
UnassignedReferenceException: The variable Cube of ImageTargetTrackableEventHandler has not been assigned.
You probably need to assign the Cube variable of the ImageTargetTrackableEventHandler script in the inspector.
ImageTargetTrackableEventHandler.OnGUI () (at Assets/Scripts/ImageTargetTrackableEventHandler.cs:136)
**[/quote]
**

Assign the Cube property of your script to a value you need it to be? I guess you didn’t write this script?

no i wrote the script and i also described the cube in that script

thank u for your advice i made mistake in inspector now i change that…