Files
UnrealEngine/Engine/Plugins/Experimental/SceneState/Source/SceneStateEvent/Private/SceneStateEventSchemaHandle.cpp
2025-05-18 13:04:45 +08:00

27 lines
731 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "SceneStateEventSchemaHandle.h"
#include "SceneStateEventSchema.h"
#include "SceneStateEventSchemaCollection.h"
#include "StructUtils/StructView.h"
#include "StructUtils/UserDefinedStruct.h"
UUserDefinedStruct* FSceneStateEventSchemaHandle::GetEventStruct() const
{
return EventStruct.LoadSynchronous();
}
USceneStateEventSchemaObject* FSceneStateEventSchemaHandle::GetEventSchema() const
{
return EventSchema.LoadSynchronous();
}
FStructView FSceneStateEventSchemaHandle::GetDefaultDataView() const
{
if (UUserDefinedStruct* Struct = GetEventStruct())
{
return FStructView(Struct, const_cast<uint8*>(Struct->GetDefaultInstance()));
}
return FStructView();
}