You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb ben.hoffman, Phillip.Kavan #jira UE-201295, FORT-686637 [CL 29968056 by dan oconnor in ue5-main branch]
21 lines
668 B
C++
21 lines
668 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "SubobjectDataBlueprintFunctionLibrary.h"
|
|
|
|
#include "Templates/SharedPointer.h"
|
|
|
|
void USubobjectDataBlueprintFunctionLibrary::GetData(const FSubobjectDataHandle& DataHandle, FSubobjectData& OutData)
|
|
{
|
|
// Copy the underlying subobject data - probably to the stack so that script can manipulate it
|
|
TSharedPtr<FSubobjectData> DataPtr = DataHandle.GetSharedDataPtr();
|
|
if(DataPtr.IsValid())
|
|
{
|
|
OutData = *DataPtr.Get();
|
|
}
|
|
}
|
|
|
|
const UObject* USubobjectDataBlueprintFunctionLibrary::GetObjectForBlueprint(const FSubobjectData& Data, UBlueprint* Blueprint)
|
|
{
|
|
return Data.GetObjectForBlueprint(Blueprint);
|
|
}
|