question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Check if UNITY_WSA in AttachToController

See original GitHub issue

Overview

Loaded current dev branch and receive two errors on attempting to build.

First error (see below) is presumably a missing reference in AttachToController. Can be fixed by adding a using statement:

using UnityEngine.XR.WSA.Input;

Expected Behavior

No errors.

Actual Behavior

Errors.

Severity	Code	Description	Project	File	Line	Suppression State
Error	CS0246	The type or namespace name 'InteractionSourceHandedness' could not be found (are you missing a using directive or an assembly reference?)	MixedRealityToolkit-Unity	MixedRealityToolkit-Unity\Assets\HoloToolkit\Input\Scripts\Utilities\AttachToController.cs	17	Active

Steps to reproduce

Build current dev branch.

Unity Editor Version

2017.2.0p2-MRTP5

Mixed Reality Toolkit Release Version

Dev working branch

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
keveleighcommented, Dec 5, 2017

I believe this happens when the project is targeted to anything besides UWP.

0reactions
keveleighcommented, Dec 29, 2017

Looks like GitHub didn’t automatically close these issues when merged into master. I’ll close these manually and look into why.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Check if controller is plugged or not on Input System
Hello everyone, I'm trying to implement a system where I can detect if the gamepad is plugged and not, and be able to...
Read more >
WSA Player Settings - Manual
Every Windows Store App needs a certificate which identifies a developer, Unity will create a default certificate, if you won't provide your own....
Read more >
HP Reverb G2 Controllers in Unity - Mixed Reality
Learn how to setup and use the new HP Reverb G2 Controllers in SteamVR and Windows ... Each MotionController instance has an XR.WSA.Input....
Read more >
Manual: Platform dependent compilation
First of all, select the platform you want to test your code against by going to File > Build Settings. This displays the...
Read more >
Either Windows or Unity is limiting my game to only detect ...
Either Windows or Unity is limiting my game to only detect 4 controllers, should be able to support more right? Possibly Windows issue...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found