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

C#7

Discussion in 'Experimental Scripting Previews' started by pragmascript, Dec 2, 2016.

  1. pragmascript

    pragmascript

    Joined:
    Dec 31, 2010
    Posts:
    107
    Hello :)

    I'm glad that Unity is finally moving to a newer Version of the .NET runtime and the C# language.
    What are the plans of keeping up to date once .NET 4.6 and C#6 have been rolled out?

    C#7 Release is around the corner and features like ref returns and native tuples seem to be almost tailored towards gamedev.
     
  2. MEGA64

    MEGA64

    Joined:
    Mar 27, 2013
    Posts:
    8
    Great if Unity will support C# 7.0. New language features is awesome!
     
  3. Hertzole

    Hertzole

    Joined:
    Jul 27, 2013
    Posts:
    422
    I would love if Unity added C# 7.0! All those new features + the other features from previous C# versions would be so awesome! :D
    Please Unity!
     
  4. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,073
    As mentioned in various other posts we're planning on staying closer to the latest compared to the past. But we have to get over the initial hurdle of updating to .net 4.6 but as you can see here we are on a good way with that :)
     
  5. ThainaYu

    ThainaYu

    Joined:
    Nov 4, 2016
    Posts:
    18
    @Schubkraft was .Net 4.6 support C# 7 when ever it released?
     
  6. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,073
    Not yet. We released the updated compiler in 5.5. The next step is to the new Mono version but using the same older .net profile. After that we'll be updating the profile.
    We are doing it this way to keep the disruption as small as possible and do one step at time but do it right.
     
  7. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,936
    To clarify a bit, we're now planning to release a new Mono runtime and the upgraded .NET 4.6 profile at the same time. Things are still up in the air, but this is the current state.

    Not however that this release will not yet have C# 7 support. That is planned for a later release though.
     
  8. ThainaYu

    ThainaYu

    Joined:
    Nov 4, 2016
    Posts:
    18
    Thanks for your clarification

    I wish after C# 7 support. Unity next version would have new API to utilize return ref. Such as matrix and other struct manipulation
     
  9. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,936
    @ThainaYu

    Don't worry, we're working on that as well. We are members of the .NET Foundation, and have been working with other members to the future of C# to allow for things like this.
     
    TwoTen, 6Jarv9, dadude123 and 2 others like this.