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

InputField.ActivateInputField() Causing Reference not set error

Discussion in 'UGUI & TextMesh Pro' started by IchBinJager, Mar 6, 2016.

  1. IchBinJager

    IchBinJager

    Joined:
    Dec 23, 2014
    Posts:
    127
    Even though it clearly is.

    upload_2016-3-6_12-39-3.png

    I have Inits_Field assigned as public InputField Inits_Field , which means it couldn't be a null object could it?

    I also have the object it comes from being Instantiated from a Resources.Load() function, but it still should work. The main reason I'm using Inits_Field.ActivateInputField() Instead of just clicking on the InputField is I can't seem to click on it. At all.

    Any advice?
     

    Attached Files:

  2. IchBinJager

    IchBinJager

    Joined:
    Dec 23, 2014
    Posts:
    127
    I think I found the problem, it was there was no EventHandler present in-scene Sorry everyone.