KyryloKuzyk / AR-Foundation-Remote-support

Support page for the 'AR Foundation Remote' plugin on the Asset Store
https://assetstore.unity.com/packages/tools/utilities/ar-foundation-remote-2-0-201106
9 stars 0 forks source link

Problem importing package: CpuImagesSender.cs(201,29): error CS1513: } expected #101

Closed franMx closed 7 months ago

franMx commented 8 months ago

Describe the bug Using package manager with Unity 2020.3.25f1 for import results in error (Library\PackageCache\com.kyrylokuzyk.arfoundationremote@e562a4c6a80b-1703963364000\Runtime\Sender\CpuImagesSender.cs(201,29): error CS1513: } expected)

Please provide additional info

  1. Does your existing AR project work fine on a real AR device? Yes

  2. Can your issue be reproduced with plugin examples? To import examples into your project, press the 'Installer/Import Samples' button. I can't try the example, as can't compile.

  3. Plugin version. You can find it in the 'Packages/AR Foundation Remote/package.json' file. Version 1.4.36-release.1 - December 30, 2023

  4. Unity version and your OS (Windows/macOS/Linux). 2020.3.25f1 - Windows

  5. Attach your 'manifest.json' file to this bug report.

  6. Press 'File/Save' in Unity, then attach your 'Assets/Plugins/ARFoundationRemoteInstaller/Resources/Settings.asset' file to this bug report. Settings.txt

  7. Your AR device model and its OS version. Please make sure your AR device supports ARKit/ARCore and supports a feature you would like to test in the Editor. N/A

Errors, warnings, and stack traces Add all errors/warnings from the Unity Editor and from the AR Companion if any. Please send errors and warnings as text (with all stack traces), NOT as screenshots (you can select all console output by pressing ctrl/cmd+a, then copy it by pressing ctrl/cmd+c). If the Editor is crashing or freezing with the plugin, please attach your Editor.log file immediately after the crash/freeze has happened. You can find the Editor.log file here. Library\PackageCache\com.kyrylokuzyk.arfoundationremote@e562a4c6a80b-1703963364000\Runtime\Sender\CpuImagesSender.cs(201,29): error CS1513: } expected Library\PackageCache\com.kyrylokuzyk.arfoundationremote@e562a4c6a80b-1703963364000\Runtime\Sender\CpuImagesSender.cs(256,5): error CS1022: Type or namespace definition, or end-of-file expected Library\PackageCache\com.kyrylokuzyk.arfoundationremote@e562a4c6a80b-1703963364000\Runtime\Sender\CpuImagesSender.cs(310,1): error CS1022: Type or namespace definition, or end-of-file expected

KyryloKuzyk commented 7 months ago

I'm sorry for the late reply.

So the issue was in the local method attribute, which is a C#9.0 feature that's not available in Unity 2020.3. I fixed the issue in version 1.4.36-release.2/2.0.36-release.2. Can you please update and tell me if it works for you?