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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

AirConsole Errors

Discussion in 'Scripting' started by TheImperial, Feb 26, 2016.

  1. TheImperial

    TheImperial

    Joined:
    Mar 17, 2015
    Posts:
    72
  2. larku

    larku

    Joined:
    Mar 14, 2013
    Posts:
    1,422
    I'd assume you have "Api Compatibility Level" set to ".Net 2.0 Subset" (in the build settings), try changing it to ".Net 2.0"

    Could be wrong though :)
     
    TheImperial likes this.
  3. N-Dream-AG

    N-Dream-AG

    Joined:
    Jul 27, 2015
    Posts:
    16
    Hi! AirConsole developer here.
    I've experienced this in one of my projects - I'm not certain why it happens, but deleting my library folder resolved the issue for me, although a "Reimport All Assets" might do the trick too.

    Let me know if that helps.
     
  4. TheImperial

    TheImperial

    Joined:
    Mar 17, 2015
    Posts:
    72
    Stills the same Errors:
    Assets/AirConsole/plugins/Newtonsoft.Json/Converters/XmlNodeConverter.cs(603,22): error CS0246: The type or namespace name `XObject' could not be found. Are you missing a using directive or an assembly reference?
     
  5. N-Dream-AG

    N-Dream-AG

    Joined:
    Jul 27, 2015
    Posts:
    16
    Have you tried switching to Net 2.0 as Iarku suggested?
    (Edit: although.. I am using Subset in my own project...)
     
  6. TheImperial

    TheImperial

    Joined:
    Mar 17, 2015
    Posts:
    72
    Yes I Tried that for the PC Settings, but the API compatibility for the Web Player settings is Disabled
     
  7. N-Dream-AG

    N-Dream-AG

    Joined:
    Jul 27, 2015
    Posts:
    16
    For AirConsole, you should be using the WebGL Settings, not Web Player.
    Try switching platforms.

    Also btw: Did this happen when you imported the plugin for the first time or have you worked with it before?
     
  8. TheImperial

    TheImperial

    Joined:
    Mar 17, 2015
    Posts:
    72
    First Time
     
  9. N-Dream-AG

    N-Dream-AG

    Joined:
    Jul 27, 2015
    Posts:
    16
    Did switching platforms to WebGL/HTML5 help?
    Also, before, did you delete your library or just reimport all assets? Because I just tried in one of my projects: Reimporting alone doesn't help apparently.
     
    TheImperial likes this.
  10. N-Dream-AG

    N-Dream-AG

    Joined:
    Jul 27, 2015
    Posts:
    16
  11. aalexa13

    aalexa13

    Joined:
    Jan 6, 2015
    Posts:
    7
    I had the similar problem. newtonsoft json the type or namespace name 'newline' does not exist in the namespace 'environment'. To solve try to remove Newtonsoft.json from AirConsole folder and install alternative package from asset store.