5
3

More than 3 years have passed since last update.

UE4プロジェクトに日本語名のファイルが含まれてSystem.ArgumentExceptionエラーになる時の対応方法

Posted at

発生した現象

gitから取得したUE4.25.1のプロジェクト起動時のビルドで以下のようなエラーが発生した。
プロジェクトのContent/Hoge/には日本語名のuassetファイルが含まれている。

?n???h???????Ă??Ȃ????O: System.ArgumentException: Path fragment '"Content/Hoge/\351\203\250\347\224\250.uasset"' contains invalid directory separators.

対応方法

System.ArgumentException: Path fragment '"Content/\351\237\263\351\242\221/Cheetah\302\240Mobile_Games_-_...\265.uasset"' contains invalid directory separators. - UE4 AnswerHubを参照

コマンドプロンプトで以下を実行する。
※ UE_4.25\Engine\Source\Programs\UnrealBuildTool\System\SourceFileWorkingSet.csを確認するとUnrealBuildToolで使うgitコマンドはPATHで設定されているもののようだった。

git config --global core.quotepath false
5
3
0

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
5
3