UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
EngineDefines.h File Reference
#include "HAL/Platform.h"

Go to the source code of this file.

Macros

#define UE_ENABLE_DEBUG_DRAWING   (!(UE_BUILD_SHIPPING || UE_BUILD_TEST) || WITH_EDITOR)
 
#define ENABLE_VISUAL_LOG   (PLATFORM_DESKTOP && !NO_LOGGING && UE_ENABLE_DEBUG_DRAWING)
 
#define NUM_INDIRECT_LIGHTING_SH_COEFFICIENTS   9
 
#define NUM_ATMOSPHERE_LIGHTS   2
 
#define WITH_STATE_STREAM_ACTOR   0
 
#define UE_OLD_WORLD_MAX   2097152.0 /* UE4 maximum world size */
 
#define UE_OLD_HALF_WORLD_MAX   (UE_OLD_WORLD_MAX * 0.5) /* UE4 half maximum world size */
 
#define UE_OLD_HALF_WORLD_MAX1   (UE_OLD_HALF_WORLD_MAX - 1) /* UE4 half maximum world size minus one */
 
#define UE_LARGE_WORLD_MAX   8796093022208.0 /* LWC maximum world size, Approx 87,960,930.2 km across, or 43,980,465.1 km from the origin */
 
#define UE_LARGE_HALF_WORLD_MAX   (UE_LARGE_WORLD_MAX * 0.5) /* LWC half maximum world size */
 
#define UE_LARGE_HALF_WORLD_MAX1   (UE_LARGE_HALF_WORLD_MAX - 1) /* LWC half maximum world size minus one */
 
#define UE_USE_UE4_WORLD_MAX   0
 
#define WORLD_MAX   (UE_LARGE_WORLD_MAX)
 
#define HALF_WORLD_MAX   (WORLD_MAX * 0.5) /* Half the maximum size of the world */
 
#define HALF_WORLD_MAX1   (HALF_WORLD_MAX - 1.0) /* Half the maximum size of the world minus one */
 
#define UE_FLOAT_HUGE_DISTANCE   1048576.0 /* Maximum distance representable by a float whilst maintaining precision of at least 0.0625 units (1/16th of a cm) - Precision issues may occur for positions/distances represented by float types that exceed this value */
 
#define UE_DOUBLE_HUGE_DISTANCE   562949953421312.0 /* Maximum distance representable by a double whilst maintaining precision of at least 0.0625 units (1/16th of a cm) - Precision issues may occur for positions/distances represented by double types that exceed this value */
 
#define MIN_ORTHOZOOM   1.0 /* 2D ortho viewport zoom >= MIN_ORTHOZOOM */
 
#define MAX_ORTHOZOOM   1e25 /* 2D ortho viewport zoom <= MAX_ORTHOZOOM */
 
#define DEFAULT_ORTHOZOOM   10000.0 /* Default 2D ortho viewport zoom */
 
#define DEFAULT_ORTHOWIDTH   1536.0f /* Default 2D ortho viewport width */
 
#define DEFAULT_ORTHONEARPLANE   -DEFAULT_ORTHOWIDTH/2.0f /* Default 2D ortho viewport nearplane */
 
#define DEFAULT_ORTHOFARPLANE   UE_OLD_WORLD_MAX /* Default 2D ortho viewport farplane */
 
#define SDPG_NumBits   3
 

Macro Definition Documentation

◆ DEFAULT_ORTHOFARPLANE

#define DEFAULT_ORTHOFARPLANE   UE_OLD_WORLD_MAX /* Default 2D ortho viewport farplane */

◆ DEFAULT_ORTHONEARPLANE

#define DEFAULT_ORTHONEARPLANE   -DEFAULT_ORTHOWIDTH/2.0f /* Default 2D ortho viewport nearplane */

◆ DEFAULT_ORTHOWIDTH

#define DEFAULT_ORTHOWIDTH   1536.0f /* Default 2D ortho viewport width */

◆ DEFAULT_ORTHOZOOM

#define DEFAULT_ORTHOZOOM   10000.0 /* Default 2D ortho viewport zoom */

◆ ENABLE_VISUAL_LOG

#define ENABLE_VISUAL_LOG   (PLATFORM_DESKTOP && !NO_LOGGING && UE_ENABLE_DEBUG_DRAWING)

◆ HALF_WORLD_MAX

#define HALF_WORLD_MAX   (WORLD_MAX * 0.5) /* Half the maximum size of the world */

◆ HALF_WORLD_MAX1

#define HALF_WORLD_MAX1   (HALF_WORLD_MAX - 1.0) /* Half the maximum size of the world minus one */

◆ MAX_ORTHOZOOM

#define MAX_ORTHOZOOM   1e25 /* 2D ortho viewport zoom <= MAX_ORTHOZOOM */

◆ MIN_ORTHOZOOM

#define MIN_ORTHOZOOM   1.0 /* 2D ortho viewport zoom >= MIN_ORTHOZOOM */

◆ NUM_ATMOSPHERE_LIGHTS

#define NUM_ATMOSPHERE_LIGHTS   2

◆ NUM_INDIRECT_LIGHTING_SH_COEFFICIENTS

#define NUM_INDIRECT_LIGHTING_SH_COEFFICIENTS   9

◆ SDPG_NumBits

#define SDPG_NumBits   3

bits needed to store DPG value

◆ UE_DOUBLE_HUGE_DISTANCE

#define UE_DOUBLE_HUGE_DISTANCE   562949953421312.0 /* Maximum distance representable by a double whilst maintaining precision of at least 0.0625 units (1/16th of a cm) - Precision issues may occur for positions/distances represented by double types that exceed this value */

◆ UE_ENABLE_DEBUG_DRAWING

#define UE_ENABLE_DEBUG_DRAWING   (!(UE_BUILD_SHIPPING || UE_BUILD_TEST) || WITH_EDITOR)

◆ UE_FLOAT_HUGE_DISTANCE

#define UE_FLOAT_HUGE_DISTANCE   1048576.0 /* Maximum distance representable by a float whilst maintaining precision of at least 0.0625 units (1/16th of a cm) - Precision issues may occur for positions/distances represented by float types that exceed this value */

◆ UE_LARGE_HALF_WORLD_MAX

#define UE_LARGE_HALF_WORLD_MAX   (UE_LARGE_WORLD_MAX * 0.5) /* LWC half maximum world size */

◆ UE_LARGE_HALF_WORLD_MAX1

#define UE_LARGE_HALF_WORLD_MAX1   (UE_LARGE_HALF_WORLD_MAX - 1) /* LWC half maximum world size minus one */

◆ UE_LARGE_WORLD_MAX

#define UE_LARGE_WORLD_MAX   8796093022208.0 /* LWC maximum world size, Approx 87,960,930.2 km across, or 43,980,465.1 km from the origin */

◆ UE_OLD_HALF_WORLD_MAX

#define UE_OLD_HALF_WORLD_MAX   (UE_OLD_WORLD_MAX * 0.5) /* UE4 half maximum world size */

◆ UE_OLD_HALF_WORLD_MAX1

#define UE_OLD_HALF_WORLD_MAX1   (UE_OLD_HALF_WORLD_MAX - 1) /* UE4 half maximum world size minus one */

◆ UE_OLD_WORLD_MAX

#define UE_OLD_WORLD_MAX   2097152.0 /* UE4 maximum world size */

◆ UE_USE_UE4_WORLD_MAX

#define UE_USE_UE4_WORLD_MAX   0

◆ WITH_STATE_STREAM_ACTOR

#define WITH_STATE_STREAM_ACTOR   0

◆ WORLD_MAX

#define WORLD_MAX   (UE_LARGE_WORLD_MAX)