keijiro / KlakNDI

NDI® plugin for Unity
https://ndi.video
Other
781 stars 140 forks source link

`The type or namespace name 'Span<>' could not be found` in Unity 2020.3.3-f1 #146

Closed batchku closed 2 years ago

batchku commented 2 years ago

I'm trying to get this package working in Unity 2020.3.3-f1 under Mac OS 12.1, using the instructions in the README.

I'm getting the following error after trying to import and compile the package:

Library/PackageCache/jp.keijiro.klak.ndi@2.0.3/Runtime/Interop/Find.cs(42,12): error CS0246: The type or namespace name 'Span<>' could not be found (are you missing a using directive or an assembly reference?)

What am I doing wrong?

keijiro commented 2 years ago

Could you attach manifest.json?

batchku commented 2 years ago

Here it is below:

{
  "scopedRegistries": [
    {
      "name": "Keijiro",
      "url": "https://registry.npmjs.com",
      "scopes": [ "jp.keijiro"]
    }
  ],
  "dependencies": {
    "com.unity.2d.sprite": "1.0.0",
    "com.unity.2d.tilemap": "1.0.0",
    "com.unity.ads": "3.7.5",
    "com.unity.analytics": "3.6.12",
    "com.unity.collab-proxy": "1.15.12",
    "com.unity.ide.rider": "2.0.7",
    "com.unity.ide.visualstudio": "2.0.14",
    "com.unity.ide.vscode": "1.2.4",
    "com.unity.inputsystem": "1.3.0",
    "com.unity.purchasing": "4.1.2",
    "com.unity.test-framework": "1.1.29",
    "com.unity.textmeshpro": "3.0.6",
    "com.unity.timeline": "1.4.8",
    "com.unity.ugui": "1.0.0",
    "com.unity.xr.legacyinputhelpers": "2.1.8",
    "jp.keijiro.klak.syphon": "0.0.4",
    "jp.keijiro.klak.ndi": "2.0.3",
    "com.unity.modules.ai": "1.0.0",
    "com.unity.modules.androidjni": "1.0.0",
    "com.unity.modules.animation": "1.0.0",
    "com.unity.modules.assetbundle": "1.0.0",
    "com.unity.modules.audio": "1.0.0",
    "com.unity.modules.cloth": "1.0.0",
    "com.unity.modules.director": "1.0.0",
    "com.unity.modules.imageconversion": "1.0.0",
    "com.unity.modules.imgui": "1.0.0",
    "com.unity.modules.jsonserialize": "1.0.0",
    "com.unity.modules.particlesystem": "1.0.0",
    "com.unity.modules.physics": "1.0.0",
    "com.unity.modules.physics2d": "1.0.0",
    "com.unity.modules.screencapture": "1.0.0",
    "com.unity.modules.terrain": "1.0.0",
    "com.unity.modules.terrainphysics": "1.0.0",
    "com.unity.modules.tilemap": "1.0.0",
    "com.unity.modules.ui": "1.0.0",
    "com.unity.modules.uielements": "1.0.0",
    "com.unity.modules.umbra": "1.0.0",
    "com.unity.modules.unityanalytics": "1.0.0",
    "com.unity.modules.unitywebrequest": "1.0.0",
    "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
    "com.unity.modules.unitywebrequestaudio": "1.0.0",
    "com.unity.modules.unitywebrequesttexture": "1.0.0",
    "com.unity.modules.unitywebrequestwww": "1.0.0",
    "com.unity.modules.vehicles": "1.0.0",
    "com.unity.modules.video": "1.0.0",
    "com.unity.modules.vr": "1.0.0",
    "com.unity.modules.wind": "1.0.0",
    "com.unity.modules.xr": "1.0.0"
  }
}
keijiro commented 2 years ago

You're using Unity 2020, so please follow the instructions in "Unity 2021.1 or earlier".

keijiro commented 2 years ago

I'm closing this issue now. Please reopen it if it still reproduces.

hybridherbst commented 1 year ago

For future people that are still looking for 2020 instructions, they're here: https://github.com/keijiro/KlakNDI/commit/cc992ab92781d8d4660bd6143bef60705529ee1b