UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UnrealNames.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
5
#include "
CoreTypes.h
"
6
7
struct
FNameEntryId
;
8
9
//
10
// Macros.
11
//
12
13
// Define a message as an enumeration.
14
#define REGISTER_NAME(num,name) name = num,
15
enum class
EName
:
uint32
16
{
17
// Include all the hard-coded names
18
#include "
UnrealNames.inl
"
19
// Special constant for the last hard-coded name index
20
MaxHardcodedNameIndex
,
21
};
22
#undef REGISTER_NAME
23
// Define aliases for the old-style EName enum syntax
24
#define REGISTER_NAME(num,name) inline constexpr EName NAME_##name = EName::name;
25
#include "
UnrealNames.inl
"
26
#undef REGISTER_NAME
27
28
CORE_API
const
TCHAR
*
LexToString
(
EName
Ename
);
29
38
#define MAX_NETWORKED_HARDCODED_NAME 410
39
40
UE_DEPRECATED
(5.0,
"This function is deprecated, please use ShouldReplicateAsInteger(EName Ename, const class FName& Name) instead."
)
41
inline
bool
ShouldReplicateAsInteger
(
EName
Ename
)
42
{
43
return
Ename
<=
EName
(
MAX_NETWORKED_HARDCODED_NAME
);
44
}
45
46
CORE_API
bool
ShouldReplicateAsInteger
(
EName
Ename
,
const
class
FName
&
Name
);
UE_DEPRECATED
#define UE_DEPRECATED(Version, Message)
Definition
CoreMiscDefines.h:302
CoreTypes.h
TCHAR
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition
Platform.h:1135
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
LexToString
CORE_API const TCHAR * LexToString(EName Ename)
Definition
UnrealNames.cpp:120
MAX_NETWORKED_HARDCODED_NAME
#define MAX_NETWORKED_HARDCODED_NAME
Definition
UnrealNames.h:38
ShouldReplicateAsInteger
bool ShouldReplicateAsInteger(EName Ename)
Definition
UnrealNames.h:41
EName
EName
Definition
UnrealNames.h:16
EName::MaxHardcodedNameIndex
@ MaxHardcodedNameIndex
UnrealNames.inl
EVariantTypes::Name
@ Name
uint32
uint32_t uint32
Definition
binka_ue_file_header.h:6
FName
Definition
NameTypes.h:617
FNameEntryId
Definition
NameTypes.h:69
Engine
Source
Runtime
Core
Public
UObject
UnrealNames.h
Generated by
1.9.8