public override void OnInspectorGUI() { DrawDefaultInspector(); #pragma warning disable 0219 InteractionTrigger sInteractionTrigger = target as InteractionTrigger; #pragma warning restore 0219 foreach (Collider collider in sInteractionTrigger.GetComponents <Collider>()) { if (collider.isTrigger) { return; } } EditorGUILayout.HelpBox("There is no trigger collider attached. Events might not trigger", MessageType.Warning); //TODO: Search for colliders recursively }