How to constrain movement component to one axis?

Hi everyone, I have been trying to set up a system where the character movement component can only move on one axis for specific conditions. In essence the game is a 2D platformer which typically is constrained to 2D movement (using SetPlaneConstraintAxisSetting), however; when the player comes to the edge of a platform they slide down it along the rounded curve of their capsule hit box. I would like them to remain on level with the platform while over an open gap and fall once they are fully no longer on the platform.

I have already tried setting gravity to 0 (which isn’t ideal as they enter the falling state and act like they’re mid air rather than still on a platform) and when I tried to assign a value to the custom enum in SetPlaneConstraintAxisSetting it didn’t keep my 0,1,0 values. It would just spit out decimal points.

Does anyone know of a way to cause a pawn to lock its position on two axis? I assume the answer is in my lack of understanding of the aforementioned function, but I would also be interested in other methods.

check Constrain to Plane on the charcter movement component and set Plane Constraint Normal. for a 2D side scroller where you want Y locked, the normal is (0,1,0). the axis setting enum is just a shortcut for X, Y or Z; Custom reads the normal field, so set the normal directly instead of trying to feed the enum vector values.
nodes: Set Plane Constraint Enabled, Set Plane Constraint Normal, Set Plane Constraint Axis Setting. movement stays in the plane but gravity still pulls along the unconstrained axes, so you still fall off the edge.