UEdGraphSchema_BehaviorTree::CanCreateConnection

Determine if a connection can be created between two pins.

Unreal Engine C++ API Reference > Editor > BehaviorTreeEditor > UEdGraphSchema_BehaviorTree

References

   
Module BehaviorTreeEditor
Header /Engine/Source/Editor/BehaviorTreeEditor/Classes/EdGraphSchema_BehaviorTree.h
Include #include "EdGraphSchema_BehaviorTree.h"
Source /Engine/Source/Editor/BehaviorTreeEditor/Private/EdGraphSchema_BehaviorTree.cpp
virtual const [FPinConnectionResponse](API\Runtime\Engine\EdGraph\FPinConnectionResponse) CanCreateConnection
(
    const [UEdGraphPin](API\Runtime\Engine\EdGraph\UEdGraphPin) * A,
    const [UEdGraphPin](API\Runtime\Engine\EdGraph\UEdGraphPin) * B
) const

Remarks

Determine if a connection can be created between two pins. An empty string if the connection is legal, otherwise a message describing why the connection would fail.

Parameters

Name Description
A The first pin.
B The second pin.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library