You could use the blueprint function library in this case.
- Create a library
- Add your function
- Access this from any actor or component in your project

I hope it’ll be helpful to you.
You could use the blueprint function library in this case.

I hope it’ll be helpful to you.