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

Installing Cesium for Unity For Magic Leap Integration

Open CyrusLabSF opened this issue 8 months ago • 3 comments

I have configured the front end of Unity, however upon installation of Cesium for unity I get 254 errors in the console and it all seems to point to the Reinterop.dll They are the following errors: CS0246 CS8795

I have set the build setting to android.

I've installed all of the necessary packages from package manager.

In preferences > External tools > I have external script editor set to VS 2022 [17.13.35913]

Within XR plug-in management

Magic Leap is checked with no issues OpenXR is checked with no issues. (the resolved themselves).

within OpenXR The enabled Interaction Profile is set to Oculus Touch Controller Profile, since Magic Leap is not available).

In project settings > Player > I have set graphics APIs to Vulkan > Color Gamut is sRGB

Texture compression format > DXT + RGTC(BC4, BC5)

Scripting Backend > IL2CPP

API compatibility > NET Standard 2.1

Target Architecture > ARM64

Target Devices > All Devices

Scripting Define Symbols > Use_Input_System_Pose_control Use_Stick_Contro_Thumbsticks

Attempted to deisntall-reinstall cesium mutliple times to clear this error to no avail. assist if possible.  

Magic Leap OpenXR

TextMeshPro XR Interaction Toolkit XR Plugin Management OpenXR Plugin Magic Leap XR Plugin

Image

Image

CyrusLabSF avatar Mar 20 '25 13:03 CyrusLabSF

I got this down to 226 a few times by copying the Reinterop.dll file to a created folder called Plugins. the issue with that is that that Reinterop.dll file would not update, so when attempting to right click the asset and reimport, an error message populates.

CyrusLabSF avatar Mar 20 '25 13:03 CyrusLabSF

@CyrusLabSF how did you install Cesium for Unity? You need to use our scoped registry when installing using the Unity Package Manager. Installing from the github repo will not work. Instructions here: https://cesium.com/learn/unity/unity-quickstart/#step-1-create-a-new-project-and-import-the-cesium-for-unity-package

Alternatively, you can build it yourself from the source in the repo, but that involves a lot more steps: https://cesium.com/learn/cesium-unity/ref-doc/developer-setup.html

kring avatar Mar 26 '25 03:03 kring

Kring thank you for your response. I will begin the build shortly.

CyrusLabSF avatar May 01 '25 21:05 CyrusLabSF