Version: Unity 6.3 Beta (6000.3)
Language : English
Revert a prefab instance to a GameObject
Introduction to instantiating prefabs

Instantiating prefabs at runtime

You can use prefabsAn asset type that allows you to store a GameObject complete with components and properties. The prefab acts as a template from which you can create new object instances in the scene. More info
See in Glossary
to instantiate complicated GameObjectsThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info
See in Glossary
or collections of GameObjects at runtime.

Topic Description
Introduction to instantiating prefabs Introductory context and common scenarios in which instantiating prefabs is useful.
Build a structure with prefabs Use prefabs to instantiate several copies of a block prefab to construct a wall.
Instantiating projectiles and explosions Use prefabs to instantiate exploding projectiles.

Additional resources

Revert a prefab instance to a GameObject
Introduction to instantiating prefabs
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961