private IEnumerator EditCoroutine()
    {
        // Hide this window if exist
        if (_parentWindow)
        {
            yield return(_parentWindow.Hide());
        }

        Debug.Log("End");


        // Set editor window to this sample feature values
        _avatarWindow.SetFeatureValues(FeatureValues);

        // Wait for edit
        yield return(_avatarWindow.ShowWaitForCloseHide());

        // Get values
        SetFeatureValues(_avatarWindow.GetFeatureValues());

        // Show this window if exist
        if (_parentWindow)
        {
            yield return(_parentWindow.Show());
        }
    }
Esempio n. 2
0
        protected override IEnumerator Run()
        {
            if (Window == null)
            {
                throw new Exception("Error in window node! Window is'nt set");
            }

            if (Refresh)
            {
                Window.Refresh();
            }

            if (EnteredSocket == InputSocketList[0])
            {
                yield return(Window.WaitForClose(false, false));
            }
            else
            {
                yield return(Window.WaitForClose(true, false));
            }


            for (var i = 0; i < OutputSocketList.Count; i++)
            {
                if (OutputSocketList[i].Info == Window.Result)
                {
                    if (HideList[i])
                    {
                        yield return(Window.Hide());
                    }
                }
            }
        }