void OnGUI() { if (so == null) { so = new SerializedObject(this); } scroll = EditorGUILayout.BeginScrollView(scroll); NSTSettings.DrawAllSettingGuis(this, so, true); EditorGUILayout.EndScrollView(); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); EditorGUILayout.HelpBox("This settings gameobject is added to your scene as a convenience an can safely be removed. To stop this from being created, uncheck 'Auto Add Settings' below.", MessageType.None); NSTSettings.DrawAllSettingGuis(target, serializedObject, false); }