Merged in peralysis/unity-ui-extensions (pull request #41)

Updating the ReorderableList control to work with Screen Space - Overlay
pull/413/head
Stefan Perales 2019-01-15 17:29:43 +00:00 committed by Simon Jackson
commit 39a8671925
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ namespace UnityEngine.UI.Extensions
var canvas = _draggingObject.GetComponentInParent<Canvas>();
Vector3 worldPoint;
RectTransformUtility.ScreenPointToWorldPointInRectangle(canvas.GetComponent<RectTransform>(), eventData.position,
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