1. 程式人生 > >UE4藍圖學習之路

UE4藍圖學習之路

用記事本開啟:引擎版本\Engine\Config\BaseEngine.ini 將

					<p><span style="color:#000000;">Local=(Type=FileSystem, ReadOnly=false,Clean=false, Flush=false, PurgeTransient=true, DeleteUnused=true,UnusedFileAge=34, FoldersToClean=-1, Path="%ENGINEVERSIONAGNOSTICUSERDIR%DerivedDataCache")</span></p>

					<p><span style="color:#000000;">替換為<br>
					Local=(Type=FileSystem, ReadOnly=false,Clean=false, Flush=false, PurgeTransient=true, DeleteUnused=true,UnusedFileAge=34, FoldersToClean=-1,Path="%GAMEDIR%DerivedDataCache")</span></p>

					<p>搜尋 %ENGINEVERSIONAGNOSTICUSERDIR%DerivedDataCache 查詢</p>

					<p><span style="color:#000000;">儲存文件。這樣子修改好之後重新開啟專案快取路徑將會生成在你的專案資料夾內</span></p>

					<p>&nbsp;</p>

					<p>&nbsp;</p>

					<p><span style="color:#000000;">刪除聯機構建SwarmAgent程式的快取:</span></p>

					<p><span style="color:#000000;">開啟 UE_4.xx\Engine\Binaries\DotNET\SwarmAgent.exe</span></p>

					<p><span style="color:#000000;">修改快取路徑:&nbsp;&nbsp;如 </span><span style="color:#000000;">E:\Engine\Binaries\DotNET/SwarmCache</span></p>

					<p><img alt="" class="zoom" id="aimg_3071" src="http://www.unrealkit.com/data/attachment/forum/201705/04/115310scn9qa97jrr9ymbc.png" width="750"></p>
					&nbsp;

					<p><span style="color:#0000ff;">然後刪除C:\Users\Administrator\AppData\Local\UnrealEngine&nbsp;&nbsp;下所有檔案</span></p>

					<p>&nbsp;</p>

					<h3><span>8.給遊戲加上麥克風語音輸入,並且得到音量大小</span></h3>

					<p><span>(1)首先按照官方設定啟用AudioCaputure功能</span></p>

					<p>&nbsp;</p>

					<p><span>[Audio]<br>
					AudioDeviceModuleName=AudioMixerXAudio2</span></p>

					<p>&nbsp;</p>

					<p><img alt="" class="has" src="https://img-blog.csdnimg.cn/20181107170738421.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzI0ODM1MjEz,size_16,color_FFFFFF,t_70"></p>

					<p><s>(2)接著在專案中加入命令啟用麥克</s></p>

					<p>可不加</p>

					<p>-audiomixer</p>

					<p>&nbsp;</p>

					<p><img alt="" class="has" height="99" src="https://img-blog.csdnimg.cn/20181107173701169.png" width="743"></p>

					<p>(3)接著加入AudioCaputure元件</p>

					<p><img alt="" class="has" height="245" src="https://img-blog.csdnimg.cn/20181107173923330.png" width="271"></p>

					<p>(4)用這個方法就可以實時得到麥克輸入音量大小</p>

					<p><img alt="" class="has" src="https://img-blog.csdnimg.cn/20181107174828187.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzI0ODM1MjEz,size_16,color_FFFFFF,t_70"></p>

					<p>(5)用下面的方法可以調整音量大小和網路同步</p>

					<p><img alt="" class="has" src="https://img-blog.csdnimg.cn/20181107175049863.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzI0ODM1MjEz,size_16,color_FFFFFF,t_70"></p>

					<p>&nbsp;</p>

					<p>&nbsp;</p>

					<p>&nbsp;</p>

					<p><strong>部分燈光構建問題解決(官方英文):https://wiki.unrealengine.com/Swarm_Agent_Troubleshooting#.22Ran_out_of_Memory.22</strong></p>

					<p><strong>陣列中的元素刪除之後要移出陣列!</strong></p>

					<p>&nbsp;</p>

					<pre class="has" name="code"><code class="language-best-text">弱指標也指向一個物件,但是弱指標僅僅記錄該物件的地址,不能通過弱指標來訪問該物件,也就是說不能通過弱智真來呼叫物件的成員函式或訪問物件的成員變數。