Jump to content

Error CS0104 and CS0019 using VIU with Unity URP 2021.3.0f1


Recommended Posts

Hi, I created a new project with Unity 2021.3.0f1, URP 12.1.6, and Vive Input Utility 1.17.0.

As soon as I import the VIU, I get these errors:

Assets\HTC.UnityPlugin\ViveInputUtility\Scripts\Editor\VRPlatformSettings\WaveVRSettings.cs(517,29): error CS0104: 'ListPool<>' is an ambiguous reference between 'UnityEngine.Rendering.ListPool<T>' and 'HTC.UnityPlugin.Utility.ListPool<T>'
 

Assets\HTC.UnityPlugin\ViveInputUtility\Scripts\Editor\VRPlatformSettings\WaveVRSettings.cs(517,29): error CS0104: 'ListPool<>' is an ambiguous reference between 'UnityEngine.Rendering.ListPool<T>' and 'HTC.UnityPlugin.Utility.ListPool<T>'
Assets\HTC.UnityPlugin\ViveInputUtility\Scripts\Editor\VRPlatformSettings\WaveVRSettings.cs(531,21): error CS0019: Operator '>' cannot be applied to operands of type 'method group' and 'int'
Assets\HTC.UnityPlugin\ViveInputUtility\Scripts\Editor\VRPlatformSettings\WaveVRSettings.cs(546,17): error CS0104: 'ListPool<>' is an ambiguous reference between 'UnityEngine.Rendering.ListPool<T>' and 'HTC.UnityPlugin.Utility.ListPool<T>'

 What's happening ?

 

Also, best regards and have a nice day.

Link to comment
Share on other sites

Posted (edited)

Same for Unity 2020.3.29f1

I want to use to Alternative Quick Start from :

 

It is really complicated to find one simple way to make things work with the Vive Focus 3, why isn't there a clear doc or resource that explains how to use this ?

Edited by dev_imag-ing
Link to comment
Share on other sites

Hi @dev_imag-ing,

A quick fix to your issue as below,

Assets\HTC.UnityPlugin\ViveInputUtility\Scripts\Editor\VRPlatformSettings\WaveVRSettings.cs,

line 517,

var allScopes = HTC.UnityPlugin.Utility.ListPool<string>.Get();

line 546,

HTC.UnityPlugin.Utility.ListPool<string>.Release(allScopes);

Link to comment
Share on other sites

Create an account or sign in to comment

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

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...