I’m getting these errors in the console and I can’t figure out why.
“error CS0117: Gizmos' does not contain a definition for
color’” and
“error CS0117: Gizmos' does not contain a definition for
DrawWireSphere’”
everything in my code looks right though.
using UnityEngine;
using System.Collections;
public class Gizmos : MonoBehaviour {
public float gizmoSize = 0.75f;
public Color gizmoColor = Color.yellow;
void OnDrawGizmosSelected() {
Gizmos.color = gizmoColor;
Gizmos.DrawWireSphere (transform.position, gizmoSize);
}
}