AActor::ExecuteConstruction

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

References

Module

Engine

Header

Runtime/Engine/Classes/GameFramework/Actor.h

Source

Runtime/Engine/Private/ActorConstruction.cpp