IViewportInteractableInterface

Interface for custom objects that can be interacted with by a interactor

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

IViewportInteractableInterface

AManipulator

References

Module

ViewportInteraction

Header

/Engine/Source/Editor/ViewportInteraction/Public/ViewportInteractableInterface.h

Include

#include "ViewportInteractableInterface.h"

Syntax

class IViewportInteractableInterface

Remarks

Interface for custom objects that can be interacted with by a interactor

Functions

Name Description

Public function Virtual

bool

 

CanBeSelected()

Whether this interactable can be selected.

Public function Virtual

UViewportDra...

 

GetDragOperationComponent()

Get dragging operation

Public function Virtual

void

 

OnDragRelease

(
    UViewportInteractor* Interacto...
)

Called when an interactor stops dragging this object

Public function Virtual

void

 

OnHover

(
    UViewportInteractor* Interacto...
)

Called when an interactor hover over this object

Public function Virtual

void

 

OnHoverEnter

(
    UViewportInteractor* Interacto...,
    const FHitResult& InHitResult
)

Called when an interactor starts hovering over this object

Public function Virtual

void

 

OnHoverLeave

(
    UViewportInteractor* Interacto...,
    const UActorComponent* NewComp...
)

Called when an interactor leave hovering over this object

Public function Virtual

void

 

OnPressed

(
    UViewportInteractor* Interacto...,
    const FHitResult& InHitResult,
    bool& bOutResultedInDrag
)

Called when an interactor presses this object