FActorOrComponent

Represents an actor or a component for use in editor functionality such as snapping which can operate on either type

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Classes/Editor/EditorEngine.h

Include

#include "Editor/EditorEngine.h"

Syntax

struct FActorOrComponent

Remarks

Represents an actor or a component for use in editor functionality such as snapping which can operate on either type

Variables

Name Description

Public variable

AActor *

 

Actor

Public variable

USceneComponent...

 

Component

Constructors

Name Description

Public function

FActorOrComponent()

Public function

FActorOrComponent

(
    AActor* InActor
)

Public function

FActorOrComponent

(
    USceneComponent* InComponent
)

Functions

Name Description

Public function Const

const FBoxSp...

 

GetBounds()

Public function Const

UWorld *

 

GetWorld()

Public function Const

FVector

 

GetWorldLocation()

Public function Const

FRotator

 

GetWorldRotation()

Public function Const

bool

 

IsValid()

Public function

void

 

SetWorldLocation

(
    const FVector& NewLocation
)

Public function

void

 

SetWorldRotation

(
    const FRotator& NewRotation
)

Operators

Name Description

Public function Const

bool

 

operator==

(
    const FActorOrComponent& Other
)

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