This is the fifth day of my participation in the November Gwen Challenge. Check out the details: The last Gwen Challenge 2021

The Unity of small science

As always, here are some popular science tips from Unity:

  • Unity is a real-time 3D interactive content creation and operation platform.
  • All creators, including game development, art, architecture, car design, film and television, use Unity to bring their ideas to life.
  • The Unity platform offers a comprehensive suite of software solutions for creating, operating and monetizing any real-time interactive 2D and 3D content on mobile, tablet, PC, game console, augmented reality and virtual reality devices.
  • You can also simply think of Unity as a game engine that can be used to make professional games!

Learn Unity

The differences and functions between preforms and preforms in Unity

The following happens when manipulating preforms in Unity:

There is A preform A in Assets project. After you drag preform A into the scene, the game object is still preform A in blue shape

But when I drag the preform A back into the project to use it as preform B, Unity will pop up A window for us to select

As follows: What is the difference between these two choices

  1. Select Original: this gameobject becomes A new preform B, disconnecting from the Original preform A!

  2. Select A Prefab Variant: This gameobject also becomes A Prefab A1, which is A subclass of the original Prefab A

Whenever the original preform A changes, A1 will change along with it! And when we modify preform A1, the original preform A does not change. Just like a subclass that inherits a parent class, when a parent class changes a public property, the subclass changes with the parent class, but when the parent class changes, the parent class is not affected!

Usually we use more is to choose the first type, at this time the preform A will become A new preform B, we can modify at will

When we hope that the precast body A1 will follow the original precast body when A change is the second choice Generally is the original precast body A subclass of the object being acted as play another game are reassembled into A new prefabricated body AA, at the same time, we also hope that the precast body AA keep relations with A prefabricated body A synchronous update, To choose this prefab variant