I am very new to Unreal Engine and found a steep learning curve.
I have a simple C++ class that has a function that is planned to return the location that the user clicks. I have followed the example here:
in order to create the mouse controller. I can add an on click event to the controller.
In my C++ class I have a function set up like this:
UFUNCTION(BlueprintCallable, Category = "Location")
bool GetGridAddressFromMouseClick(float XOffset, float YOffset, int32 &ReturnGridAddress) const;
I my grid blueprint I can get the function called with Event Tick
My goal is to call this on a mouse click and place a piece where the user clicks. But I am unsure how to call this function.
I have read several pages and watched loads of YouTube videos. But I cannot find something that does what I want. Is there a tutorial out there that handles mouse clicks on the screen and sends events to C++.
Aside: I do not understand why my function is not part of the execute path. At the end of the day, I want this function to do much more than it is currently and I would think that it should be in the execution path.
