USwitchActorFactory

The only purpose of this class is to trigger a slightly different code path within [FLevelEditorViewportClient::TryPlacingActorFromObject](API\Editor\UnrealEd\FLevelEditorViewportClient\TryPlacingActorFromObject) when dragging and dropping a SwitchActor into the viewport, so that the SwitchActor labels get sanitized by [FActorLabelUtilities::SetActorLabelUnique](API\Editor\UnrealEd\Editor\FActorLabelUtilities\SetActorLabelUnique) and don't repeatedly increment

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

VariantManagerContentEditor

Header

/Engine/Plugins/Enterprise/VariantManagerContent/Source/VariantManagerContentEditor/Public/SwitchActorFactory.h

Include

#include "SwitchActorFactory.h"

Syntax

UCLASS(MinimalAPI, Config=Editor, CollapseCategories, HideCategories=Object)
class USwitchActorFactory : public UActorFactory

Remarks

The only purpose of this class is to trigger a slightly different code path within FLevelEditorViewportClient::TryPlacingActorFromObject when dragging and dropping a SwitchActor into the viewport, so that the SwitchActor labels get sanitized by FActorLabelUtilities::SetActorLabelUnique and don't repeatedly increment

Constructors

Name Description

Public function

USwitchActorFactory

(
    const FObjectInitializer& ObjectIn...
)