Fix issue the lrm inspector didn't set dirty while the value is changed
This commit is contained in:
parent
da2928e9e5
commit
8123902c2e
1 changed files with 28 additions and 19 deletions
|
|
@ -223,6 +223,10 @@ namespace LightReflectiveMirror
|
|||
switch (currentTab)
|
||||
{
|
||||
case 0:
|
||||
using (var change = new EditorGUI.ChangeCheckScope())
|
||||
{
|
||||
|
||||
|
||||
// They are in the LRM Settings tab.
|
||||
if (lrm.useLoadBalancer)
|
||||
{
|
||||
|
|
@ -242,6 +246,11 @@ namespace LightReflectiveMirror
|
|||
lrm.heartBeatInterval = EditorGUILayout.Slider("Heartbeat Time", lrm.heartBeatInterval, 0.1f, 5f);
|
||||
lrm.connectOnAwake = EditorGUILayout.Toggle("Connect on Awake", lrm.connectOnAwake);
|
||||
lrm.clientToServerTransport = (Transport)EditorGUILayout.ObjectField("LRM Transport", lrm.clientToServerTransport, typeof(Transport), true);
|
||||
if (change.changed)
|
||||
{
|
||||
EditorUtility.SetDirty(lrm);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
// NAT punch tab.
|
||||
|
|
|
|||
Loading…
Reference in a new issue