AActor::ExecuteConstruction

Run any construction script for this Actor. Will call OnConstruction.

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/ActorConstruction.cpp

Syntax

bool ExecuteConstruction
(
    const FTransform & Transform,
    const struct FRotationConversionCache * TransformRotationCache,
    const class FComponentInstanceDataCache * InstanceDataCache,
    bool bIsDefaultTransform
)

Remarks

Run any construction script for this Actor. Will call OnConstruction.

Returns

Returns false if the hierarchy was not error free and we've put the Actor is disaster recovery mode

Parameters

Parameter

Description

Transform

The transform to construct the actor at.

TransformRotationCache

Optional rotation cache to use when applying the transform.

InstanceDataCache

Optional cache of state to apply to newly created components (e.g. precomputed lighting)

bIsDefaultTransform

Whether or not the given transform is a "default" transform, in which case it can be overridden by template defaults

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