Esempio n. 1
0
 public ResizeTool(GameViewSizeChanger window, string label, int width, int height)
 {
     Window = window;
     Label  = label;
     Width  = width;
     Height = height;
 }
        public static void Open()
        {
            GameViewSizeChanger window = GetWindow <GameViewSizeChanger>("GameViewSizeChanger");

            window.Init(useResize: true);
        }
 public DrawTextureResizeTool(GameViewSizeChanger window, string label, int width, int height, string portraitTextureGuid, string landscapeTextureGuid) : base(window, label, width, height)
 {
     PortraitTexture  = AssetDatabase.LoadAssetAtPath <Texture>(AssetDatabase.GUIDToAssetPath(portraitTextureGuid));
     LandscapeTexture = AssetDatabase.LoadAssetAtPath <Texture>(AssetDatabase.GUIDToAssetPath(landscapeTextureGuid));
 }