Hi, there!
I am an absolute beginner in Unreal Engine and I want to write a small turn-based game. Faced with the need to process the player’s mouse clicks and found two methods: NotifyActorOnClick for each Actor or getting any Actor from the global PlayerController, using GetHitResultUnderCursor by configuring the InputComponent in the Playercontroller.
Assumption: NotifyActorOnClick should be used when you need to do something local, for example, highlight the selected tile, and PlayerController when you need to do something global, for example, move a character.
Question: Is the assumption correct and at what points is it best to use each of these click processing methods?
I would be very grateful if someone could throw some material that would help to sort out the issue.
Thank you all!