Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

Console error when trying to use gizmos?

$
0
0
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); } }

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>