FName::Compare

Compares name to passed in one. Sort is alphabetical ascending.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/UObject/NameTypes.h

Include

#include "UObject/NameTypes.h"

Source

/Engine/Source/Runtime/Core/Private/UObject/UnrealNames.cpp

Syntax

int32 Compare
(
    const FName & Other
) const

Remarks

Compares name to passed in one. Sort is alphabetical ascending.

Returns

< 0 is this < Other, 0 if this == Other, > 0 if this > Other

Parameters

Parameter

Description

Other

Name to compare this against

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