Search Unity

  1. We are looking for your feedback about Templates! Tell us about your experiences by taking our survey.
    Dismiss Notice
  2. Curious about what's going to be in 2021.1? Have a look at the 2021.1 beta blog post.
    Dismiss Notice
  3. Want to see 2021.1b in action? Sign up for our 2021.1 Beta Webinar on February 25 for a live presentation and a Q&A session with guests from R&D.
    Dismiss Notice

Scripting [SOLVED!] The type or namespace name `Ports' does not exist in the namespace `System.IO'.

Discussion in '5.3 Beta' started by TomasRiker, Nov 9, 2015.

  1. TomasRiker


    Jan 26, 2012
    Sorry for the false alarm. I didn't realize that Unity had switched the target platform to the Web Player (don't know why it did that). After setting it to Desktop, all works fine again.


    in earlier Unity versions, I successfully used the System.IO.Ports namespace in order to access the serial port. This seems no longer possible in the latest Beta, although I use the full .NET framework and not the subset. I get the following error:

    The type or namespace name `Ports' does not exist in the namespace `System.IO'. Are you missing an assembly reference?

    Is this intentional?
    Last edited: Nov 9, 2015