I used some code from a tutorial but when I use it I get
“Assets/my assets/Scripts/Gizmo.js(7,29): BCE0017: The best overload for the method ‘UnityEngine.Gizmos.DrawWireCube(UnityEngine.Vector3, UnityEngine.Vector3)’ is not compatible with the argument list ‘(System.Type, System.Type)’.”
Here is my code
var radius : float;
var color : Color;
function OnDrawGizmos ()
{
Gizmos.color = color;
Gizmos.DrawWireCube (transform.position, radius);
}
This code worked fine in the video