You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
28 lines
727 B
C++
28 lines
727 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "EdGraphSchema_K2.h"
|
|
|
|
#include "MVVMConversionFunctionGraphSchema.generated.h"
|
|
|
|
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS()
|
|
class UMVVMConversionFunctionGraphSchema : public UEdGraphSchema_K2
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
virtual const FPinConnectionResponse CanCreateConnection(const UEdGraphPin* A, const UEdGraphPin* B) const override
|
|
{
|
|
FPinConnectionResponse ConnectionResponse = Super::CanCreateConnection(A, B);
|
|
if (ConnectionResponse.Response == CONNECT_RESPONSE_MAKE_WITH_CONVERSION_NODE || ConnectionResponse.Response == CONNECT_RESPONSE_MAKE_WITH_PROMOTION)
|
|
{
|
|
ConnectionResponse.Response = CONNECT_RESPONSE_DISALLOW;
|
|
}
|
|
return ConnectionResponse;
|
|
}
|
|
}; |