FSCSEditorTreeNode::GetComponentTemplate

Deliberately non-virtual, for performance reasons.

Windows
MacOS
Linux

Warnings

  • This will not return the right component for components overridden by the inherited component handler, you need to call GetOrCreateEditableComponentTemplate instead

References

Module

Kismet

Header

/Engine/Source/Editor/Kismet/Public/SSCSEditor.h

Include

#include "SSCSEditor.h"

Source

/Engine/Source/Editor/Kismet/Private/SSCSEditor.cpp

Syntax

UActorComponent * GetComponentTemplate
(
    bool bEvenIfPendingKill
) const

Remarks

Deliberately non-virtual, for performance reasons.

This will not return the right component for components overridden by the inherited component handler, you need to call GetOrCreateEditableComponentTemplate instead

Returns

The component template or instance represented by this node, if it's a component node.

Parameters

Parameter

Description

bEvenIfPendingKill

If false, nullptr will be returned if the cached component template is pending kill. If true, it will be returned regardless (this is used for recaching the component template if the objects have been reinstanced following construction script execution).

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