- VaqifQuluzada
- Posts: 7
- Joined:
Noesis Unity Android weird resolution stretch problem
Hi everyone.
My issue is that: I set my screen resolution to 1280x800. When i use Noesis in editor, and show my ui panel in play mode everything seems fine and my panel seems in resolution of 1280x800. But when i build this into android (my android orientation is landscape both in editor and android - i set this in player settings) my panel look stretched. How can i solve this problem?
When this problem occurs: I fetch data from firestore and set this data values on UI. When i put only empty panel (without firestore data change) everything seems fine. But when i add data to panel using firestore this problem occurs
My issue is that: I set my screen resolution to 1280x800. When i use Noesis in editor, and show my ui panel in play mode everything seems fine and my panel seems in resolution of 1280x800. But when i build this into android (my android orientation is landscape both in editor and android - i set this in player settings) my panel look stretched. How can i solve this problem?
When this problem occurs: I fetch data from firestore and set this data values on UI. When i put only empty panel (without firestore data change) everything seems fine. But when i add data to panel using firestore this problem occurs
-
sfernandez
Site Admin
- Posts: 3005
- Joined:
Re: Noesis Unity Android weird resolution stretch problem
Could you please post some reference images to see the kind of stretching that is occurring?
I need to understand if it is related to layout, DPI scale or any other issue.
I need to understand if it is related to layout, DPI scale or any other issue.
- VaqifQuluzada
- Posts: 7
- Joined:
Re: Noesis Unity Android weird resolution stretch problem
In order:
- My xaml structure for this panel(Viewbox-uniformtoFill, canvas and viewbox size is set to 1280x800)
- Android without any data change from Firestore
- Editor without any data change from Firestore
- Android with data change from Firestore
- Editor with data change from Firestore
- aliagha.huseynli
- Posts: 44
- Joined:
Re: Noesis Unity Android weird resolution stretch problem
I am also waiting for the answerCould you please post some reference images to see the kind of stretching that is occurring?
I need to understand if it is related to layout, DPI scale or any other issue.
-
sfernandez
Site Admin
- Posts: 3005
- Joined:
Re: Noesis Unity Android weird resolution stretch problem
One more question, if you fill your panel with random data and don't call Firestore libraries, does the android device also render with that incorrect stretch?
Could you log the screen resolution that Unity is reporting when the wrong stretch is happening? Please add the logs to NoesisView.cs in the UpdateSize() method:
Could you log the screen resolution that Unity is reporting when the wrong stretch is happening? Please add the logs to NoesisView.cs in the UpdateSize() method:
Code: Select all
private void UpdateSize()
{
...
UnityEngine.Debug.Log($("View.Size={sizeX}x{sizeY}, Screen.Size={Screen.width}x{Screen.height}"));
}
- VaqifQuluzada
- Posts: 7
- Joined:
Re: Noesis Unity Android weird resolution stretch problem
1) When i fill ui without firestore(using local script data) it works ok - no orientation or strech problem.
2) I set development build, and make android debug on console, but it shows the same resolution(image below)
2) I set development build, and make android debug on console, but it shows the same resolution(image below)
- VaqifQuluzada
- Posts: 7
- Joined:
Re: Noesis Unity Android weird resolution stretch problem
UPDATED
Removing Vulkan from Graphics APİ solved my problem. İ get reference from this post:
viewtopic.php?t=2516
Anyone having this issue just enter Edit-Project Settings-Player-Other settings:
1) Remove auto graphics api tick
2) Delete Vulkan and keep OpenGLES3 (or if you have other available version)
Removing Vulkan from Graphics APİ solved my problem. İ get reference from this post:
viewtopic.php?t=2516
Anyone having this issue just enter Edit-Project Settings-Player-Other settings:
1) Remove auto graphics api tick
2) Delete Vulkan and keep OpenGLES3 (or if you have other available version)
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 5 guests