Change frame names

This commit is contained in:
nlitkowski 2021-12-19 23:30:12 +01:00
parent 1ba0115904
commit 4a6bdf0e96
3 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ public class Main : MonoBehaviour
RenderTexture.active = currentRT;
++FrameCounter;
string path = Path.Combine(capturedFramesPath, "capturedframe" + "_" + tree1.name + "_" + FrameCounter.ToString() + ".png");
string path = Path.Combine(capturedFramesPath, tree1.name + "-" + FrameCounter.ToString() + ".png");
byte[] bytes = offscreenTexture.EncodeToPNG();
File.WriteAllBytes(path, bytes);
Debug.Log(path);

Binary file not shown.

After

Width:  |  Height:  |  Size: 790 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 788 KiB