CesiumGS / cesium-unity

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

create release package of Cesium for Unity failed. #376

Closed lijuhong1981 closed 1 year ago

lijuhong1981 commented 1 year ago

I use "dotnet run --project Build~" commnd create release package of Cesium for Unity,
it print's log "RenderTexture.Create with shadow sampling failed: Hardware does not support shadow compare sampling.", then the release failed. 20231101090020 How to solve this problem? my computer: OS:windows10 22H2 x64 CPU:Intel(R) Core(TM) i9-9900K RAM:64G GPU:NVIDIA Geforce RTX 2080Ti 12G Unity Version:2021.3.10f1c2

kring commented 1 year ago

I think that message is probably unrelated to the failure. It looks like it failed while compiling for UWP. Are you set up with the necessary build toolset for UWP? If not, and you don't need UWP, you could just comment out that part of the process.

lijuhong1981 commented 1 year ago

I don't need UWP,how to remove UMP of the process?

kring commented 1 year ago

Just comment out the lines in the Package.cs file: https://github.com/CesiumGS/cesium-unity/blob/5c5376517722b0e3fe8fad007855b84a0cd1c3da/Build~/Package.cs#L148

I'm going to close this issue. If you have followup questions, post them to the community forum: https://community.cesium.com/c/cesium-for-unity/13

lijuhong1981 commented 1 year ago

ok, thanks!