前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Unity-资产-常用资产

Unity-资产-常用资产

作者头像
祝你万事顺利
发布2019-07-15 15:13:24
1.3K0
发布2019-07-15 15:13:24
举报
文章被收录于专栏:Unity游戏开发Unity游戏开发

Texture

纹理是图片或者影视文件覆盖在GameObjects上面来给予他们可视化的效果 Unity支持任何类型的image 和 movie文件在3D项目资产文件中作为纹理。在资源导入的时候,Unity对资源进行优化专门针对游戏,对游戏的容量没有负担,这个过程在Unity内部实现,并不是直接修改文件。

Properties 1.Texture Type:

  • Default : 常用的setting对于全部Texture来说,提供了大部分可变的属性
  • Normal Map : Select this to turn the color channels into a format suitable for real-time normal mapping.
  • Editor GUI : Select this if you are using the Texture on any HUD or GUI controls.
  • Sprite (2D and UI) : Select this if you are using the Texture in a 2D game as a Sprite.
  • Cursor : 自定义光标
  • Cookie : Cookies of Scene's Lights
  • Lightmap : 允许特殊格式编码和后处理
  • Single Channel : 单通道

2.Texture Shape:

  • 2D : 用于3DMeshed和GUI 元素。
  • Cube : 将Texture设置为cube,用于给SkyBox或者反射预制体。

Platform-specific overrides 在不同平台上构建需要考虑到平台的内存容量,针对不同平台进行一些特殊的设置 Properties :

  • Max Size : 限制Texture的最大大小
  • Compression : 设置图片的压缩质量None/Low Quality/Normal Quality/High Quality
  • Format : 手动设置纹理的内部表示
  • Use crunch compression:
  • Compressor Quality :

Model

模型文件可以包括一个3Dmixing,比如:游戏角色、建筑、一些家具,model被导入作为复合资源,模型文件可以包括动画数据。 1.Model tab Mesh的设置:

  • Scale Factor : Unity物理系统认为1米在游戏中就是导入文件中的1个单位
  • Use File Scale : 使用默认的模型缩放,或者设置File Scale
  • File Scale :
  • Mesh Compression : 增加这个值减少Mesh的文件大小
  • Read/Write Enabled : 勾选的时候,Unity不仅将Mesh Data的数据加载到GPU-addressable memory,也在CPU-addressable memory中持有
  • Optimize Mesh : 勾选,让Unity自动决定渲染Mesh中的那些三角面,来提高GPU表现
  • Import BlendShapes : 允许引入BlendShapes
  • Generate Colliders : Mesh Colliders自动附加
  • Keep Quads :
  • Index Format : Mesh Index buffer 的大小
  • Weld Vertices :
  • Import Visibility :
  • Import Cameras :
  • Import Lights :
  • Preserve Hierarchy :
  • Swap UVs :
  • Generate Lightmap UVs:
  • Scale Factor:

2. Rig tab Animation Type :

  • Generic : 如果我们想导入的不是人形角色,选择Generic,在Root Node中选择模型的root 节点
  • Humanoid : 如果想导入一个人形角色(两脚、两手、一头 ),选择Humanoid和Create from this model,Avatar将被创建匹配模型的骨骼,或者手动选择一个可用的avatar。 Property: Avatar Definition : Create from this model/Copy from other Avatar
  • Legacy : 使用legacy animation system

3.Animations Bake Animations : 当使用IK或者simulation在animation包中,选中这个,Unity将在导入的时候转换为正向动力学。 Anim. Compression : animation 的compression格式 Animation Compression Errors : 当Keyframe reduction 或Optimal Compression选中

4.Materials 勾选Import Materials打开导入材质的设置。 Location:Use Embedded Materials / Use External Materials (Legacy)

Location : Use Embedded Materials Click the Extract Textures button to extract Textures that are embedded in your imported Asset. Click the Extract Materials button to extract Materials that are embedded in your imported Asset.

Remapped Materials : OnDemand Remap : Naming : 默认的Unity Materials命名 Search : Unity查找材质的方式 List of Imported materials :

Audio Clip

Unity支持单声道,立体声和多通道音频资产(多达8个通道)。Unity可以导入的音频文件格式是.aif、.wav、.mp3和.ogg。Unity还可以导入.xm、.mod、.it和.s3m格式的跟踪模块。跟踪器模块资产的行为与Unity中的任何其他音频资产相同,尽管在资产导入检查器中没有波形预览功能。 Properties:

  • Load Type : Unity 加载 audio assets在运行的时候的方式,Decompress On Load / Compressed In Memory / Streaming
  • Compression Format : 定义了声音资源使用的时候特殊格式
  • Sample Rate Setting:PCM 和 ADPCM的压缩方式自动优化 或 降低采样率
  • Force To Mono:audio clip将自动降低到单声
  • Load In Background : clip将在后台加载,不会引起主线程的暂停
  • Preload Audio Data : audio clip将在场景加载的时候直接加载
  • Quality : 决定压缩音频片段的压缩方式
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019.07.15 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Texture
  • Model
  • Audio Clip
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档