Skip to content

[Issue] Missing import for System.Runtime.InteropServices in WebBrowserUtils.cs #366

@juzsal

Description

@juzsal

What platform are you experiencing this issue on?

MacOS arm64

What version of UWB are you using?

2.2.4

What Unity version are you running?

2022.3.28f1

Describe what the issue you are experiencing is.

Hello,

I just started using UWB, and I ran into a compilation issue straight away (I develop on macOS).

It seems like there's a missing import for System.Runtime.InteropServices in WebBrowserUtils.cs. I needed to add using System.Runtime.InteropServices; to make the project compile.

Provide reproducible steps for this issue.

  1. Install UnityWebBrowser in a project running on macOS
  2. Observe the following compilation errors:
Library/PackageCache/[email protected]/Runtime/Helper/WebBrowserUtils.cs(150,20): error CS0103: The name 'RuntimeInformation' does not exist in the current context
Library/PackageCache/[email protected]/Runtime/Helper/WebBrowserUtils.cs(150,62): error CS0103: The name 'Architecture' does not exist in the current context

Any additional info you like to provide?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    issueSomething is broken

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions