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.

Simply A* pathfinding not working in EditorXR

Discussion in 'EditorXR' started by masterchop, Dec 6, 2017.

  1. masterchop

    masterchop

    Joined:
    Oct 9, 2015
    Posts:
    39
    If you import the free version of Simply A* we get alot of errors from the EditorXR package scripts:

    Assets/EditorVR/Scripts/ListView/ListViewController.cs(208,22): error CS1928: Type `ListView.ListViewController<TData,TItem,TIndex>' does not contain a member `Pulse' and the best extension method overload `UnityEditor.Experimental.EditorVR.IControlHapticsMethods.Pulse(this UnityEditor.Experimental.EditorVR.IControlHaptics, UnityEditor.Experimental.EditorVR.Node, UnityEditor.Experimental.EditorVR.Core.HapticPulse, float, float)' has some invalid arguments
     
  2. unity_andrewm

    unity_andrewm

    Unity Technologies

    Joined:
    Jun 25, 2015
    Posts:
    73
    Looks like there is a namespace conflict happening from Simply A* using the global namespace for their own node class.

    We'll get a longer term solution into our development code. In the meantime, you can work around the issue with a couple file modifications:


    In ListViewControllerBase.cs

    namespace ListView
    {
    using Node = UnityEditor.Experimental.EditorVR.Node;
    ...



    In ColorPickerActivator.cs

    Here, we also need to namespace the Color Picker, so wrap the class in a namespace and add this using.

    using UnityEngine.EventSystems;

    namespace UnityEditor.Experimental.EditorVR.Tools
    {
    using Node = UnityEditor.Experimental.EditorVR.Node;
    ...
     
    masterchop likes this.