I’m creating a BP component that I can apply to some of the static meshes in my level to make it so they can be interacted with. The component will add basic behaviors such object outline highlighting, showing a menu when clicked, etc.
I have this all working except that I can’t figure out how to get a reference to the actor that the component is applied to. I’ve worked around it by adding a public variable to the blueprint and explicitly setting the actor that way. But it would be much better if I can get the component to reference the actor it’s applied to - is there a way to do this?