From 3814471a2bf87c7092fb23d9b78857eacbe4e2ef Mon Sep 17 00:00:00 2001 From: StefanTBG Date: Mon, 14 Jan 2019 22:25:52 -0500 Subject: [PATCH] Updating the ReorderableList control to work with Screen Space - Overlay --- Scripts/Controls/ReorderableList/ReorderableListElement.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/Controls/ReorderableList/ReorderableListElement.cs b/Scripts/Controls/ReorderableList/ReorderableListElement.cs index e772346..fc01c40 100644 --- a/Scripts/Controls/ReorderableList/ReorderableListElement.cs +++ b/Scripts/Controls/ReorderableList/ReorderableListElement.cs @@ -129,7 +129,7 @@ namespace UnityEngine.UI.Extensions var canvas = _draggingObject.GetComponentInParent(); Vector3 worldPoint; RectTransformUtility.ScreenPointToWorldPointInRectangle(canvas.GetComponent(), eventData.position, - canvas.renderMode != RenderMode.ScreenSpaceOverlay ? canvas.worldCamera, out worldPoint); + canvas.renderMode != RenderMode.ScreenSpaceOverlay ? canvas.worldCamera : null, out worldPoint); _draggingObject.position = worldPoint; //Check everything under the cursor to find a ReorderableList