Easy to understand, what is the relationship between unity and c#

1. What is Unity3D

Unity is a real-time 3D interactive content creation and operation platform. All creators, including game development, art, architecture, car design, and film and television, use Unity to turn their ideas into reality. The Unity platform provides a complete set of software solutions that can be used to create, operate and monetize any real-time interactive 2D and 3D content. The supported platforms include mobile phones, tablets, PCs, game consoles, augmented reality and virtual reality devices.

To put it simply, Unity3D is an engine, or a platform, on which we can write code and let our own code run. Something like a compiler for C++, or Eclipse for Java.

As shown in the figure: Use Unity3D to design an aircraft carrier
Use Unity3D to design aircraft carrier

2. What is C#


C# is an object-oriented programming language derived from C and C++ released by Microsoft, and an advanced programming language that runs on .NET Framework and .NET Core (completely open source, cross-platform).

C# looks surprisingly similar to Java; it includes such things as single inheritance, interfaces, almost the same syntax as Java, and the process of compiling into intermediate code and then running. But C# is obviously different from Java. It draws on a feature of Delphi, and it is directly integrated with COM (Component Object Model), and it is the protagonist of Microsoft's .NET windows network framework.

C# is a safe, stable, simple, and elegant object-oriented programming language derived from C and C++. It inherits the powerful features of C and C++ while removing some of their complex features (such as no macros and disallowing multiple inheritance). C# combines the simple visual operation of VB and the high operating efficiency of C++. With its powerful operation ability, elegant syntax style, innovative language features and convenient component-oriented programming support, it has become the preferred language for .NET development.

Simply put, C# is an object-oriented language.

As shown in the figure: some development codes of C#
insert image description here

3. What is the relationship between C# and Unity3D


C# runs on the Unity3D platform and is generally used to develop games.

There are 3 languages ​​that can be used in Unity, Javascript, C# and Boo. C# is one of them.

Games such as Glory of Kings and Hearthstone that we are familiar with use C#-based Unity3D as the engine.

insert image description here

Guess you like

Origin blog.csdn.net/weixin_43899069/article/details/121714016