Could I get some help in understanding (FName(TEXT("HUDClick")), this);?
I am testing the function LineTraceSingle
Mostly I cannot understand this part of the code.
What does (FName(TEXT("HUDClick")), this); do here?
And I got error when I used this part.
1>D:\ue4\New folder\MyProject\Source\MyProject\MyProjectHUD.cpp(41): error C2220: warning treated as error - no 'object' file generated 1>D:\ue4\New folder\MyProject\Source\MyProject\MyProjectHUD.cpp(41): warning C4800: 'AMyProjectHUD *const ' : forcing value to bool 'true' or 'false' (performance warning)
But when I removed it, I didn't get any error when I used this..
So what exactly is that part and what does it do?
It's calling the constructor of FCollisionQueryParams with an FName and a pointer, however I think you're missing a parameter (hence the warning about converting an AActor* to a bool).
This is the signature of the constructor I think you're trying to call:
You probably want:
answered May 07 '14 at 01:47 PM
Jamie Dale STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here