C# Error: Best Overloaded method for Vector3

Problem:

error CS1502: The best overloaded method match for `UnityEngine.Vector3.Vector3(float, float, float)’ has some invalid arguments

Example:
Gizmos.DrawCube(transform.position, new Vector3(0.5,0.5,3.0));

Explanation:
In order to explicitly declare that 0.5 is a float, you must include the f modifier.

Solution:
Read the rest of this entry »