当前位置:网站首页>[Yugong series] February 2022 U3D full stack class 010 prefabricated parts

[Yugong series] February 2022 U3D full stack class 010 prefabricated parts

2022-07-06 07:50:00 Yugong move code


Preface

stay Unity Official documents are introducing GameObjects I mentioned a concept Prefab, Translated into Chinese is prefabricated . But what is Preforms Prefab Well

In the scene we made , Like bullets in battle , The trees in the forest , Such game objects will be reused in the same scene . In order to modify these objects at the same time , You can use Prefab These objects , And you just need to modify Prefab You can apply the modification to all the Prefab On the generated object .

So the prefabricated part is : Game object template resources , The game object includes sub game objects and all components 、 Attribute information is stored in the form of resource files , Easy to reuse ;

One 、 Prefabrication process

1、 How to make

take Hierarchy Drag the game object in the view to Project View or click the menu bar to make prefabricated parts

原网站

版权声明
本文为[Yugong move code]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202131852325795.html