public override void OnInspectorGUI() { DrawDefaultInspector(); if (GUILayout.Button("Create Mesh")) { if (_target.GetComponent <MeshFilter> () == null) { _target.CreateMesh(); } } }