AmirSolt/Unity-Polytube
Über uns
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.
Spiele und EmulationWhat you can do
- Add an option to disable wiping out old sessions.
- A Stop() function to stop the recording manually.
Gemessener Sternzuwachs
- in 24h
- -1
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
OriginalPolytube 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.
Ähnliche Projekte entdecken
Wird geladen…