Hello!
In webgl, when changing the size of the window, crosshair does not adjust to the size of the window and remains in the same place as when the game was launched. That is, it is not located in the center of the screen, but shifted to the side. How can I fix this so that when changing the size of the game (including changing it to fullscreen), crosshair also adjusts to the size of the window and is centered?
I use mfps 1.75.
Crosshair not centered
- Lovatto
- Admin
- Posts: 1834
- Joined: Sun Dec 07, 2014 3:18 pm
- Contact:
Try removing all references of InitialPosition in bl_UCrosshair.cs,
remove or comment all these lines from the script:
remove or comment all these lines from the script:
Code: Select all
private Vector3 InitialPosition;
InitialPosition = RootContent.position;
RootContent.position = InitialPosition;