はじめに
UnityにてWindowsで動作するアプリを作成し、Buildした後、実行したら「XInput1_3.dll not found.」とエラーが出たので対処法をまとめました
対処法
DirectXのランタイムをインストールしたら、解消されました(以下より、入手可能)
DirectX エンド ユーザー ランタイム Web インストーラ
発生したエラー内容
エラーは以下のフォルダにあるファイルに出力されました
C:/Users/username/AppData/LocalLow/CompanyName/ProductName/output_log.txt
output_log.txt
Initialize engine version: 2018.4.21f1 (fd3915227633)
GfxDevice: creating device client; threaded=1
Direct3D:
Version: Direct3D 11.0 [level 11.1]
Renderer: NVIDIA GeForce GTX 1050 (ID=0x1c8d)
Vendor:
VRAM: 2006 MB
Driver: 22.21.13.8205
Begin MonoManager ReloadAssembly
- Completed reload, in 0.880 seconds
<RI> Initializing input.
XInput1_3.dll not found. Trying XInput9_1_0.dll instead...
<RI> Input initialized.
まとめ
エラーでお困りの方は参考にしてみてください