# Use checks in shipping build, without modifying .Target.cs file

**URL:** <https://forums.unrealengine.com/t/use-checks-in-shipping-build-without-modifying-target-cs-file/493615>\
**Category:** C++\
**Tags:** build, check, unreal-engine, Shipping, UE4-26, question\
**Created:** [February 3, 2022, 4:24am UTC](https://forums.unrealengine.com/t/use-checks-in-shipping-build-without-modifying-target-cs-file/493615 "2022-02-03T04:24:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bo0olean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bo0olean/32/464984_2.png) [@bo0olean](https://forums.unrealengine.com/u/bo0olean)\
**Post date:** [February 3, 2022, 4:24am UTC](https://forums.unrealengine.com/t/use-checks-in-shipping-build-without-modifying-target-cs-file/493615/1 "2022-02-03T04:24:59Z")

</div>

Hello,

I want to enable check() in shipping builds. The current way to do this is by modifying project’s Target.cs file like

```auto
//Project.Target.cs
if (Configuration == UnrealTargetConfiguration.Shipping)
{
    BuildEnvironment = TargetBuildEnvironment.Unique;
    bUseChecksInShipping = true;
}

```

The above method requires us to have source code of unreal engine for build, because of the `BuildEnvironment=TargetBuildEnvironment.Unique` setting. But, I do not want to do it this way, because having source code to build project as a requirement is bad for my project. Is there another way to use check() in shipping builds?

Cheers!

---

<div class="post-metadata">

**Author:** ![overreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@overreal](https://forums.unrealengine.com/u/overreal)\
**Post date:** [October 22, 2022, 4:01pm UTC](https://forums.unrealengine.com/t/use-checks-in-shipping-build-without-modifying-target-cs-file/493615/2 "2022-10-22T16:01:29Z")

</div>

I have similar question. Did u find an answer?

---

<div class="post-metadata">

**Author:** ![Omorote\_Hideoshi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Omorote\_Hideoshi](https://forums.unrealengine.com/u/Omorote_Hideoshi)\
**Post date:** [November 19, 2023, 7:46am UTC](https://forums.unrealengine.com/t/use-checks-in-shipping-build-without-modifying-target-cs-file/493615/3 "2023-11-19T07:46:44Z")

</div>

#ifdef UE\_BUILD\_DEBUGGAME  
return true;  
#endif

#if UE\_BUILD\_DEVELOPMENT || UE\_BUILD\_DEBUG  
return true;  
#else  
return false;  
#endif
