cesium-unity
cesium-unity copied to clipboard
Cesium Window "Quick Add" buttons don't always work
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/
- When creating the new project, use the "3D Sample Scene (HDRP)" template.
- When installing Cesium from the Package Manager, use "Cesium for Unity, Version 1.2.0 - May 09, 2023"
- 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.
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.
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.
Issue still persists as of Unity 2022.3.21f1 (Windows).
(encountered this while going through some tutorials)