It didn’t work. I forgot to mention that I’m using Unreal Engine 5.1. I didn’t share the code because it’s very messy — I’m still learning, and everything is very new to me.
If you’d like, I can try to share the project with you (it has some comments in another language, but I can write a summary explaining how everything works).