CesiumGS / cesium-unity

Bringing the 3D geospatial ecosystem to Unity
https://cesium.com/platform/cesium-for-unity/
Apache License 2.0
329 stars 77 forks source link

Cesium Window "Quick Add" buttons don't always work #319

Open csciguy8 opened 1 year ago

csciguy8 commented 1 year ago

Install Unity Hub 3.4.2 and Unity 2021.3.25f1.

Follow the 'Cesium for Unity Quickstart" guide, https://cesium.com/learn/unity/unity-quickstart/

  1. When creating the new project, use the "3D Sample Scene (HDRP)" template.
  2. When installing Cesium from the Package Manager, use "Cesium for Unity, Version 1.2.0 - May 09, 2023"
  3. Continue with the tutorial until you add "Cesium World Terrain + Bing Maps Aerial imagery".

The "+" button on the right does nothing when clicked. In fact, every "Quick Add" option behaves like this, except "Blank 3D Tiles Tileset" for some reason. The larger buttons at the top, "Add, Upload, Token, etc." seem to work ok.

Note:

csciguy8 commented 1 year ago

Reproducing this seems to be unpredictable on a wide screen monitor. Seems to work / not work with depending on how I size the main Unity window and the Cesium Window.

j9liu commented 1 year ago

For reference I'm linking to the forum post where people were having this exact problem: https://community.cesium.com/t/ui-problem-with-the-cesium-window-add-buttons-do-not-work-anymore/22455/14

Basically, the clickability of the button seems to be influenced by people's screen scaling. This seems like a Unity bug, since it's supposed to handle this in its UI for us, but we can look into small changes to prevent this error from happening. For example, adjusting the padding and/or size of the buttons.

csciguy8 commented 5 months ago

Issue still persists as of Unity 2022.3.21f1 (Windows).

(encountered this while going through some tutorials)