赞
踩
GameObjects: The fundamental object in Unity scenes. A Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces.
Assets: Any media or data that can be used in your game or Project. An Asset may come from a file created outside of Unity, such as a 3D model, an audio file or an image. You can also create some asset types in Unity, such as an Animator Controller Controls animation through Animation Layers with Animation State Machines and Animation Blend Trees, controlled by Animation Parameters. The same Animator Controller can be referenced by multiple models with Animator components.
简而言之,游戏对象是场景里所有实体的基类,组成了完整的游戏场景,而资源是用来修饰对象的部件。游戏对象由各种资源整合而成,是资源的实例化和具体表现,也可以被预设为资源而作为模板,从而实现重复利用。资源可以供不同的游戏对象使用,来完成对游戏对象属性的改变和对场景的修改和完善。
以这个赛车的游戏为案例,资源文件夹采用树形结构,分为如下两个子文件夹。
子文件夹SampleScenes结构如下:
子文件夹Standard Assets结构如下:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。