11
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

UniVRMをAndroid向けにビルドするとMtoonで躓く現象の回避方法

Last updated at Posted at 2019-10-25

環境

macOS 10.14.6
Unity 2018.4.9f1
UniVRM 0.53.0

起こったこと

UniVRMを含むプロジェクトをAndroid向けにビルドすると、次のようなエラーが発生し、ビルドに失敗した。

Shader error in 'VRM/MToon': invalid subscript '_LightCoord' at Assets/VRM/MToon/MToon/Resources/Shaders/MToonCore.cginc(163) (on gles)

類似のISSUEを探すと↓が見つかるが、この方法では回避できず。
MToon issues on Unity Android project · Issue #238 · vrm-c/UniVRM · GitHub

回避方法

どうも次のような原因でビルドに失敗しているらしい。

試しにFile>BuildSettings>PlayerSettings>Android>OtherSettingsでGraphicsAPIをOpenGLES3のみにするとビルドが通った。
image.png

11
2
1

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
11
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?