AmirSolt/Unity-Polytube
关于
Polytube is an analytics tool that records gameplay sessions for playtesting and debugging. It uses GPU duplication for high performance and minimal impact on system resources, and can automatically upload recordings to the cloud when valid credentials are provided.
游戏与模拟器可以做什么
- Add an option to disable wiping out old sessions.
- A Stop() function to stop the recording manually.
实测星标增长
- 24小时
- -1
- 7天
- -1
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Polytube is an analytics tool that records gameplay sessions for playtesting and debugging. It uses GPU duplication for high performance and minimal impact on system resources, and can automatically upload recordings to the cloud when valid credentials are provided. This Unity packge provides an easy to use wrapper around polytube.exe.
Documentation | Polytube core
Unity Instructions (4 Steps)
1. Add the package
Download the project as a ZIP file from GitHub: https://github.com/AmirSolt/Unity-Polytube/archive/refs/heads/main.zip
Extract the ZIP and place the folder named
com.polytube.sessionrecorderinside your Unity project’sPackages/directory.
2. Add the polytube.exe
Download the latest stable polytube.exe: https://github.com/AmirSolt/Polytube/releases
Place the downloaded
polytube.exefile inside your Unity project’sAssets/StreamingAssets/directory.
3. Start recording
Call the following method from your code:
using Polytube.SessionRecorder;
Polytube.SessionRecorder.Main.Start();
This starts recording the game window and saves the files to Application.temporaryCachePath.
The recording will close immediately inside the editor since there's no game window.
🚨 IMPORTANT: Make sure to obtain proper consent agreements before recording. Respect user's privacy,
4. (Discontinued) Enable cloud uploads
If you provide an ApiId and ApiKey, the recordings will automatically upload to the cloud.
Example:
using Polytube.SessionRecorder;
Polytube.SessionRecorder.Main.Start(new Dictionary<string, string>{
{"--api-id", "<YOUR API ID>"},
{"--api-key", "<YOUR API KEY>"}
});
5. Stop recording
You can gracefully stop the recording at any time by calling:
using Polytube.SessionRecorder;
Polytube.SessionRecorder.Main.Stop();
Notes
Do not close the program manually
The recorder is designed to shut down automatically when the target window closes. Do not kill the process abruptly.
Proper consent forms
Make sure you comply with privacy laws in every region where your software will be released. If your application uses cloud storage and doesn't meet these regulations, it could be banned or restricted.
It's designed to record till the last momment
Since the recorder, polytube.exe runs in a different process it will keep recording even if your game crashes. Once the game window is closed for any reason it will stop recording and close all services.
Wipes out previous recordings
Currently, the recorder wipes out any previous recordings, so you don't have to worry about storage space.
Documentation
Functions
Start(Dictionary<string, string> userFlags=null)
This function starts recording the game window and saves the files to Application.temporaryCachePath.
It uses Application.productName to find the game window. This function won't work in the editor.
You can add flag parameters to control the behaviour of the recorder. See https://github.com/AmirSolt/Polytube for more information.
Stop()
This gracefully kills the polytube.exe process making sure all recordings and uploads are finalized.
Upcoming features
- Add an option to disable wiping out old sessions.
- A
Stop()function to stop the recording manually.
探索相关项目
加载中…