[Issue] `WebBrowserClient` does not contain a definition for `LogWarning`
See original GitHub issueWhat platform are you experiencing this issue on?
Windows
What architecture is your platform?
64-Bit
What version of UWB are you using?
Preview GitLab Package
What Unity version are you running?
2021.3.2f1
Describe what the issue you are experiencing is.
When I import the newest package following the instructions I receive this error:
Library\PackageCache\dev.voltstro.unitywebbrowser@7ab688c164\Runtime\WebBrowserUI.cs(333,39): error CS1061: 'WebBrowserClient' does not contain a definition for 'LogWarning' and no accessible extension method 'LogWarning' accepting a first argument of type 'WebBrowserClient' could be found (are you missing a using directive or an assembly reference?)
Provide reproducible steps for this issue.
- Create a new 2021.3.2f1 project.
- Follow instructions in readme https://github.com/Voltstro-Studios/UnityWebBrowser/blob/01c1020ffc41aedadacbd6b10053b646e1be85f1/README.md:
Open up the package manager via Windows -> Package Manager
Click on the little + sign -> Add package from git URL...
Type https://gitlab.com/Voltstro-Studios/WebBrowser/Package.git#2.x and add it
Type https://gitlab.com/Voltstro-Studios/WebBrowser/Package.git#engine/cef/base and add it
Type https://gitlab.com/Voltstro-Studios/WebBrowser/Package.git#engine/cef/win-x64 and add it (If you need Windows support)
Type https://gitlab.com/Voltstro-Studios/WebBrowser/Package.git#engine/cef/linux-x64 and add it (If you need Linux support)
Unity will now download and install the package
- Boom! Issue.
Any additional info you like to provide?
No response
Issue Analytics
- State:
- Created a year ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
error CS0117: `Debug' does not contain a definition for `Log'
The problem is that all my third party package are using Debug.Log and not UnityEngine.Debug.Log. I don't really want to cahnge all the...
Read more >ERROR CS0117 ('Debug' does not contain a definition for ' ...
I keep getting this error on unity's console ERROR CS0117, 'Debug' does not contain a definition for 'log'. im on mac using .net...
Read more >ASP.NET Core Blazor logging
This article explains Blazor app logging, including configuration and how to write log messages from Razor components.
Read more >webrtc-web-browser-client-sdk-api-reference-guide. ...
WebRTC client SDK is a JavaScript code that allows web developers to ... false: Log warning and do not close WebSocket after ping...
Read more >NetworkVariable | Unity Multiplayer Networking
When a client first connects, it will be synchronized with the current value of the NetworkVariable . Typically, clients should register for ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Issue should now be fixed in the latest release.
I just had a look at it, it is due to a call to a
LogWarning
method that no longer exists, but the issue only happens if you are using the old input system (If you switch to the new input system you won’t have this issue), since it only in that compiler define. The reason why this was never caught by me, is at the time the Linux version only supported using the new input system, and I do all my devlopment on Linux, so when I did a refactor is must of not caught this.The GitLab package is quite out of date, and I don’t want to push a new version to it as I want to completely ditch using GitLab for package hosting for many reasons.
If you want to mitigate this issue for now, either use the new input system, or build the version in the repo, and copy the packages you need from
/src/Packages
to<Your Project Dir>/Packages
, which Unity will then automatically add. You will also need to add the OpenUPM scoped registry for the new version, due to the dependencies on UniTask and VoltRpc, so add the scoped registry to yourmanifest.json
file like so: