USimpleConstructionScript::ExecuteScriptOnActor

Execute this script on the supplied actor, creating components

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/SimpleConstructionScript.h

Include

#include "Engine/SimpleConstructionScript.h"

Source

/Engine/Source/Runtime/Engine/Private/SimpleConstructionScript.cpp

Syntax

void ExecuteScriptOnActor
(
    AActor * Actor,
    const TInlineComponentArray< USceneComponent * > & NativeSceneComponents,
    const FTransform & RootTransform,
    const FRotationConversionCache * RootRelativeRotationCache,
    bool bIsDefaultTransform
)

Remarks

Execute this script on the supplied actor, creating components

Parameters

Parameter

Description

Actor

The actor instance to execute the script on.

NativeSceneComponents

The set of native scene components from the actor that SCS nodes can parent to when instanced.

RootTransform

The transform to apply to the root scene component of the actor instance if defined in this script.

RootRelativeRotationCache

Optional rotation cache to use when applying the transform to the root component.

bIsDefaultTransform

Indicates 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