UMaterialGraphSchema::TryCreateConnection

Try to make a connection between two pins.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

UEdGraphSchema::TryCreateConnection()

UMaterialGraphSchema::TryCreateConnection()

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Classes/MaterialGraph/MaterialGraphSchema.h

Include

#include "MaterialGraph/MaterialGraphSchema.h"

Source

/Engine/Source/Editor/UnrealEd/Private/MaterialGraphSchema.cpp

Syntax

virtual bool TryCreateConnection
(
    UEdGraphPin * A,
    UEdGraphPin * B
) const

Remarks

Try to make a connection between two pins.

Returns

True if a connection was made/broken (graph was modified); false if the connection failed and had no side effects.

Parameters

Parameter

Description

A

The first pin.

B

The second pin.