组件接入-说明文档
<table>
<thead>
<tr>
<th>最后更新日期</th>
<th>2024-1-7</th>
</tr>
</thead>
<tbody>
<tr>
<td>作者</td>
<td>ljx</td>
</tr>
<tr>
<td>V1.0.0</td>
<td>创建文档</td>
</tr>
<tr>
<td>说明</td>
<td>本文档将不定期更新</td>
</tr>
</tbody>
</table>
<h1>组件工程配置说明</h1>
<h2>Unity工程配置</h2>
<h5>1、建议Unity版本:2021.3.20,使用URP渲染管线 1、建议Unity版本:2021.3.20,使用URP渲染管线</h5>
<h5>2、设置.Net API为.New Framework.点击Unity菜单栏命令Edit->Project Settings可打开此窗口</h5>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=34be9dd32ed857b892eaa4335636f9bb&amp;file=file.png" alt="" /></p>
<h5>3、配置Unity Package Manager的UPM URL</h5>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=73ee3115adab4e190812f505eeb4a33f&amp;file=file.png" alt="" />
Name : SDP
Url : <a href="http://nexus.sdp.nd/repository/unity-upm">http://nexus.sdp.nd/repository/unity-upm</a>
Scopes : com.nd</p>
<h5>4、导入物件播放组件包</h5>
<p>点击Unity菜单栏命令 Window->Package Manager,左上角+号->Add package by name...
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=1f376894c98580662a2b185b62788a70&amp;file=file.png" alt="" /></p>
<p>Name:com.nd.vlab-equipmentplayer
Version: 为空则默认获取最新版
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=fa5106ea8b8ffc839b2b8e44a5d52d8d&amp;file=file.png" alt="" /></p>
<h5>5、设置宏定义</h5>
<p>URP_RENDER_PIPELINE
THREAD_SAFE
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=2fe2d9088907ff6565da499b5f326d93&amp;file=file.png" alt="" /></p>
<h5>6、设置Tag和Layers</h5>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=57e3ea48b8f79847768433a012c5deef&amp;file=file.png" alt="" /></p>
<p>可直接找开发索取该文件,导入工程设置目录下,就不用手动输入
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=5046421f24e8e157ec21e40f4d3e475b&amp;file=file.png" alt="" /></p>
<h2>数据表、配置表(找开发索取)</h2>
<p>1、ModuleConfig.json,放在工程目录下
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=fe243556cb8fd7a48c526dd013de380f&amp;file=file.png" alt="" /></p>
<p>2、StreamingAssets文件夹,放在工程目录/Assets 文件夹内
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=d4a051a70600a8dd13db0bc55732d865&amp;file=file.png" alt="" /></p>