Page 1 of 1
Noesis Unity Android weird resolution stretch problem
Posted: 12 May 2023, 09:09
by VaqifQuluzada
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
Re: Noesis Unity Android weird resolution stretch problem
Posted: 12 May 2023, 11:37
by sfernandez
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.
Re: Noesis Unity Android weird resolution stretch problem
Posted: 12 May 2023, 11:50
by VaqifQuluzada
In order:
- My xaml structure for this panel(Viewbox-uniformtoFill, canvas and viewbox size is set to 1280x800)

- Structure.png (9.24 KiB) Viewed 2753 times
- 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
Re: Noesis Unity Android weird resolution stretch problem
Posted: 15 May 2023, 10:47
by aliagha.huseynli
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 am also waiting for the answer
Re: Noesis Unity Android weird resolution stretch problem
Posted: 15 May 2023, 11:50
by sfernandez
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:
private void UpdateSize()
{
...
UnityEngine.Debug.Log($("View.Size={sizeX}x{sizeY}, Screen.Size={Screen.width}x{Screen.height}"));
}
Re: Noesis Unity Android weird resolution stretch problem
Posted: 15 May 2023, 15:03
by VaqifQuluzada
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)
Re: Noesis Unity Android weird resolution stretch problem
Posted: 15 May 2023, 15:30
by VaqifQuluzada
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)