How give nullptr value to FHitresult ?
thanks.
FHitresult is a structure and does not have any = operator overload so you can only use = with other FHitresult. FHitresult is also not a pointer so you can’t nullptr it. You can reset the FHitresult by calling Init() on it
If you need to invalidate it, then use other means, like a bool variable stating that current state FHitresult is invalid and should not be used.
Thx, for replay, I saw your replays everywhere, well-done man, keep up the good work