Navigation
API > API/Runtime > API/Runtime/Engine
@TODO: this can encapsulate globally defined fields as well (like with native delegate signatures); consider renaming to FFieldReference
| Name | FMemberReference |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/MemberReference.h |
| Include Path | #include "Engine/MemberReference.h" |
Syntax
USTRUCT ()
struct FMemberReference
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMemberReference() |
Engine/MemberReference.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| bFieldRedirectMapInitialized | bool | Has the field map been initialized this run | Engine/MemberReference.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FGuid GetMemberGuid() |
Engine/MemberReference.h | ||
FName GetMemberName() |
Get the name of this member | Engine/MemberReference.h | |
| Engine/MemberReference.h | |||
UClass * GetMemberParentClass
(
UClass* SelfScope |
Get the class that owns this member | Engine/MemberReference.h | |
UPackage * GetMemberParentPackage() |
Engine/MemberReference.h | ||
| Get the scope of this member | Engine/MemberReference.h | ||
FString GetMemberScopeName() |
Get the name of the scope of this member | Engine/MemberReference.h | |
FString GetReferenceSearchString
(
UClass* InFieldOwner |
Returns a search string to submit to Find-in-Blueprints to find references to this reference | Engine/MemberReference.h | |
| Returns the scope for the current member. | Engine/MemberReference.h | ||
void InvalidateScope () |
Invalidate the current MemberParent, if this is a self scope, or the MemberScope if it is not (and set). | Engine/MemberReference.h | |
bool IsDeprecated() |
Returns whether or not the variable has been deprecated | Engine/MemberReference.h | |
bool IsLocalScope() |
Returns if this is a local scope. | Engine/MemberReference.h | |
bool IsSameReference
(
const FMemberReference& InReference |
Compares with another MemberReference to see if they are identical | Engine/MemberReference.h | |
bool IsSelfContext() |
Returns if this is a 'self' context. | Engine/MemberReference.h | |
bool IsSparseClassData
(
const UClass* OwningClass |
Returns true if this is in the sparse data struct for OwningClass | Engine/MemberReference.h | |
void RefreshGivenNewSelfScope
(
UClass* SelfScope |
Update given a new self | Engine/MemberReference.h | |
UFunction * ResolveMember
(
UClass* SelfScope, |
Engine/MemberReference.h | ||
TFieldType * ResolveMember
(
UClass* SelfScope, |
Returns the member FProperty/UFunction this reference is pointing to, or NULL if it no longer exists Derives 'self' scope from supplied Blueprint node if required Will check for redirects and fix itself up if one is found (when WITH_EDITOR, or when bAlwaysFollowRedirects is true). | Engine/MemberReference.h | |
TFieldType * ResolveMember
(
UBlueprint* SelfScope |
ResolveMember overload for UBlueprint, uses the skeleton class so it can be more up to date | Engine/MemberReference.h | |
void SetDirect
(
const FName InMemberName, |
Only intended for backwards compat! | Engine/MemberReference.h | |
void SetExternalDelegateMember
(
FName InMemberName |
Set to a non-'self' delegate member, this is not self-context but is not given a parent class | Engine/MemberReference.h | |
void SetExternalMember
(
FName InMemberName, |
Set to a non-'self' member, so must include reference to class owning the member. | Engine/MemberReference.h | |
void SetExternalMember
(
FName InMemberName, |
Engine/MemberReference.h | ||
void SetFromField
(
const typename TFieldType::BaseFieldClass* InField, |
Engine/MemberReference.h | ||
void SetFromField
(
const typename TFieldType::BaseFieldClass* InField, |
Set up this reference from a supplied field | Engine/MemberReference.h | |
| Set to reference a global field (intended for things like natively defined delegate signatures) | Engine/MemberReference.h | ||
void SetLocalMember
(
FName InMemberName, |
Set up this reference to a 'self' member name, scoped to a struct | Engine/MemberReference.h | |
void SetLocalMember
(
FName InMemberName, |
Set up this reference to a 'self' member name, scoped to a struct name | Engine/MemberReference.h | |
void SetMemberName
(
FName NewName |
Reset the member name only. Intended for use primarily as a helper method for rename operations. | Engine/MemberReference.h | |
void SetSelfMember
(
FName InMemberName |
Set up this reference to a 'self' member name | Engine/MemberReference.h | |
void SetSelfMember
(
FName InMemberName, |
Engine/MemberReference.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Engine/MemberReference.h | |||
TFieldType * ResolveMemberImpl
(
UClass* SelfScope, |
Engine/MemberReference.h | ||
FProperty * ResolveMemberProperty
(
UClass* SelfScope, |
Engine/MemberReference.h | ||
void SetGivenSelfScope
(
const FName InMemberName, |
Only intended for backwards compat! | Engine/MemberReference.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void FillSimpleMemberReference
(
const TFieldType* InField, |
Engine/MemberReference.h | ||
static FField * FindRemappedField
(
FFieldClass* FieldClass, |
Engine/MemberReference.h | ||
static UField * FindRemappedField
(
UClass* FieldClass, |
Searches the field redirect map for the specified named field in the scope, and returns the remapped field if found | Engine/MemberReference.h | |
static TFieldType * FindRemappedField
(
UClass* InitialScope, |
Templated version of above, extracts FieldClass and Casts result | Engine/MemberReference.h | |
| Engine/MemberReference.h | |||
static void InitFieldRedirectMap() |
Init the field redirect map (if not already done) from .ini file entries | Engine/MemberReference.h | |
static TFieldType * ResolveSimpleMemberReference
(
const FSimpleMemberReference& Reference, |
Engine/MemberReference.h |