I have made a door that can be opened and closed but when i play the character can walk straight through it when it is shut

Do you have collision ON for the door mesh?

My guess is that you need to set the collision properties on the static mesh of the door.
Open the door static mesh and in the details panel under collision set the collision complexity to use complex collision as simple. Alternative to this would be to select one of the options from the collision menu at the top (in example box simplified collision).

hi
i have created a door in ue4 that can be opened and shut. it works fine except my character can walk straight through the door when it is shut. i do not know how to rectify this.
any help would be appreciated

i have just tried this and it worked thank you so much

This worked for me too.

I’m new to UE5 and made the mistake of looking for Collision Complexity within the details panel in the static mesh component for the door blueprint.

What I needed to do was go to the content drawer, search for door and filter by static mesh and then double click the correct door static mesh. This then opened the static mesh editor, where I was able to follow the above instructions to fix this door collision issue.