In the image above the Back button was in the corner of the screen and the right arrow was near the end of the canvas. I left my computer for like 30 mins and I come back to it like this, I've tried fixing it but if I scale the canvas it still isn't right and id have to adjust all the UI I have done. Is there a way to reset the canvas to normal or some kind of fix? I don't have time to rescale all my UI so it would be nice to know, thanks.
Make sure the Canvas is set to "Scale with screen size" and that the "Back" button is pivoted ( go to pivot -> upper right corner and use ALT and then SHIFT to make sure it's pivoted ).
Other than this, if it was your cat just "Ctrl+Z" your way out or revert to a slighty older version if you are using version control.
For some reason unity re-scaled itself and now everything is (mostly) back to normal, I have no idea how this happened and how it fixed itself (I hadn't touched the project since this post until now (about a day later) and it was fixed)
Related
I have a vertical toolbar shifted to right edge in screen because of interference by 3D Touch on left. It was working fine until now but when tested in new iPhoneXS, tap is not working properly. Tap works only towards left end of buttons and does not work towards right edge in screen. However, if we long press on right edge, it works fine. I also noticed that UITouchPhase.Moved is fired after UITouchPhase.Began, even though x and y coordinate do not change. Any ideas, how to fix this issue?
In toolbar's buttons, there are two grids i.e one color indicator (tap works fine) and other to select drawing tool (tap does not work, long press does). Tried adjusting rows and columns in grid, but that did not help.
There is a problem i created a button and text which is display correct on android resolution but when i change the resolution to free aspect it change the position of button and text like this
I tick the button component Image (Script) preserve aspect and changing the anchors of both object like this
but nothing happen i want to display these two on same position where it is when changing any resolution.
First of all, do not use Free Aspect to test different resolutions. Free aspect isn't really a resolution and often you can see bugs that you will not ever see on real devices.
For your problem anyway you have what's called Anchors in each UI element. An anchor defines where you want to "attach" your UI element and especially to what element or corner of the screen you want to attach it. For your example, on the Rect Transform, click on the square drawing (representing the anchors) and choose Bottom Left.
Your element will be moved, you can move it where you want to and it will always be attached to the bottom left corner of your screen:
If you want to know more about UI for multiple resolutions, you can go here: http://docs.unity3d.com/Manual/HOWTO-UIMultiResolution.html
Good luck!
I have the need to make a control that allows for multi directional scrolling, but only for specific elements within the scollviewer.
Something like this:
The control is split into 4 parts.
Top left is a static header, it will not move when scrolling.
Bottom left works like a listbox, only scrolls up and down.
Bottom right can scroll in all directions but needs to be in sync with the scrolling of the bottom left area.
Top right is the header for the content in the bottom right, and must be in sync as well.
There is an app on the Windows Store now called Project Timeline, and it appears they have done this with 1 ScrollViewer, but im not entirely sure how.
I've implemented a solution with 2 scrollviewers, but between the 2 scrollviewers there is scroll tearing on slower devices, and this is unacceptable.
Anyone have any ideas how this can be done with 1 scrollviewer?
PS, I'm looking for a XAML solution, not a WinJS solution.
Thanks.
Looking for days, didnt find anything, then as soon as I post this question i figure it out... typical right?
This is accomplished with:
ScrollViewer.TopLeftHeader
ScrollViewer.TopHeader
ScrollViewer.LeftHeader
http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.scrollviewer.topleftheader
First of all, please put aside notions of "Your application shouldn't do this". This is exactly what the people purchasing this software will be expecting.
How can I, system-wide, increase the size of the mouse cursor? I'd have to increase all mouse cursors too, so I don't think SetCursor would do the trick, at least not in any nice, clean way.
And I can't use the Form's Cursor Size as detailed here, as this would only affect the cursor when it's active on the form.
I see that there are "Extra Large" Mouse Cursors available in Windows' Ease-of-Access Centre, so there must be a way...
Any ideas?
Any solution to this is going to get really hairy because of two things:
1. Any application can change the cursor to anything else on its own
2. Cursors are at most 32x32 pixels
If an application changes the cursor to something that is 32x32 pixels, there's no way to make that any larger.
The Extra Large cursors are just just using more of the 32x32 pixels a cursor can use. The default ones are just using the top-left more-or-less quadrant of the 32x32.
You might be able to constantly Retrieve the current cursor using
http://msdn.microsoft.com/en-us/library/windows/desktop/ms648388(v=vs.85).aspx
and then paint ontop of all windows that cursor doubled in size by stretching the image, then set the cursor to some empty cursor file. This is horribly hacky and will likely cause tons of flickering and compatibility problems.
I am using Ajax toolkit and ModalPopExtender specifically, works fine, just have a big time issue with its positioning, I am using it to display images and all images have different height and width and hence some times it appears like bottom left of the screen with half of it going off the screen, I could have fixed it by specifying values for X and Y coordinates, but since the images sizes changes, if image is to small then user need to scroll the pointer all the way up.
The thing is it appears at a random location but as soon as I scroll or re size page, it relocates it self to the exact center of the screen (where its actually required).
Experts, kindly suggest a work around.
Thanks in advance.
Looks like there is no rigid solution to it, We contacted MSDN team as well, solved by replacing it with the Jquery Light Box.