FActorDropTarget

Helper class to manage moving abritrary data onto an actor

Windows
MacOS
Linux

Inheritance Hierarchy

IDropTarget

FActorDropTarget

References

Module

SceneOutliner

Header

/Engine/Source/Editor/SceneOutliner/Public/ActorTreeItem.h

Include

#include "ActorTreeItem.h"

Syntax

struct FActorDropTarget : public SceneOutliner::IDropTarget

Remarks

Helper class to manage moving abritrary data onto an actor

Variables

Name Description

Public variable

TWeakObjectPtr<...

 

Actor

The actor this tree item is associated with.

Constructors

Name Description

Public function

FActorDropTarget

(
    AActor* InActor
)

Construct this object out of an Actor

Functions

Name Description

Protected function

void

 

DetachActorFromParent

(
    AActor* ChildActor
)

Detach the specified actor from this actor

Protected function Static

void

 

PerformAttachment

(
    FName SocketName,
    TWeakObjectPtr< AActor > Parent,
    const FActorArray NewAttachments
)

Attach our actor to the specified parent and socket

Overridden from IDropTarget

Name Description

Public function Virtual

void

 

OnDrop

(
    FDragDropPayload& DraggedObjects,
    UWorld& World,
    const FDragValidationInfo& Validat...,
    TSharedRef< SWidget > DroppedOnWidg...
)

Called to drop the specified objects on this item.

Public function Virtual Const

FDragValidat...

 

ValidateDrop

(
    FDragDropPayload& DraggedObjects,
    UWorld& World
)

Called to test whether the specified payload can be dropped onto this tree item

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