/UnityPlayerView

Viewer that plays the content displayed on the actual device in UnityEditor.

Primary LanguageC#MIT LicenseMIT

UnityPlayerView

GitHub package.json version

Viewer that plays the content displayed on the actual device in UnityEditor.

概要

実機の画面をUnityEditor上で表示するViewerです。

image

GIF

UnityChoseKunDemo03

セットアップ

UnityPlayerViewのプレハブをSceneに配置してアプリケーションのビルドを行います。

使い方

ここではUnityEditor上での使い方を説明します。

起動方法

MenuからWindow->UnityPlayerViewでPlayerView Windowが起動します。

操作方法

Connect To

接続先のデバイスを指定します。接続の仕組みはUnityProfilerと共有していますので、どちらかの接続先を切り替えると、もう片方の接続先も切り替わります。

PlayIcon 再生の開始/終了
RecIcon 録画の開始/終了
ScreenShotIconスクリーンショットを保存する
SaveFolderIcon録画結果の保存先を指定する

Enable Async GPU Readback

Async GPU Readbackの機能を使用して画像処理を行う為、MainThareadの負荷が軽減される場合があります。

Enabled Touch Event

View上でのタッチをPlayer側に通知します。(Android プラットフォーム限定)

Refresh Interval

画像の転送処理を行う間隔を指定します。 間隔を開けることでCPU負荷が軽減されます。

Record Folder

録画時にファイルを書き出す先のフォルダー

Record Count Max

録画に何コマ迄録画するかを指定出来ます。 このコマまで録画を行うと録画は自動的に停止します。

Record Count

録画内容をSeekすることが出来ます。

UnityChoseKunDemo04

注意事項

  • Player Viewerは非常に負荷の高い処理です。Player Inspector->Screen->SetScreenからwidthとheightを調整したり、Refresh Intervalで実行間隔を調整してから再生を実行することをオススメします。

その他

要望・不具合等ありましたらIssueをご利用下さい。可能な限り対応します。

以上