FComponentEditorUtils::IsComponentNameAvailable

Test whether or not the given string is already the name string of a component on the the owner Optionally excludes an existing component from the check (ex. a component currently being renamed)

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/Kismet2/ComponentEditorUtils.h

Include

#include "Kismet2/ComponentEditorUtils.h"

Source

/Engine/Source/Editor/UnrealEd/Private/Kismet2/ComponentEditorUtils.cpp

Syntax

static bool IsComponentNameAvailable
(
    const FString & InString,
    UObject * ComponentOwner,
    const UActorComponent * ComponentToIgnore
)

Remarks

Test whether or not the given string is already the name string of a component on the the owner Optionally excludes an existing component from the check (ex. a component currently being renamed)

Returns

True if the InString is an available name for a component of ComponentOwner

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