3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Unity&JoyCon: 「FormatException: Input string was not in a correct format」を直す方法

Last updated at Posted at 2019-11-19

環境

  • macOS 10.15.1
  • Unity 2019.2.9f1

問題

UnityとJoyConを組み合わせるJoyconLibというライブラリを試してみたら、全く動かなかった
そのとき以下のようなエラーが出てきた

FormatException: Input string was not in a correct format

解決方法

「Packages > com.lookingglass.joyconlib > JoyconLib_scripts > Joycon.cs」の376行目に以下のような記述がある

DebugPrint(string.Format("Dequeue. Queue length: {0:d}. Packet ID: {1:X2}. Timestamp: {2:X2}. Lag to dequeue: {3:s}. Lag between packets (expect 15ms): {4:g}",

ここの{3:s}{3:t}にして、{4:s}{4:g}にすればエラーが消える

参考文献

FormatException: Input string was not in a correct format in Unity 2018.3.0f2 #23

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?