- 用户指南
- 资源商店 (Asset Store)
- 资源服务器 (Asset Server)(仅限团队许可证)
- 缓存服务器(仅限团队许可证)
- 幕后场景
- 创建游戏
- 运行时实例化预设 (Prefabs)
- 变换 (Transforms)
- 物理
- 添加随机的游戏元素
- 粒子系统(Particle Systems)
- Mecanim 动画系统
- 旧动画系统
- 导航网格 (Navmesh) 和寻路 (Pathfinding)(仅限专业版 (Pro))
- Sound (音频侦听器)
- 游戏界面元素
- 多玩家联网游戏
- iOS 开发入门
- Android 开发入门
- Blackberry 10 开发入门
- Metro:入门指南
- 本地客户端开发入门
- FAQ
- Advanced
- Vector Cookbook
- 资源包(仅限专业版)
- Graphics Features
- 资源数据库 (AssetDatabase)
- 构建播放器管道
- 分析器(仅限专业版)
- 光照贴图快速入门
- 遮挡剔除(仅限专业版)
- 相机使用技巧
- 运行时加载资源
- 通过脚本修改源资源
- 用程序生成网格几何体
- 富文本
- 在 Unity 工程 (Project) 中使用 Mono DLL
- 事件函数的执行顺序
- 移动优化实用指南
- Unity XCode 工程结构
- 优化图形性能
- 减少文件大小
- 理解自动内存管理
- 平台依赖编译
- 泛型函数
- 调试
- 插件(专业版/移动版特有功能)
- 文本场景文件格式(仅限专业版)
- 流媒体资源
- 启动时运行编辑器脚本代码
- 网络模拟
- VisualStudio C 集成
- 分析
- 检查更新
- 安装多版本 Unity
- 故障排除
- Unity 中的阴影
- Unity 中的 IME
- 对集成显卡进行优化
- 网络播放器 (Web Player) 部署
- 使用网络播放器中的信任链系统
文章来源于网络收集而来,版权归原创者所有,如有侵权请及时联系!
YAML场景文件示例。
下面给出一个简单但完整的场景示例。场景中只包含一个摄像机和一个立方体对象。请注意,文件必须以以下两行开始
%YAML 1.1 %TAG !u! tag:unity3d.com,2011:
...才能被 Unity 接受。否则,导入过程旨在容错遗漏 — 尽可能为缺失的属性数据提供 默认值。
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!header SerializedFile: m_TargetPlatform: 4294967294 m_UserInformation: --- !u!29 &1 Scene: m_ObjectHideFlags: 0 m_PVSData: m_QueryMode: 1 m_PVSObjectsArray: [] m_PVSPortalsArray: [] m_ViewCellSize: 1.000000 --- !u!104 &2 RenderSettings: m_Fog: 0 m_FogColor: {r: 0.500000, g: 0.500000, b: 0.500000, a: 1.000000} m_FogMode: 3 m_FogDensity: 0.010000 m_LinearFogStart: 0.000000 m_LinearFogEnd: 300.000000 m_AmbientLight: {r: 0.200000, g: 0.200000, b: 0.200000, a: 1.000000} m_SkyboxMaterial: {fileID: 0} m_HaloStrength: 0.500000 m_FlareStrength: 1.000000 m_HaloTexture: {fileID: 0} m_SpotCookie: {fileID: 0} m_ObjectHideFlags: 0 --- !u!127 &3 GameManager: m_ObjectHideFlags: 0 --- !u!157 &4 LightmapSettings: m_ObjectHideFlags: 0 m_LightProbeCloud: {fileID: 0} m_Lightmaps: [] m_LightmapsMode: 1 m_BakedColorSpace: 0 m_UseDualLightmapsInForward: 0 m_LightmapEditorSettings: m_Resolution: 50.000000 m_LastUsedResolution: 0.000000 m_TextureWidth: 1024 m_TextureHeight: 1024 m_BounceBoost: 1.000000 m_BounceIntensity: 1.000000 m_SkyLightColor: {r: 0.860000, g: 0.930000, b: 1.000000, a: 1.000000} m_SkyLightIntensity: 0.000000 m_Quality: 0 m_Bounces: 1 m_FinalGatherRays: 1000 m_FinalGatherContrastThreshold: 0.050000 m_FinalGatherGradientThreshold: 0.000000 m_FinalGatherInterpolationPoints: 15 m_AOAmount: 0.000000 m_AOMaxDistance: 0.100000 m_AOContrast: 1.000000 m_TextureCompression: 0 m_LockAtlas: 0 --- !u!196 &5 NavMeshSettings: m_ObjectHideFlags: 0 m_BuildSettings: cellSize: 0.200000 cellHeight: 0.100000 agentSlope: 45.000000 agentClimb: 0.900000 ledgeDropHeight: 0.000000 maxJumpAcrossDistance: 0.000000 agentRadius: 0.400000 agentHeight: 1.800000 maxEdgeLength: 12 maxSimplificationError: 1.300000 regionMinSize: 8 regionMergeSize: 20 tileSize: 500 detailSampleDistance: 6.000000 detailSampleMaxError: 1.000000 accuratePlacement: 0 m_NavMesh: {fileID: 0} --- !u!1 &6 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} importerVersion: 3 m_Component: - 4: {fileID: 8} - 33: {fileID: 12} - 65: {fileID: 13} - 23: {fileID: 11} m_Layer: 0 m_Name: Cube m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &7 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} importerVersion: 3 m_Component: - 4: {fileID: 9} - 20: {fileID: 10} - 92: {fileID: 15} - 124: {fileID: 16} - 81: {fileID: 14} m_Layer: 0 m_Name: Main Camera m_TagString: MainCamera m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!4 &8 Transform: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 6} m_LocalRotation: {x: 0.000000, y: 0.000000, z: 0.000000, w: 1.000000} m_LocalPosition: {x: -2.618721, y: 1.028581, z: 1.131627} m_LocalScale: {x: 1.000000, y: 1.000000, z: 1.000000} m_Children: [] m_Father: {fileID: 0} --- !u!4 &9 Transform: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 7} m_LocalRotation: {x: 0.000000, y: 0.000000, z: 0.000000, w: 1.000000} m_LocalPosition: {x: 0.000000, y: 1.000000, z: -10.000000} m_LocalScale: {x: 1.000000, y: 1.000000, z: 1.000000} m_Children: [] m_Father: {fileID: 0} --- !u!20 &10 Camera: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 7} m_Enabled: 1 importerVersion: 2 m_ClearFlags: 1 m_BackGroundColor: {r: 0.192157, g: 0.301961, b: 0.474510, a: 0.019608} m_NormalizedViewPortRect: importerVersion: 2 x: 0.000000 y: 0.000000 width: 1.000000 height: 1.000000 near clip plane: 0.300000 far clip plane: 1000.000000 field of view: 60.000000 orthographic: 0 orthographic size: 100.000000 m_Depth: -1.000000 m_CullingMask: importerVersion: 2 m_Bits: 4294967295 m_RenderingPath: -1 m_TargetTexture: {fileID: 0} m_HDR: 0 --- !u!23 &11 Renderer: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 6} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_LightmapIndex: 255 m_LightmapTilingOffset: {x: 1.000000, y: 1.000000, z: 0.000000, w: 0.000000} m_Materials: - {fileID: 10302, guid: 0000000000000000e000000000000000, type: 0} m_SubsetIndices: m_StaticBatchRoot: {fileID: 0} m_LightProbeAnchor: {fileID: 0} m_UseLightProbes: 0 m_ScaleInLightmap: 1.000000 --- !u!33 &12 MeshFilter: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 6} m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} --- !u!65 &13 BoxCollider: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 6} m_Material: {fileID: 0} m_IsTrigger: 0 m_Enabled: 1 importerVersion: 2 m_Size: {x: 1.000000, y: 1.000000, z: 1.000000} m_Center: {x: 0.000000, y: 0.000000, z: 0.000000} --- !u!81 &14 AudioListener: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 7} m_Enabled: 1 --- !u!92 &15 Behaviour: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 7} m_Enabled: 1 --- !u!124 &16 Behaviour: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 7} m_Enabled: 1 --- !u!1026 &17 HierarchyState: m_ObjectHideFlags: 0 expanded: [] selection: [] scrollposition_x: 0.000000 scrollposition_y: 0.000000
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论