Is it possible to make a input to disable collision for a skeletal mesh so you can walk through walls?

I`m making a game and I wonder if you can do this so you can walk through walls

Hey there @TheRealSuchNeato! Welcome to the community! So yes you can disable collisions with your walls while an input is pressed. To avoid falling through the floor though, you’ll need to create a different collision layer for them to be on.

First head to Project Settings → Engine → Collision, then create a layer for your walls.

Then, go ahead and set your walls to that collision channel.

Finally go back to your player character and use these nodes on it’s capsule collision:

Thank you so much