finishing off interactive values

This commit is contained in:
sinaioutlander
2020-11-17 02:05:45 +11:00
parent 7920c54761
commit 8e2e2abef4
6 changed files with 128 additions and 39 deletions

View File

@ -198,6 +198,8 @@ namespace UnityExplorer.Inspectors.Reflection
public override void RefreshUIForValue()
{
InitializeStructInfo();
base.RefreshUIForValue();
if (m_subContentConstructed)
@ -213,8 +215,6 @@ namespace UnityExplorer.Inspectors.Reflection
StructInfo.RefreshUI(m_inputs, this.Value);
}
#region STRUCT INFO HANDLERS
internal Type m_lastStructType;
internal void InitializeStructInfo()
@ -232,14 +232,19 @@ namespace UnityExplorer.Inspectors.Reflection
var child = m_subContentParent.transform.GetChild(i);
GameObject.Destroy(child.gameObject);
}
m_UIConstructed = false;
}
m_lastStructType = type;
StructInfo = StructInfoFactory.Create(type);
}
#endregion
if (m_subContentParent.activeSelf)
{
ConstructSubcontent();
}
}
#region UI CONSTRUCTION