From f92a516d9d97c929e9f12855eefc8c8c25287e1b Mon Sep 17 00:00:00 2001 From: Stefan Perales Date: Mon, 14 Jan 2019 22:05:27 -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 67791f7..e772346 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.worldCamera, out worldPoint); + canvas.renderMode != RenderMode.ScreenSpaceOverlay ? canvas.worldCamera, out worldPoint); _draggingObject.position = worldPoint; //Check everything under the cursor to find a ReorderableList