位置: 编程技术 - 正文

Unity for Absolute Beginners(三)

编辑:rootadmin

推荐整理分享Unity for Absolute Beginners(三),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

General Layout

With the project loaded, you should see Unity sporting its default layout.If you are using the free version,the UI should appear in light gray(Figure 1-5).If you have purchased,or are evaluating,Unity Pro, the background will reflect the dark theme (Figure 1-6).For this book, the screenshots will utilize the light theme for better contrast.If you have Pro and prefer the lighter version, you can change the Skin in the General section of the Preferences.

Figure 1-5. The Unity UI,light theme

Figure 1-6. The Unity UI dark theme

Unity's UI consists of four main "views" and several important features.The Scene View,Game View,Hierarchy View,and Inspector View(typically referred to as the Inspector)are generally accessible in any of the layout options,as are the playback controls,coordinate system options, and object/viewport navigation buttons(Figure 1-7).If the term "views" seems a bit odd, it helps to know that depending on which view is active, your input (or the events it triggers) will generate different results.The first click in a different view will set the focus to it.

Figure 1-7. The Unity GUI and its main features

With the default layout,the main feature is the Scene view.This is where you will be able to arrange your3D assets for each scene or level in your project.

In the tab next to the Scene view,you will find the Game view.In the default layout,when you click the Play button, the Game tab is automatically opened.The game view is where you will interact with your scene at runtime to test your game play.

To the left of the Scene/Game viewports, you will find the Hierarchy view. This is where you will find the object that are currently in the loaded scene or level.

Below the Scene/Game view is the Project view. This contains the resources or assets available to the current project.This folder corresponds directly to the project's Assets folder on your operating system. Deleting files from the Project View will send them to the trash on your computer.If you author from an external hard drive, you should be able to locate the deleted files in the drive's own trash folder.The main point here is that there is no "undo" for these deleted files.

To the far right,you will find the Inspector. This is where you will have access to the parameters,options,and other particulars of selected assets,from the Hierarchy or Project views,as well as general project-related settings.

At the top left,you will find the navigation controls that will allow you to move and arrange objects in your scene and re-orient the Scene view itself for easier access to the various objects.

To the right of the navigation tool controls are the coordinate system options. Here you can specify Global or Local coordinates as well as using the object's designated Pivot Point or the Center of its bounding box as the rotation point.

Unity for Absolute Beginners(三)

In the top center,you will find the Playback buttons.The Play arrow will put you in Play mode, where you can test your game's functionality and presentation in a Windows or Mac environment. The Background color of the UI willalso change, alerting you to the fact that you are in Play mode. The Play button becomes a Stop button once you are in Play mode. You also have the option to Pause the game,using the middle button, or to step through one frame at a time, using the right button.

At the top right, you will see two drop-down menus. The Layers button will allow you to set various Layers to be active or inactive during Play mode, or define new layers.The Layout drop-down menu provides a quick way to switch between several popular layout configurations.

总体布局

与项目加载,您应该看到Unity运行其默认布局。如果您使用的是免费版,UI应该是浅灰色版本的(图1 - 5)。如果你购买了,或者正在评估,UnityPro版本,背景将显示黑暗主题(图1 - 6)。这本书的截图将利用亮的主题来产生更好的对比。如果你有Pro版本且更喜欢亮的版本,你可以再Gengeral中的Preferences改变皮肤的设置。

图1 - 5。Unity用户界面,光的主题

图1 - 6。Unity用户界面,黑暗的主题

Unity的用户界面由四个主要的“视图”和几个重要的特性。Scene(现场)视图、Game(游戏)视图、Hierarchy(层次结构)视图和Inspector(检查)视图(通常称为Inspector检查员)通常可以在任何布局选项,作为播放控制、坐标系统的选择和对象/视口导航按钮(图1 - 7)。如果“视图”一词&#;乎有点奇怪,它有助于知道这取决于视图被激活时,您的输入(或事件触发)将产生不同的结果。第一次点击不同的视图将设置焦点。

图1 - 7。Unity GUI及其主要特点

使用默认布局,主要功能是Scene(场景)视图。在这里您将能够在您的项目中为每个场景或关卡布置您的3D资源。

在Scene(场景)视图选项卡旁,你会发现Game(游戏)视图。在默认布局,当你点击播放按钮,游戏选项卡会自动打开(游戏视图)。游戏视图中,您将在运行测试您的游戏时与您的场景进行交互。

在Scene/Game(场景/游戏)视图的左边,你会发现Hierarchy(层次结构)视图。在这里你会发现当前加载的场景或关卡中的物体。

在Scene/Game(场景/游戏)视图下方的是Project(项目)视图。它包含当前项目中可用的资源或资产。这个文件夹直接对应您操作系统中的项目资产文件夹。从Project(项目)视图中删除文件将把它们发送到您的计算机上的垃圾桶中。如果您是从外部硬盘中操作,你应该能够在外部硬盘的垃圾文件夹中找到删除的文件。这里的要点是,没有“撤销”这些删除文件的功能。

最右边,你会发现Inspector(检查)视图。在这里你将获得从 Hierarchy(层次结构)或Project(项目)视图中选择的资产的参数,设置和其他细节,就像一般的、与项目相关的设置一样。

在左上方,你将发现导航控件,它允许你移动和安排你的场景中的对象及调整场景视图本身,使其更容易使用各种对象。使用默认布局,主要功能是场景视图。在这里您将能够为每个场景安排your3D资产或在您的项目。在场景视图选项卡下,你会发现游戏的观点。在默认布局,当你点击播放按钮,游戏选项卡会自动打开。游戏视图中,你将与你的场景在运行时交互测试你的游戏。

在导航控件的右边是坐标系统的选项。在这里您可以指定全局或局部坐标以及指定使用对象的轴心点或边界框的中心为旋转点。

在中上出,你会发现播放按钮。箭头会让你在播放模式下,你可以在Windows或Mac环境下测试你的游戏的功能和显示状况。背景的UI颜色还将改变来提醒你,你在播放模式当中。一旦你在播放模式中,播放按钮就会变成了一个停止按钮。你也可以选择暂停游戏,使用中间的按钮,或者使用右边的按钮遍历一个帧。

在右上角,您将看到两个下拉菜单。Layers(层)按钮将允许您在播放模式中将各层设置为活动或非活动,或定义新层。下拉菜单的布局提供了一种快速的方法来切换几种流行的布局配置。

【改进版】Unity工程里图片的RGB和Alpha通道的分离

移除Unity工程里所有图片的Alpha通道 为测试Untiy工程里Texture的Alpha对性能的压力,需要临时移除Unity工程里所有图片的Alpha通道,做测试对比。这里有一个基本的技巧,当图片不存在Alpha通道

全面理解Unity加载和内存管理 最近一直在和这些内容纠缠,把心得和大家共享一下:Unity里有两种动态加载机制:一是Resources.Load,一是通过AssetBundle,其实两者本质上我理解没有什么区

标签: Unity for Absolute Beginners(三)

本文链接地址:https://www.jiuchutong.com/biancheng/382492.html 转载请保留说明!

上一篇:Unity AssetBundle爬坑手记

下一篇:【改进版】Unity工程里图片的RGB和Alpha通道的分离(unity改vs版本)

  • 旅游住宿有什么问题
  • 初级职称经济法怎么学
  • 借递延所得税资产贷其他综合收益
  • 城镇土地使用税纳税义务发生时间
  • 开普票的销项税额
  • 一次性支付一年房租怎么做账每月如何结转
  • 接受劳务是进项还是销项
  • 职工的补助金需交税吗
  • 经营罚没物品增值税计算
  • 金融企业逾期贷款税前扣除
  • 已收款未开票未发货能确认收入吗
  • 一般纳税人企业所得税政策最新2023税率
  • 未计提职工教育经费汇算清缴
  • 营改增后建筑施工税率调整变化
  • 金税盘要钱不
  • 教育培训机构涉税问题
  • 清算时未分配利润为负数的处理方法是什么呢?
  • 增值税申报错误怎么处理
  • 购买税控设备,享受何种优惠政策
  • 事业单位坏账怎么处理
  • 收购公司款项的支付是利好还是利差
  • word从一台电脑考到另一台电脑格式不一致怎么解决
  • 预缴的城建税怎么做账
  • php反序列化pop链
  • 简易征收做账
  • 摊余成本计量的金融资产
  • 分配股利怎么算
  • php对象的概念
  • 企业发生的利得或损失应计入企业的营业外收支
  • python标准库在哪个目录
  • Deep Learning Tuning Playbook(深度学习调参手册中译版)
  • last命令详解
  • Yii2针对游客、用户防范规则和限制的解决方法分析
  • 应收贷方有余额怎么调整
  • 商场售后返租
  • 企业计提的医疗保险属于企业设定提存计划的内容
  • c++怎么创建文件夹
  • 应收账款坏账准备怎么计算
  • 专用发票必须按照销售方开户行及账号付款吗
  • 固定资产清理净损益怎么计算出来的
  • 破产企业资产拍卖后,管理人仅办理产权登记未交付房屋
  • 建筑行业旧项目怎么处理
  • 接受控股股东赠与的一项非货币性资产
  • 无形资产账面价值和账面余额的区别
  • 私人账户可以打钱到公司账户吗
  • 工会经费的开支必须取得发票么
  • 快递代收货是货到了吗
  • 新注册的公司在企查查上查不到
  • 外资企业股权转让给内资企业流程
  • 营业成本增加额公式
  • 坏账准备具有什么功能
  • 扣发当月工资是什么意思
  • 银行存款日记账填写样本图
  • 财务会计与管理会计的区别与联系?谁更棒?
  • 采用账龄分析法计提坏账准备
  • mysql获取字段中的数字
  • mysql 树状查询语句
  • 注册表 命令
  • linux挂起
  • windows10新功能
  • w10系统如何安装
  • 32/64位Win10预览版11102(中英日韩等)多国语言包官方iso镜像下载大全
  • JavaScript字体颜色
  • android 动效
  • javascript html5实现表单验证
  • 简单介绍一下自己
  • 细说javascript
  • shell bash sh
  • 基于JAVASCRIPT实现的可视化工具是
  • jquerycdn
  • python 中的列表
  • 浅析Python中MySQLdb的事务处理功能
  • js赋值input
  • 广告业发票税率是多少 可以抵扣多少
  • 个人工资扣税标准计算
  • 莱钢生产什么产品
  • 税务工商指的是什么
  • 非房地产企业土增税扣除有哪些
  • 山东税务申报如何网上申报
  • 大连市国家税务网
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设