Ejemplo n.º 1
0
        void OnGUI()
        {
            if (so == null)
            {
                so = new SerializedObject(this);
            }

            scroll = EditorGUILayout.BeginScrollView(scroll);

            NSTSettings.DrawAllSettingGuis(this, so, true);
            EditorGUILayout.EndScrollView();
        }
Ejemplo n.º 2
0
 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);
 }