Skip to content

WebGL Build issueΒ #198

@Champi67

Description

@Champi67

Hello,

I'm using Unity 2021.3.17f1, URP, Cesium v0.2.0
I've just tried to compile again our app in WebGL. Since the last build I've added Cesium in it, but the app can run without using it.
So now, the build is failing because of compile errors about cesium.

My question is:

  • It is planned to add in a futur version the WebGl build support ?
  • If not, maybe add some stuff in the code to let the compile go to the end even cesium is not working.

Thanks in advance,

Just added console logs:

Library\PackageCache\[email protected]\Runtime\Cesium3DTileset.cs(1,7): error CS0246: The type or namespace name 'Reinterop' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumBingMapsRasterOverlay.cs(1,7): error CS0246: The type or namespace name 'Reinterop' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumCreditSystem.cs(1,7): error CS0246: The type or namespace name 'Reinterop' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumGeoreference.cs(3,7): error CS0246: The type or namespace name 'Reinterop' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumGlobeAnchor.cs(1,7): error CS0246: The type or namespace name 'Reinterop' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumIonRasterOverlay.cs(1,7): error CS0246: The type or namespace name 'Reinterop' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumMetadata.cs(1,7): error CS0246: The type or namespace name 'Reinterop' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumTileMapServiceRasterOverlay.cs(1,7): error CS0246: The type or namespace name 'Reinterop' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumWebMapServiceRasterOverlay.cs(1,7): error CS0246: The type or namespace name 'Reinterop' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumWgs84Ellipsoid.cs(1,7): error CS0246: The type or namespace name 'Reinterop' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\MetadataProperty.cs(2,7): error CS0246: The type or namespace name 'Reinterop' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\NativeDownloadHandler.cs(1,7): error CS0246: The type or namespace name 'Reinterop' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumBingMapsRasterOverlay.cs(27,6): error CS0246: The type or namespace name 'ReinteropNativeImplementationAttribute' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumBingMapsRasterOverlay.cs(27,6): error CS0246: The type or namespace name 'ReinteropNativeImplementation' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumBingMapsRasterOverlay.cs(65,41): error CS8795: Partial method 'CesiumBingMapsRasterOverlay.AddToTileset(Cesium3DTileset)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\CesiumBingMapsRasterOverlay.cs(68,41): error CS8795: Partial method 'CesiumBingMapsRasterOverlay.RemoveFromTileset(Cesium3DTileset)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\CesiumCreditSystem.cs(20,6): error CS0246: The type or namespace name 'ReinteropNativeImplementationAttribute' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumCreditSystem.cs(20,6): error CS0246: The type or namespace name 'ReinteropNativeImplementation' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumCreditSystem.cs(83,30): error CS8795: Partial method 'CesiumCreditSystem.Update()' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\CesiumGeoreference.cs(62,6): error CS0246: The type or namespace name 'ReinteropNativeImplementationAttribute' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumGeoreference.cs(62,6): error CS0246: The type or namespace name 'ReinteropNativeImplementation' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumGlobeAnchor.cs(79,6): error CS0246: The type or namespace name 'ReinteropNativeImplementationAttribute' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumGlobeAnchor.cs(79,6): error CS0246: The type or namespace name 'ReinteropNativeImplementation' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumGeoreference.cs(276,30): error CS8795: Partial method 'CesiumGeoreference.InitializeOrigin()' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\CesiumGeoreference.cs(282,30): error CS8795: Partial method 'CesiumGeoreference.RecalculateOrigin()' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\CesiumGeoreference.cs(339,13): error CS8795: Partial method 'CesiumGeoreference.TransformUnityPositionToEarthCenteredEarthFixed(double3)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\CesiumGeoreference.cs(350,13): error CS8795: Partial method 'CesiumGeoreference.TransformEarthCenteredEarthFixedPositionToUnity(double3)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\CesiumGeoreference.cs(361,13): error CS8795: Partial method 'CesiumGeoreference.TransformUnityDirectionToEarthCenteredEarthFixed(double3)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\CesiumGeoreference.cs(372,13): error CS8795: Partial method 'CesiumGeoreference.TransformEarthCenteredEarthFixedDirectionToUnity(double3)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\CesiumGlobeAnchor.cs(633,37): error CS8795: Partial method 'CesiumGlobeAnchor.AdjustOrientation(CesiumGlobeAnchor, double3, double3)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\CesiumIonRasterOverlay.cs(9,6): error CS0246: The type or namespace name 'ReinteropNativeImplementationAttribute' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumIonRasterOverlay.cs(9,6): error CS0246: The type or namespace name 'ReinteropNativeImplementation' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumIonRasterOverlay.cs(44,41): error CS8795: Partial method 'CesiumIonRasterOverlay.AddToTileset(Cesium3DTileset)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\CesiumIonRasterOverlay.cs(45,41): error CS8795: Partial method 'CesiumIonRasterOverlay.RemoveFromTileset(Cesium3DTileset)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\CesiumMetadata.cs(9,6): error CS0246: The type or namespace name 'ReinteropNativeImplementationAttribute' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumMetadata.cs(9,6): error CS0246: The type or namespace name 'ReinteropNativeImplementation' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumMetadata.cs(12,31): error CS8795: Partial method 'CesiumMetadata.loadMetadata(Transform, int, MetadataProperty[])' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\CesiumMetadata.cs(14,29): error CS8795: Partial method 'CesiumMetadata.getNumberOfProperties(Transform)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\CesiumTileMapServiceRasterOverlay.cs(10,6): error CS0246: The type or namespace name 'ReinteropNativeImplementationAttribute' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumTileMapServiceRasterOverlay.cs(10,6): error CS0246: The type or namespace name 'ReinteropNativeImplementation' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumWebMapServiceRasterOverlay.cs(10,6): error CS0246: The type or namespace name 'ReinteropNativeImplementationAttribute' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumWebMapServiceRasterOverlay.cs(10,6): error CS0246: The type or namespace name 'ReinteropNativeImplementation' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumWebMapServiceRasterOverlay.cs(122,41): error CS8795: Partial method 'CesiumWebMapServiceRasterOverlay.AddToTileset(Cesium3DTileset)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\CesiumWebMapServiceRasterOverlay.cs(123,41): error CS8795: Partial method 'CesiumWebMapServiceRasterOverlay.RemoveFromTileset(Cesium3DTileset)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\CesiumWgs84Ellipsoid.cs(10,6): error CS0246: The type or namespace name 'ReinteropNativeImplementationAttribute' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumWgs84Ellipsoid.cs(10,6): error CS0246: The type or namespace name 'ReinteropNativeImplementation' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\CesiumWgs84Ellipsoid.cs(17,39): error CS8795: Partial method 'CesiumWgs84Ellipsoid.GetRadii()' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\CesiumWgs84Ellipsoid.cs(44,40): error CS8795: Partial method 'CesiumWgs84Ellipsoid.ScaleToGeodeticSurface(double3)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\CesiumWgs84Ellipsoid.cs(52,39): error CS8795: Partial method 'CesiumWgs84Ellipsoid.GeodeticSurfaceNormal(double3)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\CesiumWgs84Ellipsoid.cs(62,13): error CS8795: Partial method 'CesiumWgs84Ellipsoid.LongitudeLatitudeHeightToEarthCenteredEarthFixed(double3)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\CesiumWgs84Ellipsoid.cs(73,13): error CS8795: Partial method 'CesiumWgs84Ellipsoid.EarthCenteredEarthFixedToLongitudeLatitudeHeight(double3)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\CesiumTileMapServiceRasterOverlay.cs(86,41): error CS8795: Partial method 'CesiumTileMapServiceRasterOverlay.AddToTileset(Cesium3DTileset)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\CesiumTileMapServiceRasterOverlay.cs(87,41): error CS8795: Partial method 'CesiumTileMapServiceRasterOverlay.RemoveFromTileset(Cesium3DTileset)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\MetadataProperty.cs(30,6): error CS0246: The type or namespace name 'ReinteropNativeImplementationAttribute' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\MetadataProperty.cs(30,6): error CS0246: The type or namespace name 'ReinteropNativeImplementation' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\MetadataProperty.cs(37,31): error CS8795: Partial method 'MetadataProperty.GetPropertyName()' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\MetadataProperty.cs(42,29): error CS8795: Partial method 'MetadataProperty.IsNormalized()' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\MetadataProperty.cs(48,28): error CS8795: Partial method 'MetadataProperty.GetComponentCount()' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\MetadataProperty.cs(50,31): error CS8795: Partial method 'MetadataProperty.GetComponent(MetadataProperty, int)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\MetadataProperty.cs(55,37): error CS8795: Partial method 'MetadataProperty.GetComponentType()' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\MetadataProperty.cs(60,37): error CS8795: Partial method 'MetadataProperty.GetMetadataType()' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\MetadataProperty.cs(67,30): error CS8795: Partial method 'MetadataProperty.GetInt8(sbyte)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\MetadataProperty.cs(74,29): error CS8795: Partial method 'MetadataProperty.GetUInt8(byte)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\MetadataProperty.cs(81,30): error CS8795: Partial method 'MetadataProperty.GetInt16(short)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\MetadataProperty.cs(88,31): error CS8795: Partial method 'MetadataProperty.GetUInt16(ushort)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\MetadataProperty.cs(95,30): error CS8795: Partial method 'MetadataProperty.GetInt32(int)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\MetadataProperty.cs(102,31): error CS8795: Partial method 'MetadataProperty.GetUInt32(uint)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\MetadataProperty.cs(109,30): error CS8795: Partial method 'MetadataProperty.GetInt64(long)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\MetadataProperty.cs(116,31): error CS8795: Partial method 'MetadataProperty.GetUInt64(ulong)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\MetadataProperty.cs(123,30): error CS8795: Partial method 'MetadataProperty.GetFloat32(float)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\MetadataProperty.cs(130,31): error CS8795: Partial method 'MetadataProperty.GetFloat64(double)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\MetadataProperty.cs(137,32): error CS8795: Partial method 'MetadataProperty.GetBoolean(bool)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\MetadataProperty.cs(144,31): error CS8795: Partial method 'MetadataProperty.GetString(string)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\NativeDownloadHandler.cs(7,6): error CS0246: The type or namespace name 'ReinteropNativeImplementationAttribute' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\NativeDownloadHandler.cs(7,6): error CS0246: The type or namespace name 'ReinteropNativeImplementation' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\NativeDownloadHandler.cs(27,30): error CS8795: Partial method 'NativeDownloadHandler.ReceiveDataNative(IntPtr, int)' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\Cesium3DTileset.cs(41,6): error CS0246: The type or namespace name 'ReinteropNativeImplementationAttribute' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\Cesium3DTileset.cs(41,6): error CS0246: The type or namespace name 'ReinteropNativeImplementation' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\Cesium3DTileset.cs(616,30): error CS8795: Partial method 'Cesium3DTileset.Start()' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\Cesium3DTileset.cs(617,30): error CS8795: Partial method 'Cesium3DTileset.Update()' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\Cesium3DTileset.cs(618,30): error CS8795: Partial method 'Cesium3DTileset.OnValidate()' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\Cesium3DTileset.cs(620,30): error CS8795: Partial method 'Cesium3DTileset.OnEnable()' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\Cesium3DTileset.cs(621,30): error CS8795: Partial method 'Cesium3DTileset.OnDisable()' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\Cesium3DTileset.cs(627,29): error CS8795: Partial method 'Cesium3DTileset.RecreateTileset()' must have an implementation part because it has accessibility modifiers.
Library\PackageCache\[email protected]\Runtime\Cesium3DTileset.cs(632,29): error CS8795: Partial method 'Cesium3DTileset.FocusTileset()' must have an implementation part because it has accessibility modifiers.

Error building Player because scripts had compiler errors

Build completed with a result of 'Failed' in 10 seconds (9692 ms)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

UnityEditor.BuildPlayerWindow+BuildMethodException: 86 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002da] in <434908727417408abd02bbd1a0835ef8>:0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <434908727417408abd02bbd1a0835ef8>:0
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions