예제 #1
0
        private IEnumerator Crt_RequestEditor()
        {
            yield return(new WaitForEndOfFrame());

            Selection.activeObject = null;

            yield return(new WaitForEndOfFrame());

            if (_requestPortrait != null)
            {
                try
                {
                    apEditor anyPortraitEditor = apEditor.ShowWindow();
                    if (_requestType == REQUEST_TYPE.OpenAndSet)
                    {
                        anyPortraitEditor.SetPortraitByInspector(_requestPortrait, false);
                    }
                    else if (_requestType == REQUEST_TYPE.QuickBake)
                    {
                        anyPortraitEditor.SetPortraitByInspector(_requestPortrait, true);
                        Selection.activeObject = _requestPortrait.gameObject;
                    }
                }
                catch (Exception ex)
                {
                    Debug.LogError("Open Editor Error : " + ex);
                }
            }
            _requestType     = REQUEST_TYPE.None;
            _requestPortrait = null;
        }