using UnityEditor; using UnityEditor.IMGUI.Controls; using UnityEngine; using UnityEngine.UIElements; namespace Misaki.AoVolume.Editor { [CustomEditor(typeof(VolumeObject))] [CanEditMultipleObjects] public class VolumeObjectView : UnityEditor.Editor { [SerializeField] private VisualTreeAsset _viewAsset; private readonly BoxBoundsHandle _boundsHandle = new() { wireframeColor = Color.green, handleColor = Color.green }; public override VisualElement CreateInspectorGUI() { if (_viewAsset == null) { return null; } var view = _viewAsset.Instantiate(); view.dataSource = target; view.Q