using System.Collections; using System.Collections.Generic; using UnityEngine; namespace UltraCombos.Frozen { public class Ruler : MonoBehaviour { public float width = 8.0f; public float length = 5.0f; public float height = 1.5f; private void OnDrawGizmos() { var mat = Gizmos.matrix; Gizmos.matrix = transform.localToWorldMatrix; Vector3 size = new Vector3(width, height, length); Vector3 center = new Vector3(0, height * 0.5f, 0); Gizmos.DrawWireCube(center, size); Gizmos.matrix = mat; } } }