You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
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]
24 lines
421 B
C++
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;
|
|
}; |