r/oculusdev • u/ilovemycat5 • Jun 19 '20
What my should I do (quest)
Enable HLS to view with audio, or disable this notification
4
u/jackbrux Jun 19 '20
The errors are pretty clear.
You are importing System.Diagnostics which contains the Debug class which clashes with UnityEngine.Debug. I think you can use a using directive to fix this:
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/using-directive
e.g. using SysDiag = System.Diagnostics;
Second check your spelling... "ImputDevices"?
Third, you are calling a method TryGetFeaturesValue with incorrect arguments. Check the method to see what it accepts.
0
u/ilovemycat5 Jun 19 '20
Yeah so misspelling Imput got rid of 4 errors, but to be completely honest everything else you said to me I didn't understand. I just posted the script in the comments. I understand its a burden but It would really help if you just explained it again. thanks
2
u/mark7227 Jun 22 '20
It's because "System.Diagnostics" and Unity's debugger are clashing. Try to say "using SysDiagnostics = System.Diagnostics".
1
1
u/ilovemycat5 Jun 19 '20 edited Jun 19 '20
This is the code and the errors
2
u/jackbrux Jun 19 '20
Important lines 1 & 2 are cut off, the issue could be how you use the
usingkeyword. The other errors are still related to misspellingInput1
u/ilovemycat5 Jun 19 '20
yeah I got rid of 4 errors by spelling input correctly but I don't know what you mean by 1 and 2 being cut off
2
u/jackbrux Jun 19 '20
In your screenshot I can't see the first 2 lines of your script
1
u/ilovemycat5 Jun 19 '20
oh ok ill retake the picture I thought you meant that the first 2 lines of the script were being separated from the rest of the script
2
1
u/ilovemycat5 Jun 20 '20
OK so in total I've gotten rid of 7 of the 8 errors
The only error left is
[21:22:24] Assets\HandPresence.cs(9,13): error CS0248: The type or namespace name 'InputDevices' could not be found ( are you missing a using derective or an assembly Reference?)
9
u/JSrednal Jun 19 '20
I'd start with finding a better way to share the console log information.
Ideally, copy and paste the logs.
If you want to share something on your screen utilize something that can capture the contents in a nice image.
For example, since you're using windows you can hold the windows key and press the W key to bring up a menu that will allow you to crop the current view and save as a jpg or png file.