C# 6 in Unity?

In C#6 we can do this.

        public MapGenerator.Cord mapCentre => new MapGenerator.Cord(MapSize.X / 2, MapSize.Y / 2);

Instead of doing this.

        public MapGenerator.Cord mapCentre
        {
            get
            {
                return new MapGenerator.Cord(MapSize.X / 2, MapSize.Y / 2);
            }
        }

A lot more code for no good reason. How ever, Unity3d will complain on my c#6. No on the this example but everything else, are the plans to add so Unity will support c#6 ?

Yes it’s covered in the blog. One day. No time soon.

1 Like

Ok, cool beans. Thanks for the reply.

Plan is to first roll out IL2CPP to everything then look at updating C# across the board.

I’m looking forward to that.