modifying C# file through scripting runtime code example
Example 1: how to reload app.config file at runtime in c#
public static void RefreshAppSettings()
{
ConfigurationManager.RefreshSection("appSettings");
}
Example 2: prompt for array unity c# editor scripting
[CustomEditor(typeof(RoomItem))] public class RoomItemEditor : Editor {
public override void OnInspectorGUI() {
serializedObject.Update();
var controller = target as RoomItem;
EditorGUIUtility.LookLikeInspector();
SerializedProperty tps = serializedObject.FindProperty ("targetPoints");
EditorGUI.BeginChangeCheck();
EditorGUILayout.PropertyField(tps, true);
if(EditorGUI.EndChangeCheck())
serializedObject.ApplyModifiedProperties();
EditorGUIUtility.LookLikeControls();
}
}