Unity-Technologies / com.unity.webrtc

WebRTC package for Unity
Other
742 stars 186 forks source link

[BUG]: Missing Assembly reference error in Unity 2021.3.10f1 / WebRTC Version 2.4.0-exp.10 #829

Closed amieka closed 1 year ago

amieka commented 1 year ago

Package version

2.4.0-exp.10

Environment

* OS:macOS Monterey (Apple M1 Silicon)
* Unity version: 2021.3.10f1

Steps To Reproduce

Download the FPS microgame and open it in Unity (ref : https://learn.unity.com/project/fps-template) Add the preview WebRTC package to the project. Open any script file under the namespace GamePlay Import the WebRTC package using Unity.WebRTC;

Current Behavior

Note that Unity editor complains about missing assembly references for the imported WebRTC package when attempted to build

See screen shot attached

Expected Behavior

Project should build without any errors

Anything else?

Screen Shot 2022-10-19 at 5 38 26 PM

ZenBre4ker commented 1 year ago

This is a user error: You need to add the unity.webrtc.runtime assembly definition to the fps.gameplay assembly definition references. grafik grafik

amieka commented 1 year ago

@ZenBre4ker thanks for pointing out. The issue is resolved now. However I do want to point out that with Unity 2019 the assembles references were auto attached after the WebRTC package was imported.

amieka commented 1 year ago

Closing this issue since its working as expected.