VaqifQuluzada
Topic Author
Posts: 7
Joined: 31 Mar 2023, 11:05

Noesis Unity Android weird resolution stretch problem

12 May 2023, 09:09

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
 
User avatar
sfernandez
Site Admin
Posts: 2997
Joined: 22 Dec 2011, 19:20

Re: Noesis Unity Android weird resolution stretch problem

12 May 2023, 11:37

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.
 
VaqifQuluzada
Topic Author
Posts: 7
Joined: 31 Mar 2023, 11:05

Re: Noesis Unity Android weird resolution stretch problem

12 May 2023, 11:50

In order:
  • My xaml structure for this panel(Viewbox-uniformtoFill, canvas and viewbox size is set to 1280x800)
    Structure.png
    Structure.png (9.24 KiB) Viewed 982 times
  • Android without any data change from Firestore
    AndroidWithoutDataView.png
  • Editor without any data change from Firestore
    EditorWithoutDataView.png
  • Android with data change from Firestore
    AndroidWithDataVIew.png
  • Editor with data change from Firestore
    EditorWithDataView.png
 
User avatar
aliagha.huseynli
Posts: 44
Joined: 29 Mar 2023, 10:17

Re: Noesis Unity Android weird resolution stretch problem

15 May 2023, 10:47

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
 
User avatar
sfernandez
Site Admin
Posts: 2997
Joined: 22 Dec 2011, 19:20

Re: Noesis Unity Android weird resolution stretch problem

15 May 2023, 11:50

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}"));
}
 
VaqifQuluzada
Topic Author
Posts: 7
Joined: 31 Mar 2023, 11:05

Re: Noesis Unity Android weird resolution stretch problem

15 May 2023, 15:03

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)
Attachments
Screenshot 2023-05-15 165826.png
 
VaqifQuluzada
Topic Author
Posts: 7
Joined: 31 Mar 2023, 11:05

Re: Noesis Unity Android weird resolution stretch problem

15 May 2023, 15:30

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)
Attachments
Screenshot 2023-05-15 172931.png

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 54 guests