GetTypeで型を出力する
float val = 1.0f;
print(val.GetType());
型の種類
型 | 出力 |
---|---|
Int | System.Int32 |
float | System.Single |
Boolean | System.Boolean |
List | System.Collections.Generic.List |
他にもたくさんの型が存在します。徐々に覚えていきましょう。
float val = 1.0f;
print(val.GetType());
型 | 出力 |
---|---|
Int | System.Int32 |
float | System.Single |
Boolean | System.Boolean |
List | System.Collections.Generic.List |
他にもたくさんの型が存在します。徐々に覚えていきましょう。