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

C# 7 in 2018 version

Discussion in 'Experimental Scripting Previews' started by zazoum, Apr 20, 2018.

  1. zazoum

    zazoum

    Joined:
    Sep 3, 2011
    Posts:
    78
    Hello.
    Is there any chance to see Tuples, nested functions, design Patterns, asynchronous programming in a 2018 build in the future?
     
  2. rakkarage

    rakkarage

    Joined:
    Feb 3, 2014
    Posts:
    683
    tuples work now just missing some extra tuple features like named and stuff
    async and await 'work' now too

    Code (CSharp):
    1. private Dictionary<Vector3Int, Tuple<TileBase, Matrix4x4>> cache = new Dictionary<Vector3Int, Tuple<TileBase, Matrix4x4>>();
    2.  
     
    zazoum likes this.
  3. rakkarage

    rakkarage

    Joined:
    Feb 3, 2014
    Posts:
    683
  4. alexzzzz

    alexzzzz

    Joined:
    Nov 20, 2010
    Posts:
    1,447