LoginSignup
39
41

More than 5 years have passed since last update.

Unity iOS / AndroidでMovieTextureを使う

Last updated at Posted at 2015-03-29

Unity5.0はiOS, Android向けのMovieTextureをサポートしていない

Unity - マニュアル: ムービー テクスチャ

Movie Texturesは,iOS上ではサポートされません。
Movie Texturesは,Android上ではサポートされません。

まじか

Easy Movie Texture For Android (Video Texture) - Asset Store

サードパーティ製だがこのAssetが良い。$35
iOSはβ版扱いだがUnity Pro 5.0.1f1でAndroid, iOS両方に書き出せてどちらも実機で動いた。
エラーメッセージを読んでも直し方のわからないコンパイルエラーは↓のひとつを除いて出なかったと思う。
・Build Settings -> iOS -> Player Settings -> Other Settings -> Graphics API でMetalやAutomaticを選択しているとXcodeでビルドする際にエラーが出る

使えなかった / 使わなかったMovieTexture互換Asset

(値段、最終更新月)
Asset Store - Mobile Movie Texture
 $75, 2015/1, デモ有

prime[31] - Unity plugin documentation
 $70, 2015/1

Asset Store - iPlayer
 $30, 2013/4

hayaq/GLMovieTexture
 無料, 2013/1

Mobile Movie Texture

UnityEditor上では普通に動く
動画はOgg Theora形式でないといけないのでMP4をここで変換 Converting your file
iOS向けにビルドする際に"Plugins colliding with each other"エラーが出たのでAssets/Plugins/x86を削除(x86とx86_64フォルダの中身が被ってた中身が被ってた)
フォーラムを見るとUnity5.0では動いていない
→ Unity Pro 4.6.3f1 でExampleシーンを、Build Settings -> Player Settings -> Other Settings -> Graphics API をAutomaticからOpenGL ES 3.0にしたところiPhoneで動作した。しかし解像度を低くしないとかなりフレームレートが落ちる。フレームレート下がるのはMobileMovieTextureの部分のみなのでスペック不足が直接の原因ではない?

自作の動画を入れたときにiPhone上での再生が止まった
WARNING: no native support for texture format 5, converting to 4!
→ これはMovieTextureサンプルの動画でもでて、その動画は実機で再生できるので原因ではなさそう
 → Diveを外したら出なくなったのでおそらくそれ系
 →

memo

Movie texture in Unity - Metaio Helpdesk
MetaioのUnity SDKにMovieTexture相当の機能が入っているらしいがどこから入手できるのか不明。
Metaio SDKには入っていなかった

Vuforiaに入っているという情報がある
Video Texture and Android GearVR | Unity Community
サンプルプロジェクトのリンクが途切れていたのでこちらからダウンロード Vuforia Developer Portal
※MovieTexture入っているとされるサンプルがない

Unity でiOS向けビルドをする際にLinkerエラー - 備忘録

39
41
4

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
39
41