Navigation
API > API/Editor > API/Editor/ViewportInteraction > API/Editor/ViewportInteraction/UViewportWorldInteraction
Description
Adds an actor to the list of actors to never allow an interactor to hit in the scene. No selection. No hover. There's no need to remove actors from this list. They'll expire from it automatically when destroyed.
| Name | AddActorToExcludeFromHitTests |
| Type | function |
| Header File | /Engine/Source/Editor/ViewportInteraction/Public/ViewportWorldInteraction.h |
| Include Path | #include "ViewportWorldInteraction.h" |
| Source | /Engine/Source/Editor/ViewportInteraction/Private/ViewportWorldInteraction.cpp |
UFUNCTION (BlueprintCallable, Category="ViewportWorldInteraction")
void AddActorToExcludeFromHitTests
(
AActor * ActorToExcludeFromHitTests
)
Parameters
| Name | Remarks |
|---|---|
| ActorToExcludeFromHitTests | The actor that should be forever excluded from hit tests |