LoginSignup
0
0

More than 3 years have passed since last update.

Unreal Engine 4メモ:ビルドコンフィギュレーションごとにコンパイルスイッチを書きたい

Last updated at Posted at 2021-03-03

ビルドコンフィギュレーションに紐づくdefine定義

それぞれ下記の定義が存在する。ビルドコンフィギュレーションと一致する。

UE_BUILD_DEBUG
UE_BUILD_DEBUGGAME
UE_BUILD_DEVELOPMENT
UE_BUILD_SHIPPING
UE_BUILD_TEST

コンソールコマンド、デバッグ機能を入れた時のコンパイルスイッチは下記のようにすると良い。
また、definedを使ってはいけない。常に定義は存在し、内部で01を切り替えているので。

#if !UE_BUILD_SHIPPING
#endif

参照

ビルド コンフィギュレーションのリファレンス
Forums:How can I exclude debug code in shipped build ?

0
0
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
0
0