5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

UE4.7でテキストファイルを読み込んでログに出力

Last updated at Posted at 2015-04-12

ゲームディレクトリはFPaths::GameDir()で取得するようです。

ログを見るには、「ウィンドウ」→「デベロッパーツール」→「出力ログ」です。

FString dir = FPaths::GameDir();
UE_LOG(LogTemp, Warning, TEXT("current directory: %s"), *dir);

FString filename = dir + "t.txt";
FString s;
FFileHelper::LoadFileToString(s, *filename);
UE_LOG(LogTemp, Warning, TEXT("transform: %s"), *s);
5
5
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
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?