Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Resolved No namespace Interaction in UnityEngine.XR

Discussion in 'XR Interaction Toolkit and Input' started by Mikah_S, Nov 8, 2020.

  1. Mikah_S

    Mikah_S

    Joined:
    Jul 7, 2018
    Posts:
    4
    when trying:
    using UnityEngine.XR.Interaction.Toolkit;

    I received the following error:

    Assets\user_movement.cs(5,22): error CS0234: The type or namespace name 'Interaction' does not exist in the
    namespace 'UnityEngine.XR' (are you missing an assembly reference?)


    To verify, I have the unity XR interaction toolkit plugin installed, and to make sure it was not the problem I reinstalled it, but to no avail.

    The version of unity being used is 2019.4.14f1
     
  2. Mikah_S

    Mikah_S

    Joined:
    Jul 7, 2018
    Posts:
    4
    I fixed it by adding:
    Unity.XR.Interaction.Editor,
    Unity.XR.Interaction,
    Unity.XR.Interaction.Test

    all to an asmdef file; That I had kept in the assets folder.

    I had the asmdef file because I was having issues getting Mirror to work, so I override it with this asmdef file. I did not think it would cause issues.