From 232a650e5be66e95bd377ca38eb7d060009cabf1 Mon Sep 17 00:00:00 2001 From: Josh Dassinger Date: Tue, 3 Feb 2026 13:10:13 -0600 Subject: [PATCH] Attempts to fix an NRE in Draggable.Init when parented to a Canvas that is currently disabled I.E. Crafting or Inventory. This seems to have broken during the UI Overhead Optimzations work. --- CommunityEntity.UI.Draggable.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CommunityEntity.UI.Draggable.cs b/CommunityEntity.UI.Draggable.cs index 35ffa19..6633567 100644 --- a/CommunityEntity.UI.Draggable.cs +++ b/CommunityEntity.UI.Draggable.cs @@ -128,7 +128,7 @@ public void Init() // setup values rt = (transform as RectTransform); canvasGroup = GetComponent(); - canvas = GetComponentInParent().transform; + canvas = GetComponentInParent(true).transform; realParent = rt.parent; index = rt.GetSiblingIndex();