AActor::AddOwnedComponent

Puts a component in to the OwnedComponents array of the Actor.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h

Include

#include "GameFramework/Actor.h"

Source

/Engine/Source/Runtime/Engine/Private/Actor.cpp

Syntax

void AddOwnedComponent
(
    UActorComponent * Component
)

Remarks

Puts a component in to the OwnedComponents array of the Actor. The Component must be owned by the Actor or else it will assert In general this should not need to be called directly by anything other than UActorComponent functions

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