Download

Ways to Switch on Actor ?

Making a Switch instead using Left Mouse in various places of a BP depending on what the Actor is. General question, how would you go about this ?

First turn on mouse interface.
Then find world location under mouse cursor.
Trace line to that location, see what actor is there.
If it is actor that can be switched, set it to visible/invisible. Or even better implement switch on/off inside of actors blueprint, then call that function.

Sorry I should refine this a bit … Using Hit Result from Channel to get the Actor. Then depending on the Actor have a route to wherever.