public static void AddComp (UnityEditor.MenuCommand command) { (command.context as Component).gameObject.AddComponent (typeof(SimpleSmoothModifier)); } #endif