UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ObjectRedirector.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*=============================================================================
4 UnRedirector.h: Object redirector definition.
5=============================================================================*/
6
7#pragma once
8
9#include "Containers/Array.h"
10#include "Containers/Map.h"
11#include "CoreMinimal.h"
12#include "CoreTypes.h"
15#include "UObject/Object.h"
18
19class FArchive;
21class FString;
22
24
30{
32
33 // Variables.
34 UObject* DestinationObject;
35 // UObject interface.
36 virtual void PreSave(FObjectPreSaveContext ObjectSaveContext) override;
37 void Serialize(FArchive& Ar) override;
39 virtual bool NeedsLoadForEditorGame() const override;
40 virtual void GetAssetRegistryTags(FAssetRegistryTagsContext Context) const override;
41 UE_DEPRECATED(5.4, "Implement the version that takes FAssetRegistryTagsContext instead.")
42 virtual void GetAssetRegistryTags(TArray<FAssetRegistryTag>& OutTags) const override;
43 virtual bool HasNonEditorOnlyReferences() const override
44 {
45 return true;
46 }
47
60 virtual bool GetNativePropertyValues( TMap<FString,FString>& out_PropertyValues, uint32 ExportFlags=0 ) const override;
61
62#if WITH_EDITOR
65 {
67 }
68
69private:
71#endif
72};
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
#define TEXT(x)
Definition Platform.h:1272
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UE_DEFINE_INTRINSIC_CLASS_CONSTINIT_ACCESSOR(ClassName, RequiredAPI)
Definition IntrinsicClassFwd.h:36
@ CASTCLASS_None
Definition ObjectMacros.h:334
@ CLASS_MatchedSerializers
Definition ObjectMacros.h:213
#define DECLARE_CASTED_CLASS_INTRINSIC_WITH_API(TClass, TSuperClass, TStaticFlags, TPackage, TStaticCastFlags, TRequiredAPI)
Definition ObjectMacros.h:1976
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Archive.h:1208
Definition AssetRegistryTagsContext.h:98
Definition ObjectSaveContext.h:244
Definition StructuredArchiveSlots.h:144
Definition Array.h:670
Definition UnrealString.h.inl:34
Definition ObjectRedirector.h:30
Definition Object.h:95