public static bool OtherWorldPosToPos_Lq(this UnityEngine.UI.Graphic graphic, Vector3 worldPos, Camera worldPosCam) { if (graphic == null) { Debug.LogError("OtherWorldPosToPos_Lq if(graphic == null)"); return(false); } if (worldPosCam == null) { Debug.LogError("OtherWorldPosToPos_Lq if(worldPosCam == null)"); return(false); } worldPos = worldPosCam.WorldToScreenPoint(worldPos); return(graphic.ScreenToPosition_Lq(new Vector2(worldPos.x, worldPos.y))); }