// Update is called once per frame
 static void Update()
 {
     if (EditorApplication.isPlaying)
     {
         //check if the scene has a faceplusconnector component
         if (Object.FindObjectOfType <FacePlusConnector>() && !windowLoaded)
         {
             //popup faceplus editor window
             FacePlusEditorWindow window = (FacePlusEditorWindow)EditorWindow.GetWindow(typeof(FacePlusEditorWindow), false, "Face Plus");
             windowLoaded = true;
         }
     }
     if (!EditorApplication.isPlaying)
     {
         windowLoaded = false;
     }
 }
Beispiel #2
0
 static void Init()
 {
     // Get existing open window or if none, make a new one
     FacePlusEditorWindow window = (FacePlusEditorWindow)EditorWindow.GetWindow(typeof(FacePlusEditorWindow), false, "Face Plus");
 }