How many ways does UnrealEngine select a object?

How many ways does UnrealEngine select a object?

I just know LineTraceByChannel can trace a object. What else?

This is a very fuzzy question.
How is an object selected for dealing radial damage? By the collision system when you spawn radial damage in the world.
How is an object selected for replication? By the network relevancy manager when objects move around.
How is an object selected for standing on by a character? By the capsule collision of the character component.
How is an object selected for triggering some kind of game play effect? By entering an overlap query volume of some other actor.
… and on and on and on.

So, which kind of “selection” are you talking about, in which context? In-game selection? Click-selection in the editor? Selection in the world outliner? Some blutility plugin that selects objects in the editor?

1 Like

@jwatte
Oh, sorry. Maybe i just want to know how to select object by mouse clicked in a valid viewport at runtime.
Thank you.

I hope he replies soon, I am interested in knowing this.

Use Get Hit Result Under Cursor by Channel to get the object under the mouse, or LineTraceByChannel for a specific direction.

Or bind the interaction/click/mouse/touch events on actor components straight to your action.

@jwatte @anonymous_user_cb211179 @midgunner66
I have a confuse about hitproxy in UnrealEngine, is it a way, and how does is work? Have somebody can explain it to me in detail?
Thank you.