# Disabling Lumen Through Code

**URL:** <https://forums.unrealengine.com/t/disabling-lumen-through-code/674951>\
**Category:** Pipeline & Plugins\
**Tags:** unreal-engine, UE5-0, Plugins, question\
**Created:** [October 22, 2022, 6:18pm UTC](https://forums.unrealengine.com/t/disabling-lumen-through-code/674951 "2022-10-22T18:18:19Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [October 22, 2022, 8:06pm UTC](https://forums.unrealengine.com/t/disabling-lumen-through-code/674951/4 "2022-10-22T20:06:34Z")

</div>

> [@How do i run a Console Command in C++](https://forums.unrealengine.com/t/how-do-i-run-a-console-command-in-c/317988/2):
>
> Exec() takes in parameter a const TCHAR\*. But, TEXT(SomeString) does not perform FString conversion to const TCHAR\*. To do this, you have to use the \* operator. So, try this instead: GetWorld()-\>Exec(GetWorld(), \*Final); TEXT(“some text”) should only be used to make a const TCHAR\* for litterals (i.e. defining a string with quotes). Final is a FString, not a litteral. At a lower level, TEXT() adds a L before the litteral, to tell the compiler that the string is in wide char, as described in [thi…](http://en.cppreference.com/w/cpp/language/string_literal)

---

_[View the full topic](https://forums.unrealengine.com/t/disabling-lumen-through-code/674951)._
