I have an ACharacter
instance with a weapons component that inherits from UActorComponent
attached to it. I'm currently writing code that instantiates a weapon actor and attaches it to the ACharacter
instance.
What I'm having trouble with is finding out how to get a reference to the ACharacter
from the weapons code. In Unity, this would be a simple this.gameObject
or FindComponent<Character>
call, assuming the component belongs to the same transform.
Thank you!