Created
April 20, 2019 00:08
-
-
Save gkagm2/4c9989ee966a3bbd71696e20b59bcbeb to your computer and use it in GitHub Desktop.
GizemoView (DrawSphere)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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