UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LevelSequenceObject.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6#include "CoreMinimal.h"
11
12#include "LevelSequenceObject.generated.h"
13
14class UObject;
15
16
20USTRUCT()
22{
24
25public:
26
29 : ObjectOrOwner(nullptr)
30 , CachedComponent(nullptr)
31 { }
32
39 : ObjectOrOwner(InObject)
40 , CachedComponent(nullptr)
41 { }
42
50 : ObjectOrOwner(InOwner)
51 , ComponentName(InComponentName)
52 , CachedComponent(nullptr)
53 { }
54
63 {
64 return (ObjectOrOwner == Other.ObjectOrOwner) && (ComponentName == Other.ComponentName);
65 }
66
72 LEVELSEQUENCE_API UObject* GetObject() const;
73
74private:
75
77 UPROPERTY()
78 TLazyObjectPtr<UObject> ObjectOrOwner;
79
81 UPROPERTY()
82 FString ComponentName;
83
86 mutable TWeakObjectPtr<UObject> CachedComponent;
87};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define USTRUCT(...)
Definition ObjectMacros.h:746
Definition Object.h:95
Definition LevelSequenceObject.h:22
FLevelSequenceObject(UObject *InOwner, FString InComponentName)
Definition LevelSequenceObject.h:49
FLevelSequenceObject()
Definition LevelSequenceObject.h:28
bool operator==(const FLevelSequenceObject &Other) const
Definition LevelSequenceObject.h:62
FLevelSequenceObject(UObject *InObject)
Definition LevelSequenceObject.h:38
Definition LazyObjectPtr.h:230
Definition WeakObjectPtrTemplates.h:25