当前位置:   article > 正文

【Unity 3D】学习笔记(一)_unity’s scenea scene contains the environments…

unity’s scenea scene contains the environments…

简答题


1. 解释 游戏对象(GameObjects) 和 资源(Assets)的区别与联系。

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. 

简而言之,游戏对象是场景里所有实体的基类,组成了完整的游戏场景,而资源是用来修饰对象的部件。游戏对象由各种资源整合而成,是资源的实例化和具体表现,也可以被预设为资源而作为模板,从而实现重复利用。资源可以供不同的游戏对象使用,来完成对游戏对象属性的改变和对场景的修改和完善。

 

2. 下载几个游戏案例,分别总结资源、对象组织的结构(指资源的目录组织结构与游戏对象树的层次结构)

以这个赛车的游戏为案例,资源文件夹采用树形结构,分为如下两个子文件夹。

子文件夹SampleScenes结构如下:

子文件夹Standard Assets结构如下:

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/133091
推荐阅读
相关标签
  

闽ICP备14008679号