Exemplo n.º 1
0
        void ShowSearchWindow()
        {
            searchWindow             = EditorWindow.GetWindow <ReactSearchWindow>();
            searchWindow.target      = this;
            searchWindow.lastHotNode = reactor.hotNode;
            searchWindow.LoadDefaultResults();
            searchWindow.ShowAsDropDown(reactor.hotNode.rect, new Vector2(384, 512));
            var rect = new Rect(0, 0, 384, 512);

            rect.x = EditorPrefs.GetFloat("React.Search.x", 50);
            rect.y = EditorPrefs.GetFloat("React.Search.y", 50);
            searchWindow.position = rect;
        }
Exemplo n.º 2
0
 public void OnAfterDeserialize()
 {
     instance = this;
 }