Unity3d_10_Building ScenesPrefabs中文翻译.docVIP

  • 11
  • 0
  • 约5.97千字
  • 约 5页
  • 2017-12-12 发布于河南
  • 举报
Unity3d_10_Building ScenesPrefabs中文翻译

Unity Manual User Guide Building Scenes Prefabs Prefabs(预设件) A Prefab is a type of asset -- a reusable GameObject stored in Project View. Prefabs can be inserted into any number of scenes, multiple times per scene. When you add a Prefab to a scene, you create an instance of it. All Prefab instances are linked to the original Prefab and are essentially clones of it. No matter how many instances exist in your project, when you make any changes to the Prefab you will see the change applied to all instances. 预设件是一种类型在项目视图中一种可重复使用的游戏对象。可以多次入到场景。当添加一个到场景,创建它的一个实例。所有实例链接到原始基本上是它的克隆。不管你的项目存在,当你进行任何更改,将看到。Creating Prefabs(创建预设(有的地方也是翻译成预设组件)) In order to create a Prefab, you must make a new blank Prefab using the menu. This blank Prefab contains no GameObjects, and you cannot create an instance of it. Think of a new Prefab as an empty container, waiting to be filled with GameObject data. 为了一个,你必须使用菜单一个新的空白这个空不包含,你不能创建它的一个实例。想一个新的为一个空容器,等游戏对象数据填充 A new, empty Prefab. It cannot be instanced until you fill it with a GameObject.一个新的、空的预设,它不能实例化直到你用一个游戏对象来填充它 To fill the Prefab, you use a GameObject that youve created in the scene. 要填充预设,你要使用一个场景中已经创建的游戏对象。 Choose Assets-Create-Prefab from the menu bar and name your new Prefab. In Hierarchy View, select the GameObject you wish to make into a Prefab. Drag drop the GameObject from the Hierarchy onto the new Prefab in Project View. 从菜单选择Assets-Create-Prefab并为新预设命名。 在层次视图中,选择你想使之成为预设的游戏对象。 在层次视图中拖动该对象到项目视图中的新预设上。 After you have performed these steps, the GameObject and all its children have been copied into the Prefab data. The Prefab can now be re-used in multiple instances. The original GameObject in the Hierarchy has now become an instance of the Prefab. 当这些步骤,游戏对象和所有子复制数据。该预现在可以在多个实例使用。层次中的原始游戏对象已经成为了的实例。Prefab Instances(预设实例) To create a Prefab instance in the current scene, drag the Prefab from the Project View into the Scene or Hierarchy View. This instance is linked to the Prefab, as displayed by the blue text used

文档评论(0)

1亿VIP精品文档

相关文档