【Unity】MagicaClothのエラー

エラー内容

エラー内容は以下の通り

Assets\MagicaCloth\Scripts\Core\Cloth\BaseCloth.cs(5,13): error CS0234: The type or namespace name 'Mathematics' does not exist in the namespace 'Unity' (are you missing an assembly reference?)
Assets\MagicaCloth\Scripts\Core\Cloth\BaseCloth.cs(311,28): error CS0246: The type or namespace name 'float3' could not be found (are you missing a using directive or an assembly reference?)
Assets\MagicaCloth\Scripts\Core\Physics\Constraint\VolumeConstraint.cs(38,20): error CS0246: The type or namespace name 'float3x3' could not be found (are you missing a using directive or an assembly reference?)
Assets\MagicaCloth\Scripts\Core\Cloth\BaseCloth.cs(318,28): error CS0246: The type or namespace name 'quaternion' could not be found (are you missing a using directive or an assembly reference?)
Assets\MagicaCloth\Scripts\Core\Physics\Constraint\ColliderExtrusionConstraint.cs(70,10): error CS0246: The type or namespace name 'BurstCompile' could not be found (are you missing a using directive or an assembly reference?)
Assets\MagicaCloth\Scripts\Core\Physics\Constraint\ColliderExtrusionConstraint.cs(70,10): error CS0246: The type or namespace name 'BurstCompileAttribute' could not be found (are you missing a using directive or an assembly reference?)
Assets\MagicaCloth\Scripts\Core\Utility\NativeCollection\FixedNativeListWithCount.cs(21,9): error CS0246: The type or namespace name 'NativeList<>' could not be found (are you missing a using directive or an assembly reference?)
Assets\MagicaCloth\Scripts\Core\Utility\NativeCollection\ExNativeHashMap.cs(175,16): error CS0246: The type or namespace name 'NativeHashMap<,>' could not be found (are you missing a using directive or an assembly reference?)
Assets\MagicaCloth\Scripts\Core\Physics\Worker\AdjustRotationWorker.cs(240,20): error CS0246: The type or namespace name 'NativeMultiHashMap<,>' could not be found (are you missing a using directive or an assembly reference?)
Assets\MagicaCloth\Scripts\Core\Physics\Worker\MeshParticleWorker.cs(146,21): error CS0246: The type or namespace name 'NativeMultiHashMapIterator<>' could not be found (are you missing a using directive or an assembly reference?)

解決方法

Assets > MagicaCloth > MagicaClothをInspectorで見ると必要そうなAssetがNoneになってました。
これらをPackageManagerでimportすると解決しました。

importして画像のようにNoneじゃなくなったらエラーが消えます。

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です