Files
UnrealEngineUWP/Engine/Source/Runtime/CoreUObject/Tests/OptionalPropertyTestObject.h
robert millar 187458c7bd Implementing TOptional intrusive unset state support for FOptionalProperty.
Add new required FProperty methods HasIntrusiveUnsetOptionalState, InitializeOptionalIntrusive, IsOptionalSetIntrusive, ClearOptionalIntrusive.
Implement specific handling for not-null object pointers.
Defer to template function ::HasIntrusiveUnsetOptionalSate<T> for native struct types and types using cpp type fundamentals.

#rb Andrew.Scheidecker, Johan.Torp

[CL 33117302 by robert millar in ue5-main branch]
2024-04-19 17:10:53 -04:00

24 lines
421 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "OptionalPropertyTestObject.generated.h"
UCLASS()
class UOptionalPropertyTestObject : public UObject
{
GENERATED_BODY()
public:
UPROPERTY()
TOptional<FString> OptionalString;
UPROPERTY()
TOptional<FText> OptionalText;
UPROPERTY()
TOptional<FName> OptionalName;
UPROPERTY()
TOptional<int32> OptionalInt;
};