using UnityEngine; #if UNITY_EDITOR using UnityEditor; [CustomEditor(typeof(Box))] public class BoxEditor : Editor { //ã°ãªããã®å¹ public const float GRID = 0.32f; void OnSceneGUI() { Box box = target as Box; //ã°ãªããã®è² Color color = Color.cyan * 0.7f; //ã°ãªããã®ä¸å¿åº§æ¨ Vector3 orig = Vector3.zero; const int num = 10; const float size = GRID * num; //ã°ãªããæç» for (int x = - num; x <= num; x++) { Vector3 pos = or
{{#tags}}- {{label}}
{{/tags}}