일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- server
- SDK upgrade
- Google Developer API
- MySQL
- docker
- unity
- mongoDB
- express
- Digital Ocean
- Packet Network
- react
- screencapture
- nodejs
- Camera Movement
- draganddrop
- Camera Zoom
- critical rendering path
- rpg server
- Google Refund
- java
- OverTheWire
- Unity Editor
- css framework
- --watch
- spread 연산자
- Git
- linux
- Spring Boot
- springboot
- Unity IAP
- Today
- Total
목록screencapture (2)
우당탕탕 개발일지
Unity 에서 제공하는 라이브러리인 ScreenCapture를 이용해 스크린샷을 찍고, 이를 저장하는 기능을 만들어보자. ScreenCapture의 공식 문서는 아래에 있다.https://docs.unity3d.com/ScriptReference/ScreenCapture.CaptureScreenshot.html Unity - Scripting API: ScreenCapture.CaptureScreenshotIf the screenshot exists already, ScreenCapture.CaptureScreenshot overwrites it with a new screenshot. Add .png to the end of filename to save the screenshot as a .png ..
Unity에서 제공하는 Screen Capture를 이용해 스크린샷을 찍고, Native Gallery 를 이용하여 갤러리에 저장한다. 순서는 다음과 같다.1. 프레임 준비를 위해 Coroutine을 이용해 waitforEndofFrame()을 호출2. 파일이름을 지정3. 찰칵4. 갤러리 저장을 위해 퍼미션 체크5. 갤러리저장 1. 프레임 준비를 위해 Coroutine을 이용해 waitforEndofFrame()을 호출 public void CaptureScreen() { StartCoroutine(MakeScreenShot()); } private IEnumerator MakeScreenShot() { yield return new WaitForEn..