int型からfloatに変換することができるらしいのでメモ。
[ 変換方法 ]
下記はint型のIntTestをfloat型に変換しFloatTestに代入しています。
using System; using System.Collections.Generic; using UnityEngine; public class ScriptTest : MonoBehaviour { void Start() { int IntTest = 3; float FloatTest = 0.0f; FloatTest = (float)IntTest; } }