Texture alignment does not work (or i don't know how to do it)

I can’t get my textures to stay aligned on a geometry object. This is how it looks without alignment.

And this is how it’s supposed to look after the alignment but it doesn’t stay that way. If you know a solution for this please help me :slight_smile: