-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed disabling SCAV-Mode #9
Conversation
Fixed disabling SCAV-Mode and moved PMC object to center
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I already noticed it while moving/scaling windows around, I'll think about something |
Updated logic for pmc-element-centering
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get the parent Canvas Group transform instead and use that to scale it with math. var mmSSC = pmcs.transform.parent.gameObject;
pmcs.transform.position = new Vector3(mmSSC.transform.position.x / 1.305f, pmcs.transform.position.y * 0.75f, 0); |
That scaling seems to do the trick, the selection for it stays nicely in the middle now. (Tested at 720, 1080, 1440, 4k) |
I have tested it as well on 16:9 and 4:3, seems to always be fine. |
Fixed disabling SCAV-Mode and moved PMC object to center, may need additional logic on resolutions other than 1080p