Added comments to NetworkManager::OnValidate

This commit is contained in:
MrGadget1024 2021-01-23 14:34:01 -05:00
parent b7b1fa2146
commit fdeb2b05bd

View File

@ -209,6 +209,8 @@ public virtual void OnValidate()
logger.Log("NetworkManager: added default Transport because there was none yet.");
}
#if UNITY_EDITOR
// For some insane reason, this line fails when building unless wrapped in this define. Stupid but true.
// error CS0234: The type or namespace name 'Undo' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)
UnityEditor.Undo.RecordObject(gameObject, "Added default Transport");
#endif
}