Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    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

    TomasRiker

    Joined:
    Jan 26, 2012
    Posts:
    48
    [SOLVED!]
    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.

    Hi,

    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