using Wwise.Wooduan.Components; using Wwise.Wooduan.Tools; namespace Wwise.Wooduan.Editor.Components { [UnityEditor.CanEditMultipleObjects] [UnityEditor.CustomEditor(typeof(ParticleSound))] public class ParticleSoundInspector : UnityEditor.Editor { private ParticleSound _component; public void OnEnable() { _component = target as ParticleSound; } private void OnSceneGUI() { var radius = AkWwiseProjectInfo.GetData().GetEventMaxAttenuation(_component.audioEvent.Id); var akGameObj = _component.GetComponent(); AkWooduanScriptingTools.DrawSphere(akGameObj ? akGameObj.GetPosition() : _component.transform.position, radius); } } }