public override void OnInspectorGUI() { DrawDefaultInspector(); BuilderSetup t = (BuilderSetup)target; GUILayout.Label("Обновить массив префабов:", EditorStyles.boldLabel); if (GUILayout.Button("Load Resources")) { t.LoadResources(); } }