I’m trying to create a component that manages some simple rotation, translation, and scale animations for multiple objects. I have an array formed by a struct. I want to be able to reference the static mesh of an object in the editor so I can assign the animation I want to it. The problem is that only the static meshes from my content browser appear. I know that if I declare an actor, I can obtain its reference in the scene. Is there a way to do the same with static meshes? It doesn’t work for me to declare the static mesh in code because I have objects that have several static meshes, and I would like to assign specific animations to specific static meshes.
I’ve also been trying with tags, but I don’t consider it to be comfortable or practical either. If what I’m suggesting isn’t possible, does anyone have any suggestions for a solution?
I apologize in advance if my English isn’t very good; it’s not my native language. I’m also new to UE5 and C++ , so probably this is an easy question.
Thanks for your time.