Visual Studio 2019の起動が遅い問題について

本文:
始めてUEを触ります。UE本体とVS2019をインストールし、適当にトップダウンのC++プロジェクトを作成。

既にあるクラスファイル「TopDownGameMode.cpp」をダブルクリックしたり、自分で適当なクラスファイルを開くと、
ウィンドウズのコマンドプロンプトが起動時、UEの右下に「Visual Studioのロード中」と表示されるのですが、実際にVSが開かれるまで5分程度掛かります。

UE経由でなくVSでプロジェクトを開く場合、例えばunityのプロジェクトを開く場合VSの起動からプロジェクトの起動まで時間が掛かりますが、せいぜい30秒です。

コマンドプロンプトが勝手に起動するのもうざいですが、VSの起動だけでここまで時間が掛かるのは致命的で、意味が分かりません。
VSの起動時、ライブ コーディングのエラーが出たため、これはオフにしましたが、他は特に設定を変更していません。
このエラー文章はこの投稿の最下部に張りますが、オフにしても問題が解決しないため、直接関係ない可能性が高いです。

UEからでなくVSを起動し、UEのプロジェクトファイルを読み込み、UEのクラスファイルをダブルクリックなどを行えば、VSでクラスファイルが1秒も経たず表示されます。
従ってUEに何か不具合がある気がしてなりません。

どうすればUEからVSを一般的な速度で起動できるでしょうか。

実行環境:
Windows 10
Unreal Engine 5.0.3
Visual Studio 2019

参考にしたURL:

グーグル翻訳日本語

チェックファイル トップダウンキャラクタ.h あなたは行方不明です: #include “TopDownCharacter.generated.h”

“.generated.h” ファイルは、プロジェクトの生成時にアンリアル ビルド ツールによって作成されます。私はライブコーディングがこれを修正できるとは思わない。 プロジェクトを閉じてプロジェクトファイルを右クリックし、[Visual Studioプロジェクトファイルの生成]を選択します。これにより、.generated ファイルがコンパイルされます

ビジュアルスタジオ2022にアップグレードしてみてください

私はライブコーディングをオフにします。それは非常に限られています

English

Check file TopDownCharacter.h

You are missing: #include “TopDownCharacter.generated.h”

The “.generated.h” file is created by the unreal build tool when generating the project. I don’t think live coding can fix this.
Try closing project and right click project file and select “Generate Visual Studio Project files”. This will compile .generated files

Try upgrading to visual studio 2022

I turn off live coding. It is very limited

Thank you for your response.

Well, I did not understand what you meant about “TopDownCharacter.h” and “TopDownCharacter.generated.h”.
The project has “TopDownCharacter.h” and “TopDownCharacter.cpp”. I have not changed them.

I ran “Generate Visual Studio Project files” but that didn’t solve it (of course I restarted the project!).

Oh, I have Visual Studio 2019 and Visual Studio 2022 installed on my windows.
But I can’t figure out how to get VS to 2019 to boot from UE.

Live Coating sucks so I keep it turned off.

Translated with DeepL Translate: The world's most accurate translator (free version)

The compiler showed an error in TopDownCharacter.h (header file) that it was missing “TopDownCharacter.generated.h”

Could you post the beginning of the file TopDownCharacter.h down to the UClass definition?

Unreal will always use 2022 if installed to generate the project.


コンパイラがTopDownCharacter.h(ヘッダファイル)に "TopDownCharacter.generated.h "がないとのエラーを表示したのです。

TopDownCharacter.hのファイルの冒頭からUClassの定義までを掲載していただけないでしょうか。

アンリアルは、プロジェクトを生成するためにインストールされている場合、常に2022を使用します。

I see." TopDownCharacter" how about this screenshot?

Also, by changing the file that opens in c++ in Windows to VC2022, I was able to open VS2022 from UE, but it did not solve the slow startup problem.

Does the project compile in visual studio or does it show an error?

Visual Studioでプロジェクトはコンパイルされますか、それともエラーが表示されますか?

コンパイルエラーの原因はこれです
直しましょう

ihoを削除する :slight_smile:
このファイルは次のように始まります。
include
または
// コメント文

Delete iho :slight_smile:
this unreal file should start with:
include
or
// comment text

No build or compile options are shown in VS.
I think this is because VS does not recognize the UE project.

なるほど。これを修正しました。

I see. I have corrected this.

まだ解決できていないのでアドバイスいただけると助かります~

Are you opening visual studio with the .sln file of the project?

No, I double-click on the class file from the UE to open it.

こちらまだ解決しておらず、非常に困っているのでアドバイスを頂ければ幸いです。