📜 ⬆️ ⬇️

Unity posted the original C # code on Github

image

Rejoice all who, at least once due to vital need, had to decompile the .NET code of Unity! Now the C # code is part of the Unity engine and editor available for study on Github . All major branches are available, starting with version 2017.1 and ending with the latest 2018.1.0b12.

The code was posted yesterday, the official announcement will take place only on Monday.
')
Spoon of tar: the code can only be used for reference purposes . Full license to use can be found here .

However, this did not stop the comrade who had already issued a pull-request with a fixed performance .

It is not a secret that large studios (for example, the authors of Cities: Skylines ) have access to the source code (both C # and C ++) for quite a long time - for this it is necessary to purchase a separate license . Previously, it was critically necessary if you needed to modify the standard rendering process (starting from version 2018, you can change everything by yourself using SRP and C # code).

We are grateful for this initiative to Aras Pranckevičius , who has been preparing the code for publication over the past few weeks.

The Unity engine is becoming more modular and undergoing a massive update: a package manager appeared in it, a C # task system appeared (allowing you to write secure multi-threaded code), the ECS (Entity Component System) system was reworked taking into account low-level optimizations, and finally (sic!) Nested Prefabs .

Unity's deep departure for data-oriented design takes place under the watchful eye of Mike Acton ( Mike Acton , former head of engine development at Insomniac Games), who joined the company last fall with another Insomniac teammate whose approach to game optimization became widely known after the report. at CppCon 2014 "Data-Oriented Design and C ++" ).

An interesting recent interview with CTO Unity, the head of R & D and Acton can be read in English here . Apparently, the publication of the source code is another important step for the new course of the company.

Source: https://habr.com/ru/post/351978/


All Articles