Character only jumps if I comment out this code

My character jumps if I comment out

(!myCapsuleCollider.IsTouchingLayers(LayerMask.GetMask(“Ground”))) { return; }

But doesn’t jump anymore if I re-enable it…


The platforms tilemap is set to the layer “Ground”…

I figured it out. There was a space right before the “Ground” Layer name so it said “⌴Ground” instead of “Ground”

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms