cesium-unity icon indicating copy to clipboard operation
cesium-unity copied to clipboard

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

Open csciguy8 opened this issue 2 years ago • 3 comments

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:

  • Also happens when using the "3D Sample Scene (URP)" template, but with the main Unity window resized in a different way.
  • I'm using an ultra wide monitor (3440 x 1440) connected to a PC tower. Does not occur when using my laptop (1920 x 1200).
  • I've been able to work around it by dragging the Cesium Window to a different place in my layout, and trying again.

csciguy8 avatar May 23 '23 17:05 csciguy8

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.

csciguy8 avatar May 23 '23 17:05 csciguy8

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.

j9liu avatar May 23 '23 17:05 j9liu

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

(encountered this while going through some tutorials)

csciguy8 avatar Mar 19 '24 16:03 csciguy8