# Node graph assistant

**URL:** <https://forums.unrealengine.com/t/node-graph-assistant/216533>\
**Category:** UE Marketplace\
**Tags:** unreal-engine, fab\
**Created:** [February 27, 2018, 1:54am UTC](https://forums.unrealengine.com/t/node-graph-assistant/216533 "2018-02-27T01:54:28Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Andrej730](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andrej730/32/1194692_2.png) [@Andrej730](https://forums.unrealengine.com/u/Andrej730)\
**Post date:** [August 25, 2022, 8:57pm UTC](https://forums.unrealengine.com/t/node-graph-assistant/216533/21 "2022-08-25T20:57:18Z")

</div>

When refactoring old complicated shader graph I’m adding reroutes a lot (it’s great for readability). It’s repetitive process - adding reroute, rewiring old connections to reroute instance (not to declaration) and maybe making a separate reroute instance for each connection for more readability.

If any parts of this process could be automated - it would make a life a bit easier for sure.

The example is attached.

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/a/3cae4f953e8d4ccc9b7b79e856e2bcb31e621933.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/a/3cae4f953e8d4ccc9b7b79e856e2bcb31e621933.mp4)

---

<div class="post-metadata">

**Author:** ![yangxx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yangxx](https://forums.unrealengine.com/u/yangxx)\
**Post date:** [August 26, 2022, 3:05am UTC](https://forums.unrealengine.com/t/node-graph-assistant/216533/22 "2022-08-26T03:05:16Z")

</div>

there is several existing plugin feature you can use:  
1.create node on wire（right click on wire and choose the node you want to create）.  
 ![adasd1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/b/5/7b500588d0ab370c54e342020c62599bd33ba66b.gif)  
2.insert node on wire by dragging node across wire,this feature needs to be enabled in toolbar  
 ![afsg2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/4/3c43bb4cbc46643aa19e4dbf2a9a20adb9a3222b.gif)

---

<div class="post-metadata">

**Author:** ![byg\_ben](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@byg\_ben](https://forums.unrealengine.com/u/byg_ben)\
**Post date:** [September 13, 2022, 8:53pm UTC](https://forums.unrealengine.com/t/node-graph-assistant/216533/23 "2022-09-13T20:53:39Z")

</div>

Does anyone get build errors like this? or know how to fix them?

```auto
Unreal\Plugins\NodeGraphAssistant\Source\Private\EngineCppFiles\SGraphNodeAnimTransition.cpp(44): error C2511: 'void SGraphNodeAnimTransition::MoveTo(const FVector2D &,SNodePanel::SNode::FNodeSet &)'
LNK2019: unresolved external symbol "public: class TArrayView<struct SGraphPinPose::FAttributeInfo const ,int> __cdecl SGraphPinPose::GetAttributeInfo(void)const " (?GetAttributeInfo@SGraphPinPose

```

---

<div class="post-metadata">

**Author:** ![yangxx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yangxx](https://forums.unrealengine.com/u/yangxx)\
**Post date:** [September 15, 2022, 2:11am UTC](https://forums.unrealengine.com/t/node-graph-assistant/216533/24 "2022-09-15T02:11:21Z")

</div>

Try removing all files under “NodeGraphAssistant\Source\Private\EngineCppFiles” and compile again,also make sure you have all engine cpp file on your computer.

---

<div class="post-metadata">

**Author:** ![KarmaT](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/karmat/32/563753_2.png) [@KarmaT](https://forums.unrealengine.com/u/KarmaT)\
**Post date:** [October 14, 2022, 4:09pm UTC](https://forums.unrealengine.com/t/node-graph-assistant/216533/25 "2022-10-14T16:09:47Z")

</div>

Open Epic Launcher. Select Unreal Engine from Left, and Library from Top.

Click the little black down arrow on the yellow base, and select Options.

Install Engine Source.

You should now be good to go.

---

<div class="post-metadata">

**Author:** ![KarmaT](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/karmat/32/563753_2.png) [@KarmaT](https://forums.unrealengine.com/u/KarmaT)\
**Post date:** [October 14, 2022, 4:10pm UTC](https://forums.unrealengine.com/t/node-graph-assistant/216533/26 "2022-10-14T16:10:19Z")

</div>

This is not the way to go. One needs to install Engine Source files:

[Open Epic Launcher. Select Unreal Engine from Left, and Library from Top.  
Click the little black down arrow on the yellow base, and select Options.  
Install Engine Source.  
You should now be good to go.](https://forums.unrealengine.com/t/node-graph-assistant/216533/25)

Please consider showing these instructions somewhere in your documentation.

---

<div class="post-metadata">

**Author:** ![ZoltanE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZoltanE](https://forums.unrealengine.com/u/ZoltanE)\
**Post date:** [November 16, 2022, 2:33pm UTC](https://forums.unrealengine.com/t/node-graph-assistant/216533/27 "2022-11-16T14:33:24Z")

</div>

I love the plugin so I was wondering if there are any news on 5.1 compatibility?

---

<div class="post-metadata">

**Author:** ![yangxx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yangxx](https://forums.unrealengine.com/u/yangxx)\
**Post date:** [November 18, 2022, 2:47am UTC](https://forums.unrealengine.com/t/node-graph-assistant/216533/28 "2022-11-18T02:47:49Z")

</div>

On the way.

---

<div class="post-metadata">

**Author:** ![Obsurveyor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Obsurveyor](https://forums.unrealengine.com/u/Obsurveyor)\
**Post date:** [November 27, 2022, 1:42am UTC](https://forums.unrealengine.com/t/node-graph-assistant/216533/29 "2022-11-27T01:42:21Z")

</div>

Since it’s not possible to have both Electronic Nodes and Node Graph Assistant enabled at the same time, could you please add a 45 degree wire style and a Left/Middle/Right option so we can choose what end of the wire the bend takes place?

---

<div class="post-metadata">

**Author:** ![Variann](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Variann](https://forums.unrealengine.com/u/Variann)\
**Post date:** [December 1, 2022, 3:24pm UTC](https://forums.unrealengine.com/t/node-graph-assistant/216533/30 "2022-12-01T15:24:42Z")

</div>

I too would like this. It’s unfortunate that Electronic Nodes and NGA are incompatible with each other, but the features of NGA has helped out a lot. But EN’s Subway 45 degree wiring style makes blueprints both much more visually pleasing but also way easier to read. I’m not a fan of the current wiring styles NGA provides, so I would love it if a similar style came to NGA

---

<div class="post-metadata">

**Author:** ![KindredGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KindredGames](https://forums.unrealengine.com/u/KindredGames)\
**Post date:** [April 16, 2023, 12:33am UTC](https://forums.unrealengine.com/t/node-graph-assistant/216533/31 "2023-04-16T00:33:18Z")

</div>

I’m running into an annoying issue in 5.1 with the plugin. Worked great in 4.26 in my main project, but when I upgraded to 5.1 I found that now nodes with multiple inputs, like a multiplication math node, for example, will now automatically connect the second input to whatever the first input is connected to. This is incredibly annoying when I’m working with a tight space and using math nodes with hard coded numbers. Every time I accidentally drag it too close to the node it’s already connected to, it tries to snap the node into both outputs.

I was wondering if there’s an option to turn this off, an update to modify it or add such an option coming eventually, or if this is now the intended behavior and I should just get used to it.

Here are two links to two different gifs that show the new behavior vs the old behavior:

4.26 (expected, and preferred behavior) - [https://imgur.com/pl8z75F](https://imgur.com/pl8z75F)  
5.1 (unexpected, unwanted behavior) - [https://imgur.com/RATi7Yp](https://imgur.com/RATi7Yp)

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [May 17, 2023, 1:53pm UTC](https://forums.unrealengine.com/t/node-graph-assistant/216533/33 "2023-05-17T13:53:38Z")

</div>

> [@KindredGames](#):
>
> I was wondering if there’s an option to turn this off, an update to modify it or add such an option coming eventually, or if this is now the intended behavior and I should just get used to it.

Try to decrease the auto connect radius in Editor Preferences:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/3/6/836364db0f53d7fe827334c035a1798a9476b0b2.png)

---

<div class="post-metadata">

**Author:** ![MikeSeese](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mikeseese/32/1022829_2.png) [@MikeSeese](https://forums.unrealengine.com/u/MikeSeese)\
**Post date:** [May 29, 2023, 7:33pm UTC](https://forums.unrealengine.com/t/node-graph-assistant/216533/34 "2023-05-29T19:33:46Z")

</div>

> Try to decrease the auto connect radius in Editor Preferences:

This is not a viable solution as it impacts all auto connect behavior. The bug isn’t a distance-based one; the plugin should not try to connect already connected pins.

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [May 30, 2023, 9:47am UTC](https://forums.unrealengine.com/t/node-graph-assistant/216533/35 "2023-05-30T09:47:16Z")

</div>

> [@MikeSeese](#):
>
> the plugin should not try to connect already connected pins.

In the gif they are not connected, it’s just a value, if you want to avoid that use “make literal float” instead of using a value. Decreasing the snap distance worked for me, I’ve never had an issue since I changed that option

---

<div class="post-metadata">

**Author:** ![MikeSeese](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mikeseese/32/1022829_2.png) [@MikeSeese](https://forums.unrealengine.com/u/MikeSeese)\
**Post date:** [June 7, 2023, 12:22am UTC](https://forums.unrealengine.com/t/node-graph-assistant/216533/36 "2023-06-07T00:22:38Z")

</div>

> In the gif they are not connected

`Max Player Count` is connected to the top node of the subtract. It shouldn’t try to connect to another pin as it already has a connection.

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [June 7, 2023, 9:43am UTC](https://forums.unrealengine.com/t/node-graph-assistant/216533/37 "2023-06-07T09:43:20Z")

</div>

> [@MikeSeese](#):
>
> It shouldn’t try to connect to another pin as it already has a connection.

Oh, I didn’t realize you were pointing at that! Thank you for explaining that!

IMHO it would be easier (to implement) not to connect a pin if the value is not the default one (For example if I set a multiply node to 2, I don’t want to be replaced by connecting another value, especially in UE5 where you can plug several types of variables in math nothes)

---

<div class="post-metadata">

**Author:** ![KindredGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KindredGames](https://forums.unrealengine.com/u/KindredGames)\
**Post date:** [June 9, 2023, 6:00am UTC](https://forums.unrealengine.com/t/node-graph-assistant/216533/38 "2023-06-09T06:00:05Z")

</div>

I suppose that would be a viable solution. Perhaps something changed in how Unreal handles connections, but the desired functionality was working just fine in previous versions. Auto connect is extremely frustrating now thanks to this double snapping.

EDIT: I just wanted to point out that for some reason my second gif has a long delay at the start that I didn’t notice when originally posting. If you give it 3 or so seconds you’ll see the behavior I’m concerned about compared to it not happening in the first link from 4.26

---

<div class="post-metadata">

**Author:** ![Anonymous\_f8433afb2aa9d0072a3a88d29105e0a7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_f8433afb2aa9d0072a3a88d29105e0a7](https://forums.unrealengine.com/u/Anonymous_f8433afb2aa9d0072a3a88d29105e0a7)\
**Post date:** [June 16, 2023, 4:29am UTC](https://forums.unrealengine.com/t/node-graph-assistant/216533/39 "2023-06-16T04:29:26Z")

</div>

For example, the blueprint creates five static model components, and then drag it to the time icon, hit a node that hides the static model, and then select the five static model components and hidden models, and press Alt+C to link only one at a time, previously it was possible to link on the five by clicking on them

---

<div class="post-metadata">

**Author:** ![MikeSeese](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mikeseese/32/1022829_2.png) [@MikeSeese](https://forums.unrealengine.com/u/MikeSeese)\
**Post date:** [June 17, 2023, 12:43am UTC](https://forums.unrealengine.com/t/node-graph-assistant/216533/40 "2023-06-17T00:43:00Z")

</div>

I was able to fix the auto connect issue with 2 lines of code, at least to get the behavior I personally want (which is “don’t ever attempt to connect any pins that already have a connection”)

Here is a perfect example of why the above desired behavior is sane: [Imgur: The magic of the Internet](https://imgur.com/a/Qjr39mx). There are many times where BP formatting/cleaning simply just prevents the nodes from being spaced too close. The “radius” setting can prevent this, but it’s just a workaround. At a minimum, I believe the proposed change below should be at least a setting if not just built in.

Before: [Imgur: The magic of the Internet](https://imgur.com/a/3XZgfiF) (I’m not sure why I can’t reproduce the specific example by Azaii (maybe there was an engine update), but, you can see the variable is still trying to attach to the empty For Loop pin despite First Index is connected.  
After: [Imgur: The magic of the Internet](https://imgur.com/a/Vxv4zOe)

Here is the diff:

```auto
diff NodeHelper.cpp.old NodeHelper.cpp
65c65
<
---
>
1104c1104
< if (DirtyPins.Contains(sourceNodePin))
---
> if (DirtyPins.Contains(sourceNodePin) || sourceNodePin->IsConnected())
1137c1137
< if (DirtyPins.Contains(targetNodePin))
---
> if (DirtyPins.Contains(targetNodePin) || targetNodePin->IsConnected())

```

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [September 2, 2023, 12:16pm UTC](https://forums.unrealengine.com/t/node-graph-assistant/216533/41 "2023-09-02T12:16:11Z")

</div>

I finally decided to follow your advice and add it to the settings (Because sometimes I need it and sometimes it’s annoying…)

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/e/91e97c1c5835306fcb148678dcc5c4a07f53a2a3.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/e/91e97c1c5835306fcb148678dcc5c4a07f53a2a3.mp4)

For anyone interested, here’s the code:

> **Add a variable in NodeGraphAssistantConfig.h**
>
> ```auto
> /** If true, allow automatic node connection even if a wire is already connected */
> UPROPERTY(EditAnywhere, config, Category = Features)
> bool AutoConnectIfAlreadyConnected = true;
> 
> ```

> **Replace if (DirtyPins.Contains(sourceNodePin)) in NodeHelper.cpp**
>
> ```auto
> if (GetDefault<UNodeGraphAssistantConfig>()->AutoConnectIfAlreadyConnected)
> {
> if (DirtyPins.Contains(sourceNodePin))
> {
> continue;
> }
> }
> else
> {
> if((DirtyPins.Contains(sourceNodePin) || sourceNodePin->IsConnected()))
> {
> continue;
> }
> }
> 
> ```

> **Replace if (DirtyPins.Contains(targetNodePin)) in NodeHelper.cpp**
>
> ```auto
> if (GetDefault<UNodeGraphAssistantConfig>()->AutoConnectIfAlreadyConnected)
> {
> if (DirtyPins.Contains(targetNodePin))
> {
> continue;
> }
> }
> else
> {
> if((DirtyPins.Contains(targetNodePin) || targetNodePin->IsConnected()))
> {
> continue;
> }
> }
> 
> ```

[Previous page](https://forums.unrealengine.com/t/node-graph-assistant/216533.md?page=1)

[Next page](https://forums.unrealengine.com/t/node-graph-assistant/216533.md?page=3)
