Jump to content

[Unity] error CS0117: 'Environment' does not contain a definition for 'GetCommandLineArgs'


Recommended Posts

Hello,

I am trying to install the Vive3DSP plugin into my Unity project.

When importing the package I downloaded from here I get the follow error:
 

Assets\HTC.UnityPlugin\ViveInputUtility\Scripts\Editor\CI\CIUtils.cs(46,44): error CS0117: 'Environment' does not contain a definition for 'GetCommandLineArgs'


I couldn't find much info about this. What's causing the error?

I'm using Unity 2019.4.17f1 in URP
Scripting backend Mono
API Compatibility Level .Net Standard 2.0

Vive3DSP_v1.2.2.0

Thank you for your help

Link to post
Share on other sites

Hi albrt,

Thank you for your valuable feedback.

It is a pity that, after a few days hard work, the error you mentioned could not be reproduced.

It would be suggested that you can delete the file CIUtils.cs and then try again.

If there is still any problem, please let us know.

Cheers.

 

 

Best regards,

3D Sound Group.

Link to post
Share on other sites

Hi,

After further investigation, we found the problem.

There was a custom Environment class in the project - which conflicted with the .NET System.Environment class.
Renaming our custom Environment class to a different name solved the problem.

I'm leaving the solution here in case someone else runs into a similar issue.

Thank you for your help

Link to post
Share on other sites

Please sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...