投稿

9月, 2022の投稿を表示しています

BlueprintからC++のメンバーをアクセスするためのマクロ

TestClass.h UFUNCTION(BlueprintCallable) void TestDo(); UPROPERTY(BLueprintReadWrite) float TestValue; TestClass.cpp void TestClass::TestDo() {     // ここが処理される } こうすることにより、Blueprintよりアクセス可能となる。

Unreal engine: A fatal error occurred. The required library hostfxr.dll could not be found.

イメージ
Unreal engine 5でC++のプロジェクトを作ろうとして以下のエラーが表示されたら.Netのコンポーネントがインストールされていないのが原因である。  An error occurred while trying to generate project files. Running C:/Program Files/Epic Games/UE_5.0/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe  -projectfiles -project="C:/Users/[User name]/Documents/Unreal Projects/MyProject/MyProject.uproject" -game -rocket -progress A fatal error occurred. The required library hostfxr.dll could not be found. If this is a self-contained application, that library should exist in [C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\DotNET\UnrealBuildTool\]. If this is a framework-dependent application, install the runtime in the global location [C:\Program Files\dotnet] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x64\InstallLocation]. The .NET Core runtime can be found at:   - https://aka.ms/dotnet-core-applaunch?missing_runtime=true&am

Unreal Engine 5 BluePrints アライメントの方法

イメージ
 各のノードの接続部分、 ・接続を直線化を選ぶとGrid単位のスナップで水平線にならなかった接続先のノードラインを水平にできる。 英語版ではStraghten Connection...と表示される。 サブメニューにはすべて接続を直線に整える(これが直線化の意味)のと接続先を個別に直線に整えることが可能な項目が表示される。

BlueprintとGUI、C++とCLI

イメージ
Blueprintで書いているとテキストのほうが効率的では?と思うようになった。昔GUIで操作するよりCLIで操作したほうが簡単で効率が上がると気がついたときと似ているか、BPは本当にシンプルなときだけかな。 以下はリカーシブルコール有のBP  今度やってみるけどC++だったら数行で書ける気がする。