Answers for "error cs1503 argument 3 cannot convert from 'double' to 'float'"

C#
1

error cs1503 argument 3 cannot convert from 'double' to 'float'

By default, if you just type the number -2.5 in your code, 
Compiler will think, it's a 'Double'. 
But Vector3() takes three float arguments,
so you need to tell it you want a 'float'.

You do this with the letter 'f' after your number: -2.5f
Posted by: Guest on June-02-2021

Code answers related to "error cs1503 argument 3 cannot convert from 'double' to 'float'"

C# Answers by Framework

Browse Popular Code Answers by Language