Browse Source

修改锚点初始位置坐标

蓝色星空 2 years ago
parent
commit
33c196024b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Assets/Scripts/UI/GameManager.cs

+ 1 - 1
Assets/Scripts/UI/GameManager.cs

@@ -1235,7 +1235,7 @@ public class GameManager : MonoSingleton<GameManager>
         VuforiaManager.Instance.list_Anchor.Add(vuforiaAnchor);
         var anchorPos = Vector3.zero;
         Debug.Log(anchor.picturePosition.pointRelativeX+"  "+ WebMapSize.x);
-        anchorPos = new Vector3((float)anchor.picturePosition.pointRelativeX / WebMapSize.x * MapSize.x, -1f, -(float)anchor.picturePosition.pointRelativeY / WebMapSize.y * MapSize.y);
+        anchorPos = new Vector3((float)anchor.picturePosition.pointRelativeX / WebMapSize.x * MapSize.x, 0f, -(float)anchor.picturePosition.pointRelativeY / WebMapSize.y * MapSize.y);
         anchorObj.transform.localPosition = anchorPos;
 
         anchorObj.transform.GetChild(0).gameObject.SetActive(false);