FComponentReference

Struct that allows for different ways to reference a component.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/EngineTypes.h

Include

#include "Engine/EngineTypes.h"

Syntax

struct FComponentReference

Remarks

Struct that allows for different ways to reference a component. If just an Actor is specified, will return RootComponent of that Actor.

Variables

Name Description

Public variable

FName

 

ComponentProperty

Name of component property to use

Public variable

AActor *

 

OtherActor

Pointer to a different Actor that owns the Component.

Public variable

TWeakObjectPtr <...

 

OverrideComponent

Allows direct setting of first component to constraint.

Public variable

FString

 

PathToComponent

Path to the component from its owner actor

Constructors

Name Description

Public function

FComponentReference()

Functions

Name Description

Public function Const

UActorCompon ...

 

GetComponent

(
    AActor * OwningActor
)

Get the actual component pointer from this reference

Operators

Name Description

Public function Const

bool

 

operator==

(
    const FComponentReference & Other
)

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback