实验场景和器材Demo-开发文档
<p>[TOC]</p>
<table>
<thead>
<tr>
<th>作者</th>
<th>QFord</th>
</tr>
</thead>
<tbody>
<tr>
<td>更新日期</td>
<td>2024-8-29</td>
</tr>
</tbody>
</table>
<h1>主要需求</h1>
<p>1:导入UE工程,分析下资源可用性
2:打个包出来,在设备看看效果</p>
<p>需求来源:锐锋-提供了一个写实风格的实验室和器材资源</p>
<h1>开发工程</h1>
<p>LabAndEquipment
整个UE工程已放置到<strong>虚拟实验室-网盘的!AAATest文件夹下</strong>
体验安装包,如下图所示:
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=f74047f4c6e8f576b46b4721dff0027e&amp;file=file.png" alt="" /></p>
<h1>功能说明</h1>
<p>有5个演示关卡可以跳转,通过下拉框来操作切换。
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=ee9606737e7c389cee19fe51ababcba8&amp;file=file.png" alt="" /></p>
<h1>实现说明</h1>
<h2>下拉框-切换场景</h2>
<p><strong>WBP_MainMenu</strong>
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=5f76dec7251b9c52ddfa31634b6035ea&amp;file=file.png" alt="" /></p>
<h2>快捷UI-调试参数</h2>
<p><strong>WBP_Main</strong>
主要用来快捷调整MobileContentScaleFactor等参数
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=cd3439fc364309ef8de4268294b55665&amp;file=file.png" alt="" /></p>
<h2>全局(单例)UI</h2>
<ul>
<li>
<p><strong>BP_MyGameInstance</strong>
用来让UI可以跨关卡存在,切换时不会被销毁并保持状态。
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=84e61a7ba74387c8f27e6a97209b6d8f&amp;file=file.png" alt="" /></p>
</li>
<li>
<p><strong>CallMainMenu</strong>
蓝图静态库,主要用来让各个关卡可以便捷地加载WBP的UI,可通过调用LoadMainMenu函数实现。
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=54610816c4f573fb443fd15ad6552279&amp;file=file.png" alt="" /></p>
</li>
<li><strong>关卡蓝图</strong>
各个关卡的蓝图,调用上述的CallMainMenu的LoadMainMenu函数
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=a70b0c82a5a9b1f37aa14d78c7227a9f&amp;file=file.png" alt="" /></li>
</ul>
<h1>验证结论</h1>
<p>已打包输出到B哥的pad-LabAndEquipment应用。
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=e82cabbed8d2e54fedc756475cc175fc&amp;file=file.png" alt="" /></p>
<ol>
<li>场景资源消耗还是比较大的,在相对低配的pad上发热较为明显。</li>
<li>部分容器的材质出现问题,不过总体跟PC端效果接近。</li>
<li>默认MobileContentScaleFactor = 1.375下,贴图还较为模糊,调整为2后就很清晰了。</li>
<li>流畅度还是没问题的。</li>
<li>导入fbx模型资源的网格是没有拆分的,比如显微镜器材。</li>
</ol>
<p>> 已提供给美术负责人,有可复用的PBR材质,可供参考。</p>