예제 #1
0
 void PrintSizesTillIndex()
 {
     for (int i = 0; i <= printIndex; i++)
     {
         print(i + ". " + GameViewUtils.GetViewDimentions(i));
     }
 }
예제 #2
0
    private void Start()
    {
        path = (Application.dataPath.Replace("/Assets", "")) + "/" + screenshotsFolderName;
        if (Directory.Exists(path) == false)
        {
            Directory.CreateDirectory(path);
            print("Created folder at (" + path + ")");
        }

        for (int i = 0; i < editorScreenSizeIndices.Length; i++)
        {
            string s = GameViewUtils.GetViewDimentions(editorScreenSizeIndices[i]);
            if (Directory.Exists(path + "/" + s) == false)
            {
                Directory.CreateDirectory(path + "/" + s);
            }
        }
    }