new-horizons/NewHorizons/Utility/BoxShapeVisualizer.cs
2022-06-17 17:04:12 -04:00

26 lines
534 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using Popcron;
namespace NewHorizons.Utility
{
public class BoxShapeVisualizer : MonoBehaviour
{
BoxShape box;
void Awake()
{
box = GetComponent<BoxShape>();
}
void OnRenderObject()
{
Popcron.Gizmos.Cube(transform.TransformPoint(box.center), transform.rotation, box.size);
}
}
}