unity3d-jp / FrameCapturer

export framebuffer, GBuffer or any RenderTextures from Unity to file. supported format: png, exr, gif, webm, mp4
MIT License
1.04k stars 165 forks source link

Add basic initialisation to build.bat #45

Closed t-mat closed 5 years ago

t-mat commented 5 years ago

Super trivial PR again 😃

(1) setlocal Before this changeset, when we continuously call build.bat from same cmd.exe terminal, some environment variables are exceeded maximum length by toolchain.bat (actually VsDevCmd.bat). Because it keep adding same locations to %PATH%.

To avoid this issue, we need setlocal in the beginning of the file.

(2) cd /d "%~dp0" It allows us to call build.bat from anywhere!