Skip to content

Commit

Permalink
fix: NetworkManager OnValidate wouldn't properly save the automatical…
Browse files Browse the repository at this point in the history
…ly added Transport before because Undo.RecordObject is needed for that now.
  • Loading branch information
miwarnec committed Sep 15, 2019
1 parent 5a9e14c commit 524abfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Mirror/Runtime/NetworkManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ public virtual void OnValidate()
Debug.Log("NetworkManager: added default Transport because there was none yet.");
}
#if UNITY_EDITOR
UnityEditor.EditorUtility.SetDirty(gameObject);
UnityEditor.Undo.RecordObject(gameObject, "Added default Transport");
#endif
}

Expand Down

0 comments on commit 524abfc

Please sign in to comment.