- using UnityEditor;
- using UnityEngine;
- [CustomEditor(typeof(Awareness))]
- public class AwarenessEditor : Editor
- {
- private void OnSceneGUI()
- {
- Awareness aware = (Awareness)target;
- Handles.color = Color.green;
- // Draw the main horizontal circle (XY plane)
- Handles.DrawWireDisc(aware.transform.position, Vector3.up, aware.Radius);
- // Draw vertical arcs to simulate the 3D sphere
- Handles.DrawWireArc(aware.transform.position, Vector3.right, Vector3.forward, 360, aware.Radius);
- }
- }