Genshin Impact is developed by miHoYo and uses the Unity game engine. Unity is a popular choice among developers for its ease of use, extensive feature set, and flexibility in developing games across multiple platforms.
In the case of Genshin Impact, the Unity engine was instrumental in supporting its detailed characters, expansive world, and the complex interactions within it. The game showcases the capabilities of Unity when it comes to rendering high-quality graphics, managing seamless open-world mechanics, and handling the physics involved in the game's interactive environment.
Here are some elements where Unity's features come into play in Genshin Impact:
Rendering: Unity’s powerful rendering pipeline can handle the vast landscapes and intricate details you see in the game. With features like Shader Graph, developers can create custom shaders to give the unique visual aesthetics that Genshin Impact has.
Physics: Unity’s built-in physics engine allows for realistic object interactions. This is important in Genshin Impact for elements such as character movement, environmental effects, and combat mechanics.
Cross-platform Development: Unity supports development for multiple platforms which helped miHoYo release Genshin Impact on PC, PlayStation, iOS, and Android devices.
Asset Management: Unity allows developers to efficiently manage their assets, which is crucial for a game like Genshin Impact that has a large number of models, textures, and animations.
Scripting: Using C# for scripting, Unity makes it easy for game logic to be written and iterated upon, which is paramount for creating the dynamic events and systems present within Genshin Impact.
Although no code examples are required here, it's worth noting that Unity scripts used for controlling characters, managing game states, or implementing gameplay mechanics would be written in C# and utilize Unity's various APIs for physics, rendering, and user input.
miHoYo has not only utilized but also extended the capabilities of the Unity engine to deliver an immersive and visually stunning gaming experience in Genshin Impact.