mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-04 04:22:53 +08:00
finishing off interactive values
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user