Knowledge base
Search Blueprint patterns
Searching…
Knowledge base
On Left Mouse Button pressed → GetHitResultUnderCursorByChannel(TraceChannel=Visibility) → Branch(ReturnValue=true) → BreakHitResult → Check HitActor: IsValid(HitActor) → Branch → True: interact with HitActor. Check ground: use ImpactPoint as the world position clicked.
GetHitResultUnderCursorByChannel is on PlayerController. Inputs: 'TraceChannel' (ETraceTypeQuery) and 'bTraceComplex' (bool). Output: 'HitResult' (struct) and 'ReturnValue' (bool). Use BreakHitResult to get ImpactPoint, HitActor, etc.