livekit / client-sdk-unity-web

Client SDK for Unity WebGL
Apache License 2.0
47 stars 15 forks source link

LiveKit namespace not found #52

Open leeprobert opened 3 weeks ago

leeprobert commented 3 weeks ago

I have returned to an older project (that was working) and the project no longer recognises the LiveKit namespace and is throwing the following error:

Assets\Samples\LiveKit WebGL SDK\1.5.1\Example\ExampleRoom\ExampleRoom.cs(4,7): error CS0246: The type or namespace name 'LiveKit' could not be found (are you missing a using directive or an assembly reference?)

I have removed the old package and re-installed the SDK from the Git URL, but the error persists.

I am using Unity 2022.3.15 LTS on a Windows 10 PC.

What has changed here? Do I need another branch?

virnectahnjunmo commented 2 weeks ago

You need to add LiveKit Bridge to Assembly Definition References in Example Assembly Import Settings. This can be found in Packages-LiveKit WebGL SDK-Runtime. assembly

leeprobert commented 2 weeks ago

I am also getting an error : EntryPointNotFoundException: PushString assembly:<unknown assembly> This is from the JSNative Assembly. Does this need to be added to?