public override void OnInspectorGUI() { DrawDefaultInspector(); SerializableComponent serializableComponent = (SerializableComponent)target; string Stored = DetectStoredFormat(); if (Stored == "ERROR") { EditorGUILayout.HelpBox("Only you can save with a type of stored, static or dynamic mode", MessageType.Error); } else if (Stored == "Internal ERROR") { EditorGUILayout.HelpBox("It could not be detected in the way that is going to save", MessageType.Error); } GUILayout.Label(string.Format("This gameobject is linked with the system stored in {0}", Stored)); foreach (MonoBehaviour link in serializableComponent.ValidToLinkComponents.ToArray()) { if (link == null) { serializableComponent.ValidToLinkComponents.Remove(link); } else { GUILayout.Label(string.Format("The {0} file is valid and will be saved", link.GetType().Name)); } } if (GUILayout.Button("Search again")) { serializableComponent.DetectComponents(); } }