UMouseHoverBehavior

Trivial InputBehavior that forwards InputBehavior hover events to a Target object via the [IHoverBehaviorTarget](API\Runtime\InteractiveToolsFramework\BaseBehaviors\IHoverBehaviorTarget) interface.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

InteractiveToolsFramework

Header

/Engine/Source/Runtime/Experimental/InteractiveToolsFramework/Public/BaseBehaviors/MouseHoverBehavior.h

Include

#include "BaseBehaviors/MouseHoverBehavior.h"

Syntax

class UMouseHoverBehavior : public UInputBehavior

Remarks

Trivial InputBehavior that forwards InputBehavior hover events to a Target object via the IHoverBehaviorTarget interface.

Variables

Name Description

Public variable

FInputBehaviorM...

 

Modifiers

The modifier set for this behavior

Protected variable

IHoverBehaviorT...

 

Target

Constructors

Name Description

Public function

UMouseHoverBehavior()

Functions

Name Description

Public function Virtual

void

 

Initialize

(
    IHoverBehaviorTarget* Target
)

Overridden from UInputBehavior

Name Description

Public function Virtual

FInputCaptur...

 

BeginHoverCapture

(
    const FInputDeviceState& InputStat...,
    EInputCaptureSide eSide
)

Called after WantsHoverCapture() returns a capture request that was accepted

Public function Virtual

void

 

EndHoverCapture()

If a different hover capture begins, focus is lost, a tool starts, etc, any active hover visualization needs to terminate

Public function Virtual

EInputDevice...

 

GetSupportedDevices()

Which device types does this Behavior support

Public function Virtual

FInputCaptur...

 

UpdateHoverCapture

(
    const FInputDeviceState& InputStat...
)

Called on each new hover input event, ie if no other behavior is actively capturing input

Public function Virtual

FInputCaptur...

 

WantsHoverCapture

(
    const FInputDeviceState& InputStat...
)

Given the input state, does this Behavior want to begin capturing some input devices for hover

Public function Virtual

bool

 

WantsHoverEvents()

Hover support (optional)return true if this Behavior supports hover (ie passive input events)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss