Last active
December 30, 2018 03:19
-
-
Save ZeredaGames/9e943014d2a204219e11734796ea0cf4 to your computer and use it in GitHub Desktop.
Unity Gizmo Script
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 DrawOnGizmoDrawCube : MonoBehaviour { | |
public float gizmoSize = 4; | |
public object gizmoedObject; | |
public void OnDrawGizmos() | |
{ | |
Vector3 XYZX1 = new Vector3(1f*gizmoSize,1f*gizmoSize,1f*gizmoSize); | |
Gizmos.DrawCube (transform.position, XYZX1); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment