Skip to content

Instantly share code, notes, and snippets.

@ZeredaGames
Last active December 30, 2018 03:19
Show Gist options
  • Save ZeredaGames/9e943014d2a204219e11734796ea0cf4 to your computer and use it in GitHub Desktop.
Save ZeredaGames/9e943014d2a204219e11734796ea0cf4 to your computer and use it in GitHub Desktop.
Unity Gizmo Script
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