バーチャル3Dクリエイター神部まゆみです(*^_^*)
この記事はerror CS0234: The type or namespace name ‘Mathematics’ does not exist~っていうエラーが出たので、それについての記事です。
動作確認したバージョンは Unity 6000.0.32 です。
Assets\uLipSync\Runtime\Core\Algorithm.cs(2,13): error CS0234: The type or namespace name ‘Mathematics’ does not exist in the namespace ‘Unity’ (are you missing an assembly reference?) というエラーが出た
他にもBurstCompileがなんとかって書いてありますね。

Assets\uLipSync\Runtime\Core\Algorithm.cs(2,13): error CS0234: The type or namespace name ‘Mathematics’ does not exist in the namespace ‘Unity’ (are you missing an assembly reference?)
CS0234エラーは以前UniVRM入れたときにも出たな…。
EVMC4UのプロジェクトにuLipSyncを入れようとしたら発生した
EVMC4UっていうUnity内でモーションキャプチャーを動かすアセットと、uLipSyncっていう口パクを実装するアセットを併用させてみようと思ったらエラーが出ました。
最初にEVMC4Uが入っているプロジェクトにuLipSyncを入れたんだけど、相性が良くなかったとか?
パッケージマネージャーでMathematicsを入れればいいっぽい?
検索したらいくつかページが出たけど、パッケージマネージャーでMathematicsとかいうのを入れると良いっぽい?
Error when importing mathematics – Questions & Answers – Unity Discussions
【Unity】Mathematics’ does not exist Odin込みのパッケージをインポートで : アプリ開発エリの備忘録
あるべきスクリプトがないみたいなエラーだからこれで直るか?
Mathematicsをいれる
MathematicsはUnityレジストリ内で math と検索したら出ました。
これをインストールする。


Mathematicsのエラーは消えたけどBurstCompileなんとかってエラーもある
Mathematicsを入れたらMathematics関連のエラーは消えたけど、
BurstCompileAttribute
BurstCompile
の二つがないっていうエラーも出てますΣ(゚Д゚)


Assets\uLipSync\Runtime\Core\Algorithm.cs(9,2): error CS0246: The type or namespace name ‘BurstCompileAttribute’ could not be found (are you missing a using directive or an assembly reference?)
Assets\uLipSync\Runtime\Core\Algorithm.cs(9,2): error CS0246: The type or namespace name ‘BurstCompile’ could not be found (are you missing a using directive or an assembly reference?)
これもパッケージマネージャーで入れれば解決するかな?
パッケージマネージャーでBurstを入れたら解決した
検索したらUnityレジストリにBurstってやつがあったからこれかな。
多分これにBurstCompileとBurstCompileAttributeが入っているのかな?


Burstをインストールしたらエラー消えました!


その後ちゃんとEVMC4UとuLipSyncを併用して動かせた
エラーが消えただけで動かなかったらイヤだなと思ったけどちゃんと動きました。
解決法は合ってたみたいで良かったです。
おわりに
案外簡単に解決してよかった。
CS0246エラーはUniVRMを入れた時も出たけど、インポート時のエラーなので入れたやつを削除すれば一応エラー消えるんですよね。
まぁパッケージマネージャーからインストールするだけで解決して良かったです。
また何かあれば追記します(*^_^*)