2022-06-16から1日間の記事一覧
intからboolに変換する方法をメモ。 [ 方法 ] 「Convert.ToBoolean(int)」で変換できます。 [ 使用例 ] 下記はint型のIntTestをbool型に変換しBoolTestに代入しています。 using System.Collections; using System.Collections.Generic; using UnityEngine; …
intからboolに変換する方法をメモ。 [ 方法 ] 「Convert.ToBoolean(int)」で変換できます。 [ 使用例 ] 下記はint型のIntTestをbool型に変換しBoolTestに代入しています。 using System.Collections; using System.Collections.Generic; using UnityEngine; …