LoginSignup
1
1

More than 5 years have passed since last update.

[Unity] Debug.Logに16進数の変数を出す

Last updated at Posted at 2017-01-31

厳密にはUnityじゃなくてC#の話。

16進数で出したい場合は、以下のように書く

int test = 35243;
Debug.Log(test.ToString("x4"));

x4 -> 89ab
X4 -> 89AB

1
1
1

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
1
1