NullReferenceException at TMPro.TMP_Settings.get_defaultStyleSheet

トラブルシューティング

Unity2019.3.14f1 TMPro2.0.1 Android

発生頻度は低いですが、なぜかTestmeshProエラーが発生することがあります。

HELP! TextMesh Pro not working for Android after upgrading from 2018.2 to 2018.4 (NullReferenceException at TMPro.TMP_Settings.get_defaultStyleSheet() ) - Unity Answers
Unity is the ultimate game development platform. Use Unity to build high-quality 3D and 2D games, deploy them across mobile, desktop, VR/AR, consoles or the Web...

ググってもこの情報くらいしかあてになるものがありません。

スポンサーリンク

対策

UnityAnswerにある通りAAB単体パッケージにしたところ、エラーの発生がやみました。

しかしAABはgoogleplayにおいて150mbまでという厳しい制限があります。本当はこのバグ直してほしいんですが一年以上放置されているので直せないのでしょう。

商業モバイルはAssetbundleダウンロード式になっているし、ハイパーカジュアルはそのもそも低容量なのでこのバグが表面化することがないのでしょう。