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

Call Editor Window script from Popup Window Content

Discussion in 'Scripting' started by DomDomDom, Sep 11, 2016.

  1. DomDomDom

    DomDomDom

    Joined:
    Jan 21, 2015
    Posts:
    43
    What I'd like to do is call a function from an EditorWindow on a Popup Window. I've followed the popup window documentation and have something pretty identical, except I have text fields where the toggles are, and a button on my popup window. What I'd like to do is send the strings in my text fields to a function on the first script via an onclick of a button. But since this is an editor window and not a game object using getcomponent I'm not sure how to get the two scripts to talk to each other.

    Thanks for the help in advanced!
     
  2. alexanderameye

    alexanderameye

    Joined:
    Nov 27, 2013
    Posts:
    1,383
    Did you fix this eventually?
     
  3. DomDomDom

    DomDomDom

    Joined:
    Jan 21, 2015
    Posts:
    43
    I did not, I ended up moving onto something else and never got back to it. If you do get this to work, please share as I'm still interested.