# How can i change my Crouching mode from toggle to hold with a settings menu

**URL:** <https://forums.unrealengine.com/t/how-can-i-change-my-crouching-mode-from-toggle-to-hold-with-a-settings-menu/1730097>\
**Category:** Programming & Scripting\
**Tags:** crouch, settings, unreal-engine, question\
**Created:** [March 4, 2024, 6:38pm UTC](https://forums.unrealengine.com/t/how-can-i-change-my-crouching-mode-from-toggle-to-hold-with-a-settings-menu/1730097 "2024-03-04T18:38:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eliaspro10\_YT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Eliaspro10\_YT](https://forums.unrealengine.com/u/Eliaspro10_YT)\
**Post date:** [March 4, 2024, 6:38pm UTC](https://forums.unrealengine.com/t/how-can-i-change-my-crouching-mode-from-toggle-to-hold-with-a-settings-menu/1730097/1 "2024-03-04T18:38:17Z")

</div>

I have made a Toggle and hold func but i need to switch them with a setting menu

Were you can switch it(in a widget in a other level)

 ![image_2024-03-04_193417534](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/7/8/b78e0c3279d5b8891c52d70cf4f413ee62d80867.png)

If anyone have any suggestion let me know

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Valdorian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Valdorian](https://forums.unrealengine.com/u/Valdorian)\
**Post date:** [September 30, 2024, 5:36am UTC](https://forums.unrealengine.com/t/how-can-i-change-my-crouching-mode-from-toggle-to-hold-with-a-settings-menu/1730097/3 "2024-09-30T05:36:46Z")

</div>

Hey  
It depends on how you do the settings in your project.  
The main idea that you should in settings widget when you set the crouch mode - save the variable and then get it where you use the crouch event.  
Thats my realisation:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/c/e/ece977b88f951319bbe0f8eab70e4ebd8dc0edce.png)  
I set crouch mode variable in settings widget  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/a/9aae06d73162ad33c7d774844e9c0ba37f8ae7b5.png)  
And when I “apply” settings this variable goes to a save file. From this save I’m getting this variable. You can see it at the first screenshot. Setting the variable at the start of the game is with using the save file too.  
A lot of here depends on your project settings and how you did them, may be it would help
