Applying patterns to material without UV

Hello everyone! I’m quite new to Unreal Engine.
I am developing a plugin on a based on other plugin for UE5 which applies changes to meshes material. This is for my university project and should always use the original plugin
I encountered a problem, the UV Maps of almost every mesh is broken due to how the mesh was generated by the original plugin. I am not able to fix how the UV’s are generated, because I am not the author of original plugin and do not know, how it works entirely. The question I have: is there a way to apply patterns like these to a material without any use of UV.

image

I tried to use the normals to apply the pattern, but didn’t figure out how I should do it, especially when it comes to different sides of a mesh, rotation etc.

The material looks like that in this case. The pattern should look like regular vertical straight lines, but it still isn’t applied right, and the pattern on meshes looks broken

image

Is there any solution which is simple or what can I change in my solution in order for it to apply correctly?