Search Unity

Javascript import in Unity5

Discussion in 'Scripting' started by unitynewb, Mar 5, 2015.

  1. unitynewb

    unitynewb

    Joined:
    Feb 22, 2009
    Posts:
    243
    Is anyone else have problems with this?
    Code (JavaScript):
    1. import System.Xml;
    2. import System.Xml.Serialization;
    3. import System.IO;
    I get the following error with all 3 of those lines:
    Assets/Plugins/SaveGame.js(2,1): BCE0055: Internal compiler error: Missing or incorrect header for method OnReferenceExpression.
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    Nope, fine here; try with an empty project.

    --Eric
     
  3. unitynewb

    unitynewb

    Joined:
    Feb 22, 2009
    Posts:
    243
    Thanks, I'll give that a try.