エディタ連携ガイド(Open Scene)
動画のプレイヤーにある Open Scene ボタンで、その動画に紐づいたシーンを Unity か Unreal Engine で直接開けます
ブラウザ(Open Scene) ↓ videoreview://open?scene=<scenePath>launcher(PC ごとにインストール、URL scheme を受け取る) ↓ 127.0.0.1:18766エディタのプラグイン(Unity / UE の中で待ち受け、シーンを開く)launcher とプラグインは、レビューする人の PC ごとに入れます
シーンのパスは、動画のアップロード時に紐づけます
1. launcher のインストール
Section titled “1. launcher のインストール”GitHub の Releases から、自分の OS の zip をダウンロードします
| OS | ファイル |
|---|---|
| Windows | videoreview-launcher-windows-amd64.zip |
| macOS(Apple silicon) | videoreview-launcher-darwin-arm64.zip |
| macOS(Intel) | videoreview-launcher-darwin-amd64.zip |
Windows
Section titled “Windows”- zip を展開します
- 展開したフォルダの
install.cmdをダブルクリックします
%LOCALAPPDATA%\VideoReview\VideoReview Launcher\ に入り、videoreview:// がこの launcher に登録されます
- zip を展開します
- 展開したフォルダで、ターミナルから次のコマンドを実行します
bash build-app.sh~/Applications/VideoReview/VideoReview Launcher.app が作られ、videoreview:// がこのアプリに登録されます
2. エディタにプラグインを追加
Section titled “2. エディタにプラグインを追加”integrations/unity/VideoReviewUnity/Assets/VideoReviewフォルダを、自分のプロジェクトのAssets/にコピーします- エディタを開き直します
Console に [VideoReview] TCP server started on port 18766 と出れば待ち受けています
※ 同梱のサンプルプロジェクトは Unity 6000.3 で作られています
Unreal Engine
Section titled “Unreal Engine”integrations/ue/Plugins/VideoReviewフォルダを、自分のプロジェクトのPlugins/にコピーします- プロジェクトを開き、プラグインのビルドを求められたら Yes を選びます(C++ のプラグインなので、Visual Studio か Xcode が要ります)
- Edit → Plugins で VideoReview が有効になっていることを確かめます
3. 動画に scene_path を指定
Section titled “3. 動画に scene_path を指定”動画をアップロードするときに、そのシーンのパスを scene_path に付けます
メンテナンス CLI の upload-video で指定します(メンテナンス CLI のガイド)
go run . upload-video \ --title "Boss battle - camera check" \ --folder_key "battle" \ --scene_path "Assets/Scenes/Boss.unity" \ --video_path "/path/to/video.mp4"エディタごとにパスの形が決まっています
| エディタ | scene_path の形 | 例 |
|---|---|---|
| Unity | プロジェクトの Assets/ から始まるパス |
Assets/Scenes/Boss.unity |
| Unreal Engine | パッケージ名、または Content/ から始まるパス |
/Game/Maps/Boss、Content/Maps/Boss.umap |
4. Open Scene ボタン
Section titled “4. Open Scene ボタン”- 動画を開くと、
scene_pathが付いている動画にはプレイヤーの右下にゲームパッドのアイコン(Open Scene)が出ます - 押すと、起動中のエディタがそのシーンを開き、前面に出ます
※ エディタを先に起動する必要があります
※ ボタンが出ないときは、動画に scene_path が付いているか、管理画面の General で URL scheme が空になっていないかを確かめます(General)
API Test Window
Section titled “API Test Window”Unity と UE のプラグインには、エディタの中から VideoReview の API を呼ぶデバッグウィンドウが入っています
中身はメンテナンス CLI を呼んでいるので、CLI のバイナリを次の場所に置いてから使います
| エディタ | CLI を置く場所 | 開き方 |
|---|---|---|
| Unity | Assets/VideoReview/Editor/API/bin/<Windows / Mac / Linux>/ |
メニュー VideoReview → Open API Test Window |
| Unreal Engine | Plugins/VideoReview/Source/VideoReviewEditor/bin/<Windows / Mac / Linux>/ |
メニュー Window → VideoReview API Test |
Server URL と API Token を入れて Apply を押すと、動画の一覧やアップロード(scene_path 付き)などをエディタから試せます
launcher のローカルビルド(開発者向け)
Section titled “launcher のローカルビルド(開発者向け)”ビルドするために Go が必要です
Windows(PowerShell)
Section titled “Windows(PowerShell)”cd integrations/launcher
# ビルド$env:GOOS="windows"; $env:GOARCH="amd64"; go build -o installers\windows\videoreview-launcher.exe# インストール.\installers\windows\install.cmdcd integrations/launcher
# Intel Mac は GOARCH=amd64 にしますGOOS=darwin GOARCH=arm64 go build -o installers/mac/videoreview-launcher# インストールbash installers/mac/build-app.shプラグインのビルド確認(開発者向け)
Section titled “プラグインのビルド確認(開発者向け)”Unity と UE のプラグインがビルドできるかを、Windows で確かめられます
インストール済みのエディタのうち最新のものを使います
powershell -ExecutionPolicy Bypass -File .\integrations\build-unity.ps1powershell -ExecutionPolicy Bypass -File .\integrations\build-ue.ps1※ Unity は、Unity Hub へのログインが必要です