unity casting as double code example
Example: unity transformer double en float
float myFloat;
double myDouble;
void Start()
{
myFloat = (float)myDouble; //give the value of myDouble to myFloat
}
float myFloat;
double myDouble;
void Start()
{
myFloat = (float)myDouble; //give the value of myDouble to myFloat
}