RealDocs

UKismetSystemLibrary::IsPackagedForDistribution

function Engine Blueprint Since 4.0
#include "Kismet/KismetSystemLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintPure

Description

Returns whether this is a build packaged for distribution (i.e. a Shipping-style distribution build), as opposed to a development or debug build.

Caveats & Gotchas

  • This is not the same as checking the build configuration (Debug/Development/Shipping) directly — it reflects the "For Distribution" packaging flag set when cooking, which can be true even for some non-Shipping cooked builds.
  • Marked BlueprintThreadSafe, so it can safely be called from Blueprint code running off the game thread.

Signature

static bool IsPackagedForDistribution()

Return Type

bool

Example

Disable debug overlays in distribution builds C++
if (!UKismetSystemLibrary::IsPackagedForDistribution())
{
    DrawDebugOverlay();
}

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.