Files
UnrealEngineUWP/Engine/Plugins/Runtime/Metasound/Source/MetasoundFrontend/Private/MetasoundReceiveNode.cpp
Rob Gay 4b1e992925 Move FString/FText VertexName identifers to FNames. Convention is as follows:
- FGuid IDs are used to identify unique verticies within an entire graph (currently may be duplicated if graph is duplicated).
- FNames are used to be readible vertex identifiers that are only unique within a node's API.
- FText is only for ***OPTIONAL*** DisplayNames that can be provided as a more descriptive, readible descriptor of a given vertex (But are not necessarily unique). Currently disabled until loc tool on FText property in MetaSoundDetailsCustomization is properly displayed.
#rb phil.popp
#jira UE-123982
#preflight 613f6ff892b32b00016cf188

[CL 17494445 by Rob Gay in ue5-main branch]
2021-09-13 14:13:39 -04:00

37 lines
778 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "MetasoundReceiveNode.h"
namespace Metasound
{
namespace ReceiveNodeInfo
{
const FVertexName& GetAddressInputName()
{
static const FVertexName InputName(TEXT("Address"));
return InputName;
}
const FVertexName& GetDefaultDataInputName()
{
static const FVertexName DefaultDataName(TEXT("Default"));
return DefaultDataName;
}
const FVertexName& GetOutputName()
{
static const FVertexName OutputName(TEXT("Out"));
return OutputName;
}
FNodeClassName GetClassNameForDataType(const FName& InDataTypeName)
{
return FNodeClassName { "Receive", InDataTypeName, FName() };
}
int32 GetCurrentMajorVersion() { return 1; }
int32 GetCurrentMinorVersion() { return 0; }
}
}