Announcement

Collapse
No announcement yet.

Unity Engine/Editor Publishes Reference C# Source Code

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unity Engine/Editor Publishes Reference C# Source Code

    Phoronix: Unity Engine/Editor Publishes Reference C# Source Code

    Following Crytek putting out their CRYENGINE Sandbox editor source code, Unity Tech has published the C# reference code used by their Unity Engine and Unity Editor...

    http://www.phoronix.com/scan.php?pag...Reference-Code

  • #2
    pretty weird that they are using C# for a game engine and not C++ which would give higher performance.

    Comment


    • #3
      Originally posted by hajj_3 View Post
      pretty weird that they are using C# for a game engine and not C++ which would give higher performance.
      C# can be compiled down to native code using .NET Native.
      Also you can code at a low-level like C and C++ using the unsafe keyword.

      Comment


      • #4
        The C# parts of their engine just seems to be native bindings to C++ code.

        Their editor on the other hand seems to be quite a lot more C# code.

        Comment


        • #5
          Insert random Godot comment here.

          Comment


          • #6
            Originally posted by hajj_3 View Post
            pretty weird that they are using C# for a game engine and not C++ which would give higher performance.
            Unity itself is c++, but their scripting language is c#. It just depends on the backend. You have mono with jit capabilities and il2cpp which converts c# to c++ and then compiles using native compile stack. And recently burst, which supports a quite limited subset of c# (no classes or other managed objects) and generates really really fast code (utilizing sse, avx you name it)

            Comment


            • #7
              C# will never be considered as open source language, proprietery sh*t.

              Comment


              • #8
                Originally posted by bvbfan View Post
                C# will never be considered as open source language, proprietery sh*t.
                Confusing C# with .NET?

                Comment


                • #9
                  Originally posted by starshipeleven View Post
                  Confusing C# with .NET?
                  Either way he's wrong.
                  roslyn - The .NET Compiler Platform ("Roslyn") provides open-source C# and Visual Basic compilers with rich code analysis APIs.

                  Comment


                  • #10
                    I'm not confusing them, both are sh*t, but of course .NET is the biggest one.

                    Comment

                    Working...
                    X