Files
UnrealEngineUWP/Engine/Source/Programs/LowLevelTests/FoundationTests/Private/TestObject.h
chris constantinescu c594e982a3 Move the FoundationTests suite into their own folder under Source\Programs\LowLevelTests
#jira UE-205180
#rb jonathan.bard, sean.sweeney, sebastian.lewicki

[CL 31007109 by chris constantinescu in ue5-main branch]
2024-01-30 10:29:47 -05:00

53 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "CoreTypes.h"
#include "UObject/Object.h"
#include "TestObject.generated.h"
// Object to be used in text fixtures for various low level tests involving UObjects.
// Should contain various kinds of properties that can be used for various purposes depending on the test.
USTRUCT()
struct FTestStruct
{
GENERATED_BODY()
UPROPERTY()
TObjectPtr<UObject> StrongObjectReference;
UPROPERTY()
TWeakObjectPtr<UObject> WeakObjectReference;
UPROPERTY()
TSoftObjectPtr<UObject> SoftObjectReference;
UPROPERTY()
FSoftObjectPath SoftObjectPath;
};
UCLASS()
class UTestObject : public UObject
{
GENERATED_BODY()
public:
UPROPERTY()
TObjectPtr<UObject> StrongObjectReference;
UPROPERTY()
TWeakObjectPtr<UObject> WeakObjectReference;
UPROPERTY()
TSoftObjectPtr<UObject> SoftObjectReference;
UPROPERTY()
FSoftObjectPath SoftObjectPath;
UPROPERTY()
FTestStruct EmbeddedStruct;
UPROPERTY()
TArray<FTestStruct> ArrayStructs;
};