Change frame names
This commit is contained in:
parent
1ba0115904
commit
4a6bdf0e96
@ -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);
|
||||
|
BIN
capturedframe/capturedframe_AS12_7_1.png
Normal file
BIN
capturedframe/capturedframe_AS12_7_1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 790 KiB |
BIN
capturedframe/capturedframe_AS12_7_2.png
Normal file
BIN
capturedframe/capturedframe_AS12_7_2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 788 KiB |
Loading…
Reference in New Issue
Block a user