After run a little editor script to replace some strings in some of my UI Text components. The changes are made, but after hit ctrl+s to save and load the scene back up nothing of what the script made was saved.
here is my script
var t = GameObject.Find("MyText").GetComponent<Text>();
if (t)
{
t.text = t.text.Replace("This", "That");
EditorUtility.SetDirty(t.gameObject);
EditorApplication.MarkSceneDirty();
}
MyText is a prefab, if makes any difference.