コード例 #1
0
 virtual public void hideWindow()
 {
     PluginLogger.logDebug("hideWindow: " + _name);
     waitingForUnlockEditor          = true;
     waitingForUnlockEditorStartTime = Time.realtimeSinceStartup;
     this._windowDisplayed           = false;
     if (OnHide != null)
     {
         OnHide();
     }
 }
コード例 #2
0
 virtual public void displayWindow()
 {
     PluginLogger.logDebug("DisplayWindow: " + _name);
     //float height = getWindowHeight(windowPos);
     //float windowWidth = getWindowWidth(windowPos);
     windowPos              = new Rect((Screen.width - windowWidthOnScreen) / 2, (Screen.height - windowHeightOnScreen) / 2, windowWidth, windowHeight);
     _windowDisplayed       = true;
     centered               = false;
     justAfterWindowDisplay = true;
     waitingForUnlockEditor = false;
 }
コード例 #3
0
        public static Texture2D loadTextureFrom(string file)
        {
            Texture2D tex = null;

            byte[] fileData;

            if (File.Exists(file))
            {
                fileData = File.ReadAllBytes(file);
                tex      = new Texture2D(2, 2);
                tex.LoadImage(fileData);
            }
            else
            {
                PluginLogger.logError("Cannot find " + file);
                tex = Texture2D.blackTexture;
            }

            return(tex);
        }
コード例 #4
0
 virtual public void start()
 {
     PluginLogger.logDebug("Start in window: " + _name);
 }