diff --git a/Assets/Scripts/SS3D/Systems/Selection/SelectionCamera.cs b/Assets/Scripts/SS3D/Systems/Selection/SelectionCamera.cs index ab02996a6..7b8170647 100644 --- a/Assets/Scripts/SS3D/Systems/Selection/SelectionCamera.cs +++ b/Assets/Scripts/SS3D/Systems/Selection/SelectionCamera.cs @@ -1,9 +1,6 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; +using UnityEngine; using SS3D.Core.Behaviours; using SS3D.Core; -using UnityEngine.UI; using UnityEngine.Experimental.Rendering; using UnityEngine.InputSystem; using InputSystem = SS3D.Systems.Inputs.InputSystem; @@ -105,7 +102,7 @@ private void OnPostRender() } else { - _readbackTexture.ReadPixels(new Rect(pos.x, Screen.height - pos.y, 1, 1), 0, 0, false); + _readbackTexture.ReadPixels(new Rect(pos.x, Screen.height-pos.y-1, 1, 1), 0, 0, false); col = _readbackTexture.GetPixel(0, 0); }