public override void OnInspectorGUI() { if (boxDetection.GetComponent <PhysicBody>() == null) { EditorGUILayout.HelpBox("No physic body component attached. Box detection will not be added to Bepu simulation", MessageType.Warning, true); } boxDetection.SetSize(EditorGUILayout.Vector3Field("Size", boxDetection.GetSize())); OnDrawGizmosSelected(null); }