LoginSignup
2
1

More than 5 years have passed since last update.

Unreal Engine 4メモ:TMapをネスト出来るようにする

Last updated at Posted at 2018-01-18

どうもUE4のTMapはネスト出来ません。

やりたかった事
TMap<FString, TMap<FString, FTimespan>> Records;
エラー
error : Nested containers are not supported.

なので構造体の利用で工夫する・・・。

改良
USTRUCT()
struct AT_API FData
{
    GENERATED_BODY()

    UPROPERTY()
    TMap<FString, FTimespan> BestTime; // この部分をネスト
};

TMap<FString, FData> Records;

2
1
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
2
1