質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Unity

Unityは、Unity Technologiesが開発・販売している、IDEを内蔵するゲームエンジンです。主にC#を用いたプログラミングでコンテンツの開発が可能です。

Q&A

解決済

2回答

5152閲覧

Unityでfungusをインポートした際エラーが出る

tomakun

総合スコア4

Unity

Unityは、Unity Technologiesが開発・販売している、IDEを内蔵するゲームエンジンです。主にC#を用いたプログラミングでコンテンツの開発が可能です。

0グッド

0クリップ

投稿2021/07/21 06:50

前提・実現したいこと

Unityでfungusをインポートした際のエラーの解決

発生している問題・エラーメッセージ

インポートした時点でこのようなスクリプトエラーが出ている状態です。

Assets\Fungus\Scripts\Editor\LuaScriptedImporter.cs(12,37): error CS0246: The type or namespace name 'ScriptedImporter' could not be found (are you missing a using directive or an assembly reference?)

Assets\Fungus\Scripts\Editor\LuaScriptedImporter.cs(11,6): error CS0246: The type or namespace name 'ScriptedImporterAttribute' could not be found (are you missing a using directive or an assembly reference?)

Assets\Fungus\Scripts\Editor\LuaScriptedImporter.cs(11,6): error CS0246: The type or namespace name 'ScriptedImporter' could not be found (are you missing a using directive or an assembly reference?)

Assets\Fungus\Scripts\Editor\LuaScriptedImporter.cs(14,41): error CS0246: The type or namespace name 'AssetImportContext' could not be found (are you missing a using directive or an assembly reference?)

該当のソースコード

試したこと

補足情報(FW/ツールのバージョンなど)

Unity2020.3.12.f1を使用しています。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

私もFungusをインポートしたところ、全く同じエラーに遭遇しました。(Unityバージョン:2020.3.22f1)
私の場合、エラー箇所のファイルに

using UnityEditor.AssetImporters;

の一文を加えて解決しました。下のリンク先を参考にしました。

Can't build a project that contains ScriptedImporter

投稿2021/12/12 12:16

tatetuke

総合スコア2

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

0

自己解決

Unityのバージョンを一度下げてもう一度上げなおしたところなぜか解決しました。
謎ですがやってみる価値はあるかもしれないです。

投稿2021/07/26 14:50

tomakun

総合スコア4

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問