From e3cd04411f2babbe5a8f0c100c0765d6dc7be576 Mon Sep 17 00:00:00 2001 From: Jacopin Eliott Date: Sat, 10 Feb 2024 16:54:06 +0900 Subject: [PATCH] [Update] Display the full reaction name above CyJson edges Major: - Was using the short and cryptic name - Now shows a full human-friendly name --- Assets/Scripts/Modules/Graphs/CyJsonEdgeGO.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/Modules/Graphs/CyJsonEdgeGO.cs b/Assets/Scripts/Modules/Graphs/CyJsonEdgeGO.cs index 68d9f63..a3a166e 100644 --- a/Assets/Scripts/Modules/Graphs/CyJsonEdgeGO.cs +++ b/Assets/Scripts/Modules/Graphs/CyJsonEdgeGO.cs @@ -289,7 +289,7 @@ public void Initialize(CyJsonModule _rootCyJsonGraphGO, CyJsonEdge _edge) SetEdgeData(_edge); gameObject.SetActive(true); gameObject.name = $"{edgeData.ID}"; - SetName(edgeData.name); + SetName(edgeData.reactionName); HideName(); SetDefaultWidth(1 / refRootCyJsonGraphGO.graphScalingData.sizeScaleFactor, 1 / refRootCyJsonGraphGO.graphScalingData.sizeScaleFactor);