private void AdvancedSettingsEditing()
        {
            EditorGUILayout.BeginVertical();
            {
                EditorGUILayout.BeginHorizontal();
                {
                    EditorGUILayout.LabelField(Simulation.Strings.AttachSpecificDBLabel, EditorExtensionSettings.StandardEditorFieldWidth);
                    EditorExtensionSettings.StandardMargin();
                    EditorGUI.BeginChangeCheck();
                    myDatabase = EditorGUILayout.ObjectField(myDatabase, typeof(Simulation.DatabaseAsset), false, EditorExtensionSettings.MediumEditorFieldWidth) as Simulation.DatabaseAsset;
                    if (EditorGUI.EndChangeCheck())
                    {
                        if (myDatabase != null)
                        {
                            DatabaseName.stringValue = myDatabase.DatabaseName;
                        }
                        else
                        {
                            DatabaseName.stringValue = Strings.DefaultDatabaseName;
                        }

                        myDatabase = Resources.Load(DatabaseName.stringValue) as Simulation.DatabaseAsset;
                    }
                }
                EditorGUILayout.EndHorizontal();
                EditorExtensionSettings.StandardMargin();
                EditorGUILayout.LabelField(DatabaseName.stringValue, EditorExtensionSettings.SmallText);
            }
            EditorGUILayout.EndVertical();
        }
        void OnEnable()
        {
            BuildAffordanceTreeFromScene = serializedObject.FindProperty("buildAffordanceTreeFromScene");
            LogSimulation = serializedObject.FindProperty("LogSimulation");
            DatabaseName  = serializedObject.FindProperty("databaseName");

            serializedObject.Update();
            if (DatabaseName.stringValue == "")
            {
                DatabaseName.stringValue = Strings.DefaultDatabaseName;
            }

            serializedObject.ApplyModifiedProperties();

            myDatabase = Resources.Load(DatabaseName.stringValue) as Simulation.DatabaseAsset;
        }