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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

problem while giving functionalities to button

Discussion in 'General Graphics' started by Indhu, Aug 25, 2015.

  1. Indhu

    Indhu

    Joined:
    Jul 15, 2015
    Posts:
    7
    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)
     
  2. Korno

    Korno

    Joined:
    Oct 26, 2014
    Posts:
    518
    1 Wrong forum

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



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

    Indhu

    Joined:
    Jul 15, 2015
    Posts:
    7
    no i wrote the script and i also described the cube in that script
     
  4. Indhu

    Indhu

    Joined:
    Jul 15, 2015
    Posts:
    7
    thank u for your advice i made mistake in inspector now i change that.......