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. Dismiss Notice

Java to C#, few lines not converted properly?

Discussion in 'Editor & General Support' started by darkAbacus247, Aug 14, 2014.

  1. darkAbacus247

    darkAbacus247

    Joined:
    Sep 7, 2010
    Posts:
    251
    Hey all,
    What's wrong with this here?

    Code (CSharp):
    1. //ORIGINAL : JS
    2. class VertexData extends System.Object{
    3.     var testMe : Vector3[];
    4. }
    5.  
    6. //CONVERTED : C#
    7. class VertexData : System.Object{
    8.    Vector3[] testMe;
    9. }
     
  2. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,738
    Looks right to me at first glance.. is it giving you a compile error?
     
  3. Graph

    Graph

    Joined:
    Jun 8, 2014
    Posts:
    153
    public
    js: implicitly public
    c#: implicitly private
     
  4. darkAbacus247

    darkAbacus247

    Joined:
    Sep 7, 2010
    Posts:
    251
    Ohhh...I hate java so much.
    Thanks

    n no there was no error StarManta, it just did nothing, only the best error of them all haha