主なコンテンツ

〜主なコンテンツ〜

1. Unityで製作したゲームと製作Tips
  1. 三月精チャレンジ(東方Project二次創作)
    1. 作り方
  2. 英語学習2D(オリジナルスマホアプリ)
2. UE4
3. ゲームアプリ見学
4. Bitbucket & SourceTreeでの一連の流れ
  1. 前半
  2. 後半
5. Tips
  1. UnityのTips
  5. SQL文のTips
  6. Final IK
  7. GearVR+Unity

2022年11月5日土曜日

Error Unable to build while Live Coding is active. Exit the editor and game, or press Ctrl+Alt+F11 if iterating on code in the editor or game

UE5からライブコーディングがデフォルトで有効になっている。これが有効なときVSでコンパイルできない。オプションで一時的に無効にして、コンパイルするのが良さそう。

Hi Paper Crane,

Unreal Engine 5 uses Live Coding by default. Things work a little bit differently in Unreal Engine 5 now.


Clicking the Hot Reload button will start live coding in the engine. This is more reliable than Hot Reloading was in Unreal Engine 4. You can make changes to your code in your code editor (Visual Studio), in the .h or .cpp files,  and clicking the Hot Reload button in the editor will initiate Live Coding. You can then see your code changes reflected in the editor. For this to work, you must save your changes in the code editor. Clicking Save All in Visual Studio will do the trick.


It is important to note that Live Coding does not actually compile your Visual Studio project. It just performs the Hot Reload and shows you the changes you made to your code. So the next time you close the Unreal editor, if you never compiled in Visual Studio, those changes will not be visible next time you open the Unreal editor. For this reason, it is recommended that you do an actual compile in Visual Studio each time you close the editor.


Live Coding is a tool designed for you to be able to see your code changes more quickly. It is not an alternative to compiling. To make sure the VS project is compiled, compile in VS.


You cannot compile in VS with the editor open when Live Coding is active. You can disable Live Coding by clicking the compile options icon and unchecking Live Coding Enabled.


I recommend using Live Coding to quickly see your code changes, but periodically close the editor and do a "hard compile" from Visual Studio (close the editor and compile your code in VS).

Stephen


0 件のコメント:

コメントを投稿