GithubHelp home page GithubHelp logo

voltstro-studios / unitywebbrowser Goto Github PK

View Code? Open in Web Editor NEW
290.0 13.0 37.0 22.59 MB

Unity Web Browser (UWB) is a Unity package that allows displaying and interacting with the web from within Unity.

Home Page: https://projects.voltstro.dev/UnityWebBrowser/

License: MIT License

C# 96.02% PowerShell 3.23% HTML 0.24% TypeScript 0.43% CSS 0.08%
unity csharp cef cefglue browser webbrowser chromium chromium-embedded-framework unity-browser unity-package

unitywebbrowser's People

Contributors

dependabot[bot] avatar hellohowisitgoing avatar konijima avatar mrmahgu avatar thnewlands avatar voltstro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unitywebbrowser's Issues

I want to use uwb at multiple screen , but only one is working the rest copies are giving communication error , please help me out with it.

What platform are you experiencing this issue on?

Windows

What architecture is your platform?

64-Bit

What version of UWB are you using?

Latest VoltstroUPM Release

What Unity version are you running?

2021.3.21f1

Describe what the issue you are experiencing is.

InitializationException: The communication layer is already in use!

This error i am getting while using the multiple uwb.

Provide reproducible steps for this issue.

  1. Drag prefeb of uwb on scene
  2. made copies
  3. Hit play to check , it gave above error.

Any additional info you like to provide?

I want to use it multiple places
errors

[Issue]: WebBrowserClient does not contain a definition for 'LogWarning'

What platform are you experiencing this issue on?

Windows

What architecture is your platform?

64-Bit

What version of UWB are you using?

Stable (1.6.3) GitLab Package

What Unity version are you running?

2021.2.12f1

Describe what the issue you are experiencing is.

image

Provide reproducible steps for this issue.

  1. Open existing unity project
  2. Add packages as instructed on repo home page
  3. Error shows after downloading packages

Any additional info you like to provide?

No response

Getting "The engine did not get ready within engine startup timeout!" error

What platform are you experiencing this issue on?

Windows

What architecture is your platform?

64-Bit

What version of UWB are you using?

Latest VoltstroUPM Release

What Unity version are you running?

2021.3.17f1

Describe what the issue you are experiencing is.

The "Web Browser Basic" script I'm using started to return a "The engine did not get ready within engine startup timeout!" error in my test app (it was briefly working before) and I don't know why. I increased the engine startup timeout value to 20000, temporarily disabled my firewall, tried different URLs, but no matter what I get this error.

What could be the problem?

Provide reproducible steps for this issue.

  1. Created a canvas with a raw image in it
  2. Attached Web Browser Basic script to it. Configured it as per the instructions with the default CeF engine, TCP communication layer and input handler, as shown below. I enter a URL, e.g. "https://www.google.com" for "Initial Url".
  3. After some time when hitting play, the error "The engine did not get ready within engine startup timeout!" is fired and nothing is shown on the raw image.

image

Any additional info you like to provide?

No response

Live video web page

Thanks for your project.I hava a issues. Can run youtube live video web page?
I can not open this project. What should I do?
7b948b3f2961849bc1bf0cbd59ae0c8

[Issue] Webview stops working after a certain time without being used

What platform are you experiencing this issue on?

Windows

What architecture is your platform?

64-Bit

What version of UWB are you using?

Latest VoltstroUPM Release

What Unity version are you running?

2021.3.15f1

Describe what the issue you are experiencing is.

It seems webviews stop working if you don't use them for a while. Maybe a time out if we stop using the web engine ?

Provide reproducible steps for this issue.

  1. Create a new empty project.
  2. Import Unity Web Browser Basic samples and drag and drop UnityWebBrowser prefab into the scene.
  3. Play
  4. Wait for 10 minutes without using the webview (I don't know if the bug can be trigger quicker :/ )
  5. Focus the search field, enter a random url and click on the button to start searching.
  6. It doesn't work, I got this errors logs :
[Web Browser]: [Engine]: Uncaught exception occured in the entry point!
System.IO.IOException: Unable to read data from the transport connection: An established connection was aborted by the software in your host computer

Any additional info you like to provide?

No response

[Issue] Error with engines files for Cef Engine Configuration on platform Windows64!

What platform are you experiencing this issue on?

Windows

What architecture is your platform?

64-Bit

What version of UWB are you using?

Github Master Branch

What Unity version are you running?

2021.3.21f1

Describe what the issue you are experiencing is.

Error with engines files for Cef Engine Configuration on platform Windows64!
UnityEngine.Debug:LogError (object)
VoltstroStudios.UnityWebBrowser.Core.Engines.EngineConfiguration:OnValidate () (at C:/Users/user/Downloads/2/UnityWebBrowser-master/src/Packages/UnityWebBrowser/Runtime/Core/Engines/EngineConfiguration.cs:45)

Error with engines files for Cef Engine Configuration on platform Linux64!
Error with engines files for Cef Engine Configuration on platform MacOS!

Provide reproducible steps for this issue.

  1. downloaded the project from the repository
  2. opened the project, got an error
  3. rebuilding CRS/UnityWebBrowser.sln does not solve the problem

Any additional info you like to provide?

No response

[Issue] How to pass additional browser settings such as Zoom Level?

What platform are you experiencing this issue on?

Windows

What architecture is your platform?

64-Bit

What version of UWB are you using?

Latest VoltstroUPM Release

What Unity version are you running?

2022.3.10f1

Describe what the issue you are experiencing is.

Need to set the Zoom level for the browser, using the CEF setting as detailed on the API as follows:
https://cefsharp.github.io/api/101.0.x/html/M_CefSharp_WebBrowserExtensions_SetZoomLevel_1.htm#!

Also, in future, other similar "WebBrowserExtensions" set or get calls should be able to be made. How would these be passed through the UWB interface?

Provide reproducible steps for this issue.

Integrate UWB and show any website. Now try to set Zoom level so that the display is scaled to a level more appropriate for a user, for example, imagine a UWB output on part of a 4K display in Unity. How can we zoom in to, say, 120% size to make the controls (e.g. scrollbar) larger and easier to interact with, and text bigger and easier to read?

Any additional info you like to provide?

Nothing specific.

[Issue] UnityWebBrowser (TMP) Sample Not Working

What platform are you experiencing this issue on?

Windows

What architecture is your platform?

64-Bit

What version of UWB are you using?

Latest VoltstroUPM Release

What Unity version are you running?

2023.2.3f1

Describe what the issue you are experiencing is.

Tried to customize the sample prefab "UnityWebBrowser (TMP" from "Basic" samples but the script "WebBrowserUIControlsTMP is missing from the BrowserController object in the prefab. The sample does run in 'Play' mode and displays the Voltstro Studio website but UI controls are non-functional. There's no error message in the console but there is a warning:
The referenced script on this Behaviour (Game Object 'BrowserController') is missing!

As a further note, I'd like to switch to Unity's "New Input System" but it seems sensible to ensure the existing sample, with legacy Input Manager, is working first.

Provide reproducible steps for this issue.

  1. Created new Unity3D project using the HDRP template.
  2. Followed instructions to install Voltstro UPM and the UnityWebBrowser into the project.
  3. Somehow the script seems to not be set up properly on the required GameObject.

Any additional info you like to provide?

No response

[Issue] Sound

What platform are you experiencing this issue on?

Windows

What architecture is your platform?

64-Bit

What version of UWB are you using?

Latest VoltstroUPM Release

What Unity version are you running?

2021.3.21f1

Describe what the issue you are experiencing is.

Here is the context, i deployed a webpage and played a YouTube video, and start walking around the game here is the issue, i want to turn off the sound of youtube i don't know where i can access that, I disabled all of the objects in a scene still it was playing.

Provide reproducible steps for this issue.

  1. Deployed UWB
  2. Play video or audio over r the internet.
  3. how to turn off the sound without pausing or how to mute it from unity

Any additional info you like to provide?

kindly

[Issue] UWB Not Starting

What platform are you experiencing this issue on?

Windows

What architecture is your platform?

64-Bit

What version of UWB are you using?

Latest VoltstroUPM Release

What Unity version are you running?

2021.3.17f1

Describe what the issue you are experiencing is.

After setup and using example you provide i always get the same trouble: uwb shutdown.
Screen below
Screenshot_1

Provide reproducible steps for this issue.

  1. Install plugins from list in docs
  2. Drop example prefab on scene
  3. Run

Any additional info you like to provide?

No response

[Issue]: Bad performance

What platform are you experiencing this issue on?

Windows

What architecture is your platform?

64-Bit

What version of UWB are you using?

Git Repo

What Unity version are you running?

2021.3.6f1

Describe what the issue you are experiencing is.

The performance of the browser itself seems to be abysmal, perhaps 2 fps for the entire browser field, both scrolling the window, doing keyboard inputs and playing videos.
I have added a rotating cube in front of it, it spins perfectly smooth, with >150 fps (according to Unity stats). So it seems to be not unity itself, but just the browser content. The URL text bar at the top is also perfectly fine, it's just the web content itself that runs really slow.
When building the project it improves somewhat to 5, perhaps 10 fps tops, which however is still not a good user experience
.
Is this the current state of this project or is this low fps not intended?

PC is fairly decent (Desktop, Win 10, i7-8700K @ 3.7ghz, Nvidia 1080 GTX).

Provide reproducible steps for this issue.

  1. Create new Unity Project
  2. Enable new input system + add event manager and set it to new input system
  3. Create empty scene
  4. Drag sample prefab of the web browser into the scene
  5. Start the game

Any additional info you like to provide?

No response

Js callbacks

What platform are you experiencing this issue on?

Windows

What architecture is your platform?

64-Bit

What version of UWB are you using?

Latest VoltstroUPM Release

What Unity version are you running?

2021.3.26f1

Describe what the issue you are experiencing is.

I try to read some data from html page in webView. I call ExecuteJs method and write something like that:
var data = document.GetElementByClassName("example");
if(...)
{
conlose.log("Have data");
}
And i use logger to reed messages from browser and check logs. But some js methods dont work like in usual browser.

Provide reproducible steps for this issue.

private void Test()
{
webBrowserClient.ExecuteJs("var displayValue = document.getElementById('successPage');var data = displayValue.getElementsByClassName('payment_receipt__description');for (let index = 0; index < data.length; index++) {console.log('Result' +data[index].textContent);}");
}

Any additional info you like to provide?

public class JsExecutor : MonoBehaviour
{
[SerializeField] private BaseUwbClientManager clientManager;
[SerializeField] private DataPrintToCheck dataPrintToCheck;
private WebBrowserClient webBrowserClient;

    private bool isPrinted = false;
    
    private IEnumerator Start()
    {
        yield return null;
        yield return null;
        webBrowserClient = clientManager.browserClient;
        webBrowserClient.processLogHandler.OnProcessOutputLog += ProcessLogHandlerOnOnProcessOutputLog;
        StartCoroutine(CheckPageResult());
    }

    private void OnEnable()
    {
        //StartCoroutine(CheckPageResult());
    }

    private void OnDestroy()
    {
        webBrowserClient.processLogHandler.OnProcessOutputLog -= ProcessLogHandlerOnOnProcessOutputLog;
    }
    
    private readonly WaitForSeconds step = new(1);

    private IEnumerator CheckPageResult()
    {
        while (true)
        {
            if (!isPrinted)
            {
                ExecuteJs();
            }
            yield return step;
        }
        // ReSharper disable once IteratorNeverReturns
    }

    [ContextMenu("TestSelectorJil")]
    private void TestJil()
    {
        webBrowserClient.ExecuteJs("var data = document.getElementsByClassName('menu-item menu-item-type-custom menu-item-object-custom menu-item-73 depth');console.log(data);");
    }
    


    [ContextMenu("TestSelector")]
    private void Test()
    {
        webBrowserClient.ExecuteJs("var displayValue = document.getElementById('successPage');var data = displayValue.getElementsByClassName('payment_receipt__description');for (let index = 0; index < data.length; index++) {console.log('Result' +data[index].textContent);}");
    }
    
    [ContextMenu("Refresh")]
    private void Refresh()
    {
        webBrowserClient.Refresh();
    }

    [ContextMenu("JS")]
    public void ExecuteJs()
    {
        Debug.Log("Execute");
        
        //webBrowserClient.Refresh();
        webBrowserClient.ExecuteJs("var displayValue = document.getElementById('successPage');console.log(displayValue.style.display);");
    }

    private List<string> resultData = new();
    
    private void ProcessLogHandlerOnOnProcessOutputLog(string obj)
    {
        JsonLogStructure logStructure = JsonConvert.DeserializeObject<JsonLogStructure>(obj);
        var message = logStructure.Message.Remove(0, 22);
        Debug.Log("Message: " + message);
        if (message == "none")
        {
            Debug.Log("NONE");
        }
        if (message.StartsWith("Result"))
        {
            resultData.Add(message.Remove(0,6));
            if (resultData.Count == 12)
            {
                resultData.Add("0");
                isPrinted = true;
                dataPrintToCheck.SetupData(resultData);
                dataPrintToCheck.Print();
            }
        }
        
        if (message == "block")
        {
            resultData.Clear();
            //webBrowserClient.ExecuteJs("var displayValue = document.getElementById('successPage');var data = displayValue.getElementsByClassName('payment_receipt__description');for (let index = 0; index < data.length; index++) {console.log('Result' + data[index].textContent);}");
            Debug.Log("Have");
        }
    }
    
    private class JsonLogSeverityConverter : JsonConverter
    {
        public override bool CanWrite => false;

        public override bool CanRead => true;

        public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            throw new NotImplementedException();
        }

        public override object ReadJson(JsonReader reader, Type objectType, object existingValue,
            JsonSerializer serializer)
        {
            if (reader.Value is string value)
            {
                if (value == "Error")
                    return LogSeverity.Error;
                if (value == "Warning")
                    return LogSeverity.Warn;
                if (value == "Debug")
                    return LogSeverity.Debug;
            }

            return null;
        }

        public override bool CanConvert(Type objectType)
        {
            if (objectType == typeof(string))
                return true;

            return false;
        }
    }
    
    [Serializable]
    public class JsonLogStructure
    {
        [JsonProperty("@t")] public DateTime Timestamp { get; set; }

        [JsonProperty("@m")] public string Message { get; set; }

        [JsonConverter(typeof(JsonLogSeverityConverter))]
        [JsonProperty("@l")]
        public LogSeverity Level { get; set; } = LogSeverity.Info;

        [JsonProperty("@x")] public string Exception { get; set; }

        [JsonProperty("@i")] public string EventId { get; set; }
    }
}

The web browser not working on WEBGL 2.0 in unity

What platform are you experiencing this issue on?

Windows

What architecture is your platform?

64-Bit

What version of UWB are you using?

Latest VoltstroUPM Release

What Unity version are you running?

2021.3.21f1

Describe what the issue you are experiencing is.

The web browser is working on the editor but while creating webGL build it gives an error.

ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
VoltstroStudios.UnityWebBrowser.Editor.EditorHelper.UnityBuildTargetToPlatform (UnityEditor.BuildTarget buildTarget) (at Library/PackageCache/[email protected]/Runtime/Editor/EditorHelper.cs:43)
VoltstroStudios.UnityWebBrowser.Editor.EngineManagement.EngineManagerPostprocess.OnPostprocessBuild (UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/[email protected]/Runtime/Editor/EngineManagement/EngineManagerPostprocess.cs:30)
UnityEditor.Build.BuildPipelineInterfaces+<>c__DisplayClass18_0.b__1 (UnityEditor.Build.IPostprocessBuildWithReport bpp) (at <57a8ad0d1492436d8cfee9ba8e6618f8>:0)
UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List1[T] oneInterfaces, System.Action1[T] invocationOne, System.Collections.Generic.List1[T] twoInterfaces, System.Action1[T] invocationTwo, System.Boolean exitOnFailure) (at <57a8ad0d1492436d8cfee9ba8e6618f8>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Provide reproducible steps for this issue.

  1. I did this.
  2. I then did that.
  3. Boom! Issue.

Any additional info you like to provide?

Also but in another system the build was created but still the web browser was not working.

[Issue Tracker] "The engine did not get ready within engine startup timeout!"

Tracker

We are using this issue to track this error: "The engine did not get ready within engine startup timeout!".

Issue

We have been getting a lot of reports of UWB not starting, and spitting the above error message out. We've yet to reproduce this issue on our end, so we are creating this issue to track all reports of the error.

Report

If you are having this issue, try these steps first:

  1. Make sure you are using the latest version of UWB
  2. Increase 'Engine Startup Timeout`.
    image
  3. Delete Unity's Library Folder
  4. Disable UWB's cache

If you have tried these steps, then move onto providing us an issue report HERE (in the comments on this issue).

Start by getting the error message:

  1. First, increase logging level to Debug.
    image
  2. Run your project, get the error.

Once you have the error, provide these details in a comment on this issue:

  • Provide us ALL log messages in the console for this session where the error occurred. DO NOT JUST PROVIDE A PICTURE OF YOUR CONSOLE, provide it in text format with the stack traces, and put everything in GitHub's markdown code blocks so it is easy to read. If you want an easy way to copy it, go to your Unity editor log file, and copy the text for the error's session from there.

  • There is a second log file created at Library/UnityWebBrowser.Engine.Cef.log. Please also attach this log file.

  • What Platform (OS) you are using, and your Unity editor version.

[Issue]: Is there any instruction or vedio which can help users develop step by step

What platform are you experiencing this issue on?

Windows

What architecture is your platform?

64-Bit

What version of UWB are you using?

Git Repo

What Unity version are you running?

2021.3.6f1c1

Describe what the issue you are experiencing is.

I installed UWB, but I dont know how to get it work. Is there any instruction or vedio which can help users develop step by step?

The first issue I came accross:
企业微信截图_16590894211601

What shoud I type in this input field of browser engine?

企业微信截图_16590904588011

This is the error if the field is blank.

Provide reproducible steps for this issue.

It can be reproduced.

Any additional info you like to provide?

No response

[Issue]: Readme "Operating System Support" doesn't mention Android

What platform are you experiencing this issue on?

Other

What architecture is your platform?

Other

What version of UWB are you using?

Git Repo

What Unity version are you running?

n/a

Describe what the issue you are experiencing is.

Operating System Support doesn't mention Android. That might either mean "It's just Linux, dummy" or "Sorry, nope!" but it would be nice to be explicit either way.

Provide reproducible steps for this issue.

  1. I read the readme
  2. I was none the wiser as to whether Android was supported
  3. I really hate Issue reporting that doesn't allow me to just type something simple when appropriate ;-)

Any additional info you like to provide?

No response

[Issue]: Mouse click event exception

What 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.5f1

Describe what the issue you are experiencing is.

Text and other click events, the normal is to use the left mouse button to click, and the plug-in is to use the middle mouse button to click, I tried to fix the bug, the phenomenon is very weird, do not know how to cause, if you can fix the bug, the plug-in is great

Provide reproducible steps for this issue.

  1. I'm loading Baidu pages
  2. The text button in the upper right corner can only be triggered by clicking with the middle mouse button.
  3. Normal is the left mouse button click, this bug I hope you can fix it, thank you

Any additional info you like to provide?

No response

I'm using UWB to play html5 file with embedded video (video in local folder) but it doesn't work. It shows error "[Web Browser]: [CEF Engine Console]: Uncaught (in promise) NotSupportedError: The element has no supported sources.". I tried different ways: open html5 as file, open via localhost/remote host but it didn't work. It only worked with embedded video from youtube.

I'm using UWB to play html5 file with embedded video (video in local folder) but it doesn't work. It shows error "[Web Browser]: [CEF Engine Console]: Uncaught (in promise) NotSupportedError: The element has no supported sources.". I tried different ways: open html5 as file, open via localhost/remote host but it didn't work. It only worked with embedded video from youtube.
Anyone knows how to fix this, please?
Thanks in advanced!

Originally posted by @longkakavn in #245

[Issue]: I want to open a webbrowser after I click the menu.

What platform are you experiencing this issue on?

Windows

What architecture is your platform?

64-Bit

What version of UWB are you using?

Git Repo

What Unity version are you running?

2021.3.6f1c1

Describe what the issue you are experiencing is.

Here is my code to open a window, I want to open a webbrowser after I click the menu. And could interact with the web javascript funtion from C# side. It can send data to javascript funtion and also javascript funtion can call C# functions.

image

Is there any way or like this I could try?

Provide reproducible steps for this issue.

  1. I did this.
  2. I then did that.
  3. Boom! Issue.

Any additional info you like to provide?

No response

[Issue]: Test Report using GitHub's new issue form

What platform are you experiencing this issue on?

Linux

What architecture is your platform?

64-Bit

What version of UWB are you using?

Git Repo

What Unity version are you running?

2021.2.7f1

Describe what the issue you are experiencing is.

This is a test report using the new GitHub issue form.

Provide reproducible steps for this issue.

  1. I opened a new issue
  2. It should look epic

Any additional info you like to provide?

No response

[Issue] `WebBrowserClient` does not contain a definition for `LogWarning`

What 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.

  1. Create a new 2021.3.2f1 project.
  2. 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
  1. Boom! Issue.

Any additional info you like to provide?

No response

[Issue] Have some doubts

What 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.2

Describe what the issue you are experiencing is.

  1. When the mouse enters the webpage, there is no deformation, especially when entering the text box, there is no deformation
  2. The scroll bar of dragging the web page is invalid, but the scroll bar is normal when sliding the wheel inside the web page
  3. There is a slight blur, others are normal

I don't know if I'm missing something, or if it's true

Provide reproducible steps for this issue.

  1. Just open www.baidu.com

Any additional info you like to provide?

no

It's not working. Help me.

\src\Packages\UnityWebBrowser\Runtime\Logging\JsonLogStructure.cs(3,23): error CS0234: The type or namespace name 'Shared' does not exist in the namespace 'UnityWebBrowser' (are you missing an assembly reference?)

How can I solve this problem?

I'm a beginner developer.

[Issue] How to input Chinese?

What platform are you experiencing this issue on?

Windows

What architecture is your platform?

64-Bit

What version of UWB are you using?

Github Master Branch

What Unity version are you running?

2021.3.6

Describe what the issue you are experiencing is.

I have to say thanks the developers first.It is really a wonderful and useful plugin for unity .

Then I tried to use it , than there is the problem that I CANNOT input chinese in web tables . And I think it is also happened when I try to input other characters such as Japanese or other language need IME.

So please tell me how to fix that in source code?Thx!

Provide reproducible steps for this issue.

  1. Click the web input label in web
  2. Open IME and try to input Chinese.
  3. Can't see the cursor and Can't input Chinese

Any additional info you like to provide?

No response

Sample Project Broken cant make the setup...

What platform are you experiencing this issue on?

Windows

What architecture is your platform?

64-Bit

What version of UWB are you using?

Latest VoltstroUPM Release

What Unity version are you running?

2021.3.16

Describe what the issue you are experiencing is.

trying from yesterday and everything broken with missing packages i don't know why... Sample project that "should be ok" its not...
Also doesn't tell you what else you need... Maybe an auto packages resolver cause this is a mess

Provide reproducible steps for this issue.

  1. I did this.
  2. I then did that.
  3. Boom! Issue.

Any additional info you like to provide?

No response

[Issue] UnityWebBrowser package not found when adding the scoped registries

What platform are you experiencing this issue on?

MacOS

What architecture is your platform?

Other

What version of UWB are you using?

Github Master Branch

What Unity version are you running?

2022.3.18f1

Describe what the issue you are experiencing is.

image

inserted all packages from documentation, unitywebbrowser package is not visible, not when searched, added by name or anything.

Provide reproducible steps for this issue.

  1. I added the scoped registrys
  2. Looked for webbrowser package
  3. Did not find it

Any additional info you like to provide?

No response

[Issue] IL2CPP

What platform are you experiencing this issue on?

Windows

What architecture is your platform?

64-Bit

What version of UWB are you using?

Latest VoltstroUPM Release

What Unity version are you running?

2021.3.5.f1

Describe what the issue you are experiencing is.

  • Scrool Bars not woring with mouse but scrool whell working.
  • Mono backed build works but IL2CPP build not work

Provide reproducible steps for this issue.

  1. I did this.
  2. I then did that.
  3. Boom! Issue.

Any additional info you like to provide?

No response

[Issue] Multiple Web Browsers

What platform are you experiencing this issue on?

Windows

What architecture is your platform?

64-Bit

What version of UWB are you using?

Latest VoltstroUPM Release

What Unity version are you running?

2022.3.11f1

Describe what the issue you are experiencing is.

When using two Web Browsers the first one works fine while the second one throws the following error:

[Web Browser]: [Engine]: Uncaught exception occured in the entry point!
System.InvalidOperationException: Failed to initialize CEF runtime.
at Xilium.CefGlue.CefRuntime.Initialize(CefMainArgs, CefSettings, CefApp, IntPtr)
at UnityWebBrowser.Engine.Cef.Core.CefEngineControlsManager.Init(ClientControlsActions, EnginePopupManager)
at UnityWebBrowser.Engine.Cef.Core.UwbCefEngineEntry.EntryPoint(LaunchArguments, String[])
at VoltstroStudios.UnityWebBrowser.Engine.Shared.Core.EngineEntryPoint.<>c__DisplayClass15_0.

b__19(LaunchArguments parsedArgs)
UnityEngine.Logger:LogError (string,object)
VoltstroStudios.UnityWebBrowser.Logging.DefaultUnityWebBrowserLogger:Error (object) (at ./Library/PackageCache/[email protected]/Runtime/Logging/DefaultUnityWebBrowserLogger.cs:36)
VoltstroStudios.UnityWebBrowser.Logging.ProcessLogHandler:HandleOutputProcessLog (object,System.Diagnostics.DataReceivedEventArgs) (at ./Library/PackageCache/[email protected]/Runtime/Logging/ProcessLogHandler.cs:54)
System.Threading._ThreadPoolWaitCallback:PerformWaitCallback ()

Is there anything i have to configure to allow for multiple instances?

Any additional info you like to provide?

I've updated to the current CEF Versions.

[Issue] `ibzmq.dll` not found

hi
after i re install my windows os and after i import my project to unity and open scene that contain browser its giving me this error:
DllNotFoundException: libzmq
ZeroMQ.lib.zmq..cctor () (at <7ef98cc71ceb41998304e67bb43d6dc5>:0)
i check for libzmq.dll on ther project and its there in the Plugins\CefBrowser folder

[Issue]: how js calls the C# method

What platform are you experiencing this issue on?

Windows

What architecture is your platform?

64-Bit

What version of UWB are you using?

Git Repo

What Unity version are you running?

2021.3.5f1

Describe what the issue you are experiencing is.

how js calls the C# method?Can you provide examples of js interacting with C#?

Provide reproducible steps for this issue.

  1. I did this.
  2. I then did that.
  3. Boom! Issue.

Any additional info you like to provide?

No response

[Issue] How to open multiple different web pages at the same time in unity

What platform are you experiencing this issue on?

Windows

What architecture is your platform?

64-Bit

What version of UWB are you using?

Latest VoltstroUPM Release

What Unity version are you running?

2021.3.23

Describe what the issue you are experiencing is.

How to open multiple different web pages at the same time in unity。
I tried to copy the new ENGINE and new Tcp, but it didn't work, an error was reported

Provide reproducible steps for this issue.

Open 2 BrowserControllers at the same time

Any additional info you like to provide?

image

[Issue] Lots of errors pop up

What platform are you experiencing this issue on?

Windows

What architecture is your platform?

64-Bit

What version of UWB are you using?

Latest VoltstroUPM Release

What Unity version are you running?

2021.3.8f1

Describe what the issue you are experiencing is.

Good afternoon, when I installed your plugin according to the instructions from the github, errors like these pop up

and also, to be honest, I can’t figure out how to import the browser into the project itself

Provide reproducible steps for this issue.

  1. I did this.
  2. I then did that.
  3. Boom! Issue.

Library\PackageCache\[email protected]\Runtime\Input\WebBrowserInputSystemHandler.cs(33,17): error CS0246: The type or namespace name 'Keyboard' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\Input\WebBrowserInputSystemHandler.cs(11,19): error CS0234: The type or namespace name 'InputSystem' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
Library\PackageCache\[email protected]\Runtime\Input\WebBrowserInputSystemHandler.cs(12,19): error CS0234: The type or namespace name 'InputSystem' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
Library\PackageCache\[email protected]\Runtime\Input\WebBrowserInputHelper.cs(156,59): error CS0246: The type or namespace name 'Key' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\Input\WebBrowserInputSystemHandler.cs(23,41): error CS0246: The type or namespace name 'InputAction' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\Input\WebBrowserInputSystemHandler.cs(27,45): error CS0246: The type or namespace name 'InputAction' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\Input\WebBrowserInputSystemHandler.cs(33,17): error CS0246: The type or namespace name 'Keyboard' could not be found (are you missing a using directive or an assembly reference?)
Снимок экрана 2023-04-04 203232

Any additional info you like to provide?

No response

Anyway to log into Google from it?

This is not so much of an issue but more of a question, as the title implies I want it to login into a google account, is this possible through unity services? or OAuth2?

Thanks in advance

[Issue] A get random errors

What platform are you experiencing this issue on?

Windows

What architecture is your platform?

64-Bit

What version of UWB are you using?

Latest VoltstroUPM Release

What Unity version are you running?

2021.3.11f1

Describe what the issue you are experiencing is.

I get random errors when I run my Unity application using UWB. Sometimes it's works fine all day, and the next day I can't run it because it said that UWB can't be started or it can't open same URL that I'm using from the start.

Provide reproducible steps for this issue.

  1. Run my application from Unity Editor or build a solution and run it.

Any additional info you like to provide?

error1
error2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.