mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-16 21:08:28 +00:00
correctly position the minimap
This commit is contained in:
parent
3d81bd25ca
commit
19b6c25432
1 changed files with 1 additions and 2 deletions
|
@ -210,8 +210,7 @@ namespace SanAndreasUnity.Behaviours
|
|||
|
||||
// update position of UI
|
||||
|
||||
int worldSize = mapSize * 4;
|
||||
Vector3 mapPos = - new Vector3(this.FocusPos.x, this.FocusPos.z, 0f) * mapSize / (float)worldSize;
|
||||
Vector3 mapPos = - new Vector3(this.FocusPos.x, this.FocusPos.z, 0f) * (mapSize / (float)mapEdge);
|
||||
mapImage.rectTransform.localPosition = mapPos;
|
||||
|
||||
// update rotation of UI
|
||||
|
|
Loading…
Add table
Reference in a new issue