mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Added comments to NetworkManager::OnValidate
This commit is contained in:
parent
b7b1fa2146
commit
fdeb2b05bd
@ -209,6 +209,8 @@ public virtual void OnValidate()
|
|||||||
logger.Log("NetworkManager: added default Transport because there was none yet.");
|
logger.Log("NetworkManager: added default Transport because there was none yet.");
|
||||||
}
|
}
|
||||||
#if UNITY_EDITOR
|
#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");
|
UnityEditor.Undo.RecordObject(gameObject, "Added default Transport");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user