Unity3d_10_Building ScenesPrefabs中文翻译.doc

Unity3d_10_Building ScenesPrefabs中文翻译.doc

  1. 1、本文档共5页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
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)

xcs88858 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档