コード例 #1
0
 public ResizeTool(GameViewSizeChanger window, string label, int width, int height)
 {
     Window = window;
     Label  = label;
     Width  = width;
     Height = height;
 }
コード例 #2
0
        public static void Open()
        {
            GameViewSizeChanger window = GetWindow <GameViewSizeChanger>("GameViewSizeChanger");

            window.Init(useResize: true);
        }
コード例 #3
0
 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));
 }