Skip to content

Instantly share code, notes, and snippets.

@gkagm2
Created April 20, 2019 00:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gkagm2/4c9989ee966a3bbd71696e20b59bcbeb to your computer and use it in GitHub Desktop.
Save gkagm2/4c9989ee966a3bbd71696e20b59bcbeb to your computer and use it in GitHub Desktop.
GizemoView (DrawSphere)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class csGizmoView : MonoBehaviour {
public Color _color = Color.red;
public float _radius = 0.2f;
void OnDrawGizmos()
{
Gizmos.color = _color;
Gizmos.DrawSphere(transform.position, _radius);
}
void Start()
{
//Debug.Log(transform.position + name);
}
// Update is called once per frame
void Update()
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment