Created
December 30, 2018 03:21
-
-
Save ZeredaGames/f9983c63b58b03f020db52e3ad9c05f8 to your computer and use it in GitHub Desktop.
Unity Gizmo Function
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 UnityEngine; | |
using UnityEngine.UI; | |
using System.Collections; | |
public class DrawOnGizmoDrawSphere : MonoBehaviour { | |
public float gizmoSize = 4; | |
public object gizmoedObject; | |
public void OnDrawGizmos() | |
{ | |
Gizmos.DrawSphere(transform.position, gizmoSize); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment