FName::Compare

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

Choose your operating system:

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