{"id":4331,"date":"2026-04-08T20:21:22","date_gmt":"2026-04-08T18:21:22","guid":{"rendered":"https:\/\/myrdil.com\/?p=4331"},"modified":"2026-04-08T20:21:22","modified_gmt":"2026-04-08T18:21:22","slug":"desactiver-le-debugger-console-et-la-touche","status":"publish","type":"post","link":"https:\/\/myrdil.com\/?p=4331","title":{"rendered":"D\u00e9sactiver le debugger (console) et la touche &#8216;"},"content":{"rendered":"<pre class=\"codeblock-buttons\"><code class=\"lang-auto\">#include &lt;GameplayDebugger.h&gt;\r\n#include &lt;GameplayDebuggerPlayerManager.h&gt;\r\n\r\nvoid AMyPlayerController::BeginPlay()\r\n{\r\n\tSuper::BeginPlay();\r\n\r\n\t#if WITH_GAMEPLAY_DEBUGGER\r\n\tGetWorld()-&gt;GetTimerManager().SetTimerForNextTick(this, &amp;AMyPlayerController::DisableGameplayDebugger);\r\n#endif\r\n}\r\n\r\nvoid AMyPlayerController::DisableGameplayDebugger()\r\n{\r\n\/\/ This needs to wait until after AGameplayDebuggerPlayerManager has finished setting up, which can take multiple frames on clients.\r\n#if WITH_GAMEPLAY_DEBUGGER\r\n\tUC0GameInstance* GI = UC0Statics::GetGameInstance();\r\n\t\/\/ Disabled in the main menu, and for clients.\r\n\tif (IGameplayDebugger::IsAvailable())\r\n\t{\t\t\r\n\t\tAGameplayDebuggerPlayerManager&amp; Manager = AGameplayDebuggerPlayerManager::GetCurrent(GetWorld());\r\n\t\tif (UInputComponent* ManagerInput = Manager.GetInputComponent(*this))\r\n\t\t{\r\n\t\t\tPopInputComponent(ManagerInput);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t\/\/ Try again next tick until ready\r\n\t\t\tGetWorld()-&gt;GetTimerManager().SetTimerForNextTick(this, &amp;AMyPlayerController::DisableGameplayDebugger);\r\n\t\t}\r\n\t}\r\n#endif\r\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>#include &lt;GameplayDebugger.h&gt; #include &lt;GameplayDebuggerPlayerManager.h&gt; void AMyPlayerController::BeginPlay() { Super::BeginPlay(); #if WITH_GAMEPLAY_DEBUGGER GetWorld()-&gt;GetTimerManager().SetTimerForNextTick(this, &amp;AMyPlayerController::DisableGameplayDebugger); #endif } void AMyPlayerController::DisableGameplayDebugger() { \/\/ This needs to wait until after AGameplayDebuggerPlayerManager has finished setting up, which can take multiple frames on clients. #if WITH_GAMEPLAY_DEBUGGER UC0GameInstance* GI &hellip; <a href=\"https:\/\/myrdil.com\/?p=4331\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-4331","post","type-post","status-publish","format-standard","hentry","category-technical"],"_links":{"self":[{"href":"https:\/\/myrdil.com\/index.php?rest_route=\/wp\/v2\/posts\/4331","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myrdil.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myrdil.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myrdil.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myrdil.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4331"}],"version-history":[{"count":1,"href":"https:\/\/myrdil.com\/index.php?rest_route=\/wp\/v2\/posts\/4331\/revisions"}],"predecessor-version":[{"id":4332,"href":"https:\/\/myrdil.com\/index.php?rest_route=\/wp\/v2\/posts\/4331\/revisions\/4332"}],"wp:attachment":[{"href":"https:\/\/myrdil.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myrdil.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myrdil.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}