|
1 | 1 | # Unity Certain Camera Recorder |
2 | 2 |
|
| 3 | +### Installation: |
| 4 | +1. Open [releases](https://github.com/mentoster/Unity-CertainCameraScreenshot/releases) |
| 5 | +2. Download the RecorderScript.unitypackage package when unity is open. |
| 6 | +3. Allow import in the unity editor. (If you don't need a camera controller, disable Ghost script import) |
| 7 | + |
| 8 | +### How to use it: |
| 9 | +1. Drag the video or screenshot camera's prefab to the scene. |
| 10 | +2. If u need to change the buttons in the controllers, u can do it. |
| 11 | +3. Launch the scene and click the appropriate button. (C-for screenshot, V-for video, by default) |
| 12 | + |
| 13 | +## Wow! U awesome! Now about the rest |
| 14 | +* if the camera doesn't work, it is disabled to improve performance |
| 15 | +* The video resolution depends on the texture, so if you want another resolution, just change the texture resolution. |
| 16 | +* Screenshots automatically adjusts to your screen. |
| 17 | +* The program Automatically creates a folder in your project called Screenshots and throws screenshots there or video! |
| 18 | +* You can also change a recording name and the path to save screenshots (videos). |
| 19 | + |
| 20 | +### Mistakes that should be ignored: |
| 21 | +1. [monsters from Doom](https://yadi.sk/i/GJBnVsEFowxMrQ) |
| 22 | +2. Sooooo, here's what this beast tells us: |
| 23 | +* ReadPixels was called to read pixels from system frame buffer, while not inside drawing frame. |
| 24 | +* UnityEngine.Texture2D:ReadPixels(Rect, Int32, Int32) |
| 25 | +* ScreenShot:LateUpdate() |
| 26 | +3. Translate from unity language : you used a method not intended for making screenshots (that's the news, right?)! |
| 27 | +* This arises from the fact that I use LateUpdate() |
| 28 | +* And the screenshots are working through ScrnCam.Render(); |
| 29 | +* If you use the method for screenshots, the screenshot will be taken from the main camera, it can be bad, if u want to take screenshot from another camera. |
| 30 | +4. I haven't figured out how to tell unity to stop displaying the error yet, so I suggest you put up with it for now. |
| 31 | + |
| 32 | +## Rus readme |
3 | 33 | ### Установка: |
4 | 34 | 1. Открыть [релизы](https://github.com/mentoster/Unity-CertainCameraScreenshot/releases) |
5 | 35 | 2. Скачать пакет RecorderScript.unitypackage при открытом unity. |
6 | 36 | 3. Разрешить импорт в редакторе unity. (В случае, если вам не нужен контроллер камеры - отключите импорт Ghost skript) |
| 37 | + |
7 | 38 | ### Использование: |
8 | 39 | 1. Перетащить префаб необходимой камеры на сцену, с которой необходимо сделать скриншот или видео. |
9 | 40 | 2. В случае необходимости поменять кнопки в контроллерах. |
10 | 41 | 3. Запустить сцену и нажать необходимую кнопку. (С-для скриншота, V-для видео, по умолчанию) |
| 42 | + |
11 | 43 | ## Ура! Теперь остальное! |
12 | 44 | * Если видео не записывается, или не делается скриншот - камеры не работают, для повышения производительности соответсвенно. |
13 | 45 | * Разрешение видео зависит от текстуры, поэтому если вы хотите другое разрешение, просто поменяйте разрешение текстуры. |
14 | 46 | * Скриншоты Автоматически подстраивается под ваш экран. |
15 | | - * Программа Автоматически создаёт папку в вашем проекте под названием Screenshots и кидает туда скриншоты! |
| 47 | + * Программа Автоматически создаёт папку в вашем проекте под названием Screenshots и кидает туда скриншоты или видео в похожую папку! |
16 | 48 | * Вы так же можете изменить формат записи имени и путь сохранения скриншотов(видео). |
17 | 49 |
|
18 | 50 | ### Про видео: |
|
0 commit comments